Correctly formatted query is transformed to SQL condition properly now. Need take care of all "broken" cases