Allow 4-tuples in query conditions