I\'m trying to write a function to generate a Gremlin query. The input of the function is an array of array of strings, with the names of relationships we want to return fro