For querying on the collection tables.