query can contains tuples