Translate a Pipe Pipeline string into Gremlin query