title: How do I make the following subquery in Gremlin?
body: <p>For example, using the Tinkerpop's toy graph data (graph = TinkerFactory.createModern()), I want to do something like the following:</p>
  
  <pre><code>g.V().hasLabel('person').has('name', 'marko').project('a', 'b').by().by(...)
  </code></pre>
  
  <p>I want to use a property of the vertices from the first traversal and use that in the query inside second by(). </p>
  
  <p>Something like this pseudocode:</p>
  
  <pre><code>by(__.V().has(hasLabel('person').has('name', [property-from-first-traversal])))
  </code></pre>
  
  <p>This might be easier to do in separate queries, but I want to do it in one query - something like a Subquery in SQL.</p>