r/recruitinghell • u/MarketingLazy6660 • Jul 26 '26
Rejected after a technical round because the interviewer insisted Text-to-SQL is just if-else mappings
TL;DR:
Final-round interview turned into a debate after the interviewer insisted a production Text-to-SQL system could be built entirely with if-else mappings. I argued that while rule-based systems work for constrained cases, handling arbitrary natural language requires semantic understanding. Ended up getting rejected.
I had one of the strangest technical interviews I’ve experienced, and I am still wondering if I could have handled it differently.
This was the final technical round for a backend/AI-focused role at a well-known product company.
The interviewer (a Principal Engineer with around 10 years of experience) argued that a Text to SQL system does not need NLP or an LLM. According to him, it can be implemented using simple if-else mappings.
I gave a straightforward example:
“Get me the top 5 products that made the most profit in the last 5 years.”
He said the system would identify phrases like “top 5,” “products,” “profit,” and “last 5 years” and map each of them to SQL using if-else logic.
I asked how that approach would handle different ways of asking the same question, such as:
“best-performing items”
“highest-margin SKUs”
“Which products generated the most profit over the previous five years?”
I also asked how it would deal with ambiguity, unseen phrasing, or intent beyond predefined mappings.
The response was essentially, “We will just keep adding more mappings.”
I agreed that deterministic rules can work well for a constrained domain with a limited set of query patterns.
My point was that once users are free to ask questions naturally, understanding intent and semantics becomes the difficult part. The conversation kept circling back to adding more mappings.
At that point, it felt less like an interview and more like a debate. I decided not to push further and moved on.
A few days later, I received a rejection.
I am not claiming either approach is universally right or wrong.
Rule-based systems absolutely have their place, especially in tightly controlled environments. I was just surprised that the discussion never explored where that approach starts to break down or how hybrid systems are commonly used today.
Has anyone else had an interview where a technical discussion turned into a debate over fundamentals? How did you handle it?
Edit : Company Name first Charecter : S
•
u/recruitinghell-ModTeam Jul 27 '26
No AI slop.
34
u/Arbitraryandunique Jul 26 '26
While technically correct that it could be done in theory anyone that tried to go that way for real (after the invention in NLP and LLMs) is an idiot you don't want to work for.
14
u/rasputin1 Jul 26 '26
yea I implemented a chatgpt clone with nothing but if/else statements! unfortunately the file doesn't fit on my hard drive
3
u/Oh_Another_Thing Jul 27 '26 edited Jul 27 '26
Why would you waste time developing a prone to error system when an entry level data analyst could answer these questions. Besides, the effort to get perfect data for this to would far exceed the effort to just ad hoc query this info.
Besides , it wouldn't handle very detailed and specific questions. "What is average time between orders after a new customer orders for the first time, not counting customers that have setup reoccurring orders."
That's just the beginning of the questions I could start asking where a system like this would completely fail
4
u/smeeagain31 Jul 26 '26
This is common misalignment when faced with ambiguous problems. You should have got into the specific requirements of the problem and either agreed with him ("yes if we limit the scope to a selection of natural text by the user to compose the query, this works") or disproving it based on a requirement ("user must be able to type arbitrary natural English and it should function"). The idea that you were right and he was wrong without evidence backed by functional requirements is likely the disconnect.
The reality is building this system relying on non deterministic LLMs is a hard sell.
2
u/LetsGoHawks Jul 26 '26
This is, quite literally, what the very early (60's/70's) AI researchers thought could work. They pretty quickly realized the number of mappings would be too immense to ever be practical.
81
u/Kos187 Jul 26 '26
You dodged a bullet, working with idiots isn't fun.
52
u/HansDampfHaudegen Jul 26 '26 edited Jul 26 '26
Haha, the old "Our AI is just if/else" meme is alive. In general, an interview is supposed to be a discussion. The problem is the stubbornness and fixation on a single correct solution instead of discussing the pros and cons of different approaches.
25
u/casastorta Jul 26 '26
Principal with 12 years experience doesn’t math. But we are in post-boom era, title inflation was real, many people still have successful careers despite huge gaps in knowledge.
Anyhow, if an experienced engineer allows himself to enter even somewhat heated debate with the candidate during the interview, it’s a huge red flag about the company. No matter who is right.
12
u/Carrera_996 Jul 26 '26
I've been in more than a few technical interviews where I was evaluated poorly because the guy doing the interview incorrectly believed my solutions to be wrong. I'm in South Carolina. The technical talent pool isn't that big. Over my 36 year career here, 2 such interviewers later found themselves answering to me. I did not fire them, but I sure as hell never let them touch production.
2
u/H_Mc Jul 26 '26
I think you probably got rejected for debating (or how you debated) more than the answer. Handling letting your boss know they’re wrong, and knowing when to pick your battles, is as important as being right or winning a debate.
5
u/octahexxer Jul 26 '26
That's how everyday would have been working there... Yay fun.
5
u/DeaconVex Jul 26 '26
You self selected out of the role. He wanted someone to build a system this way.
5
u/devnullable0x00 Jul 26 '26
He's not wrong it "could be" but that doesn't mean it should be.
2
u/culimande Jul 26 '26
TL;DR longer than your resume my guy
4
u/Fine-Comparison-2949 Jul 26 '26
There is a major problem right now that recruiters have to know about, where everyone is expected to have a senior title but the pay bands don't align. Then you get people who are actually senior and, like any field, have in depth knowledge about topics that they mastered, and the existing employees believe they're "more right" than you.
I would definitely say you dodged a bullet.
4
u/trippedonatater Jul 26 '26
This is a great example of how interviews go both ways. Sounds like a terrible dude to work for.
1
u/Hobby101 Jul 27 '26
whats text to sql? natural lanfuage to an sql query?
1
u/TainoCuyaya Jul 27 '26
Does the interviewer at least have technical background? Any knowledge on the subject?
I ask because of the Pandemics of non-technical interviewers obsessed with asking technical questions they have no foundation on judging correctly.
3
u/Fun_Wing3725 Jul 26 '26
His approach was plain stupid.
3
u/Professional-Post499 Jul 27 '26
I think I made a perhaps similar category of error as you in my recent interview. Next time if that sort of thing comes up and you actually want the job, try "yes, and -", make your suggestions, do your slight pushback but be squarely on the side of "I think we could make it work". And while you have the job, save up as money as you can because it will probably be a miserable work experience and you will probably want to change jobs. 😂
3
u/CompetitionNo3466 Jul 27 '26
Who needs a job when you’re academically correct. Respect for not backing down on it, agree with the others not worth it, especially them dying on a hill and being wrong.
4
u/RedTheRobot Jul 26 '26
Sounds like a AI hack is in their future. Give me the top 5 bank account numbers. /s
2
u/dgillz Jul 26 '26
Crazy
1
u/davix500 Jul 26 '26
Thats just silly and unsustainable, eventuality you will run into logic problems.
1
u/TheGenericUser0815 Jul 26 '26
I've never in any of my interviews been asked a technical question.
1
u/Sexy_Koala_Juice Jul 27 '26
You dodged a bullet
1
u/DevilsMathematician Jul 27 '26
Maybe a large part of his work consists of adding these mappings, so the ai suggestion threatened one of his main contributions?
Automation can be scary for conservative people.
1
u/DatabaseSpace Jul 28 '26
That's how Alexa works on the back end and why she can't do anything besides the most basic stuff.
1
u/Cybyss Jul 28 '26 edited Jul 28 '26
A set of if-else mappings is mostly how early NLP worked, as used in the 1970s/80s expert systems and also in video games such as ZORK and King's Quest. He's basically proposing that the company invest money into rebuilding a nearly 50 year old technology. It would have been fun to annoy the interviewer with a long-winded history lesson on that.
Then, when he gets impatient, in the most snarky tone of voice remind him that those systems failed in practice. Investors ultimately poured billions into building them and lost everything, thereby leading to the "Second AI Winter" - and he would have known that if he knew his history.
1
u/its4thecatlol Jul 28 '26
This was for real at Stripe? Interviewer is an idiot. Should be not debating this with you during a project history discussion. I'd give feedback to the recruiter. Clown stuff.
1
u/titpetric Jul 30 '26
An interviewer mentioned some transaction specific behaviour and apparently was not aware of transaction isolation settings like read-commited
I love how confidently wrong he was
1
u/RealisticDuck1957 Jul 26 '26
An LLM does as well as it does because it has a massive pool of mappings to work with. Far too many to be humanly cataloged. This is also where it fails, having a massive dictionary but no real understanding.