Zql is now released under the GNU GPLv3 license (as of September 5, 2010).
(Note for current licensees: of course, you are not affected by this license
change, and can choose between your current license and the GPLv3 depending
on your needs).
Zql is a java SQL parser.
It parses SQL and fills in java structures representing SQL statements and
expressions.
It also includes a SQL expression evaluator, so you can easily evaluate SQL expressions out of the parser.