Humans love SQL! The current Qb query format was never meant for long term human use, rather as a wire format to communicate queries. Use an existing SQL parser to generate a parse tree, which should map naturally to Qb queries. ActiveData has no joins, so not all of SQL makes sense. The intent is not to make a fully featured SQL database, rather support the SQL clauses that are possible with a nicer syntax.