Create node graph with only edges, or perform transformations on each query separately