in reply to Parsing text-based queries to SQL queries
Hope this helps.
This looks like it might work for me. Thanks for the pointer.