Worked for issue #2. Expanded the filter grammar and modified the parser to generate SQL statements now. Not tested yet.