adding basic querying to logic graph.