Put the query result in a container