Functional constructor for Neo4j queries and their results.