Fix queries using boolean literals