added boolean values to queries