added simple constraints.
added 2 4 5 queries.