Add Queries Constraints.