Hope this helps.
In reply to Re: Parsing text-based queries to SQL queries by Joost in thread Parsing text-based queries to SQL queries by srdst13