Changes to support queries in neo4j
Specs for merging queries