Created a document with the queries.