document for query result