Structure for query