Query constructor take 'boolean' variables