support multiple relations in graph query