Bracket query constraints to ensure logical correctness