def METHOD_NAME(self):
    query = """MATCH (a:L {val: 'v1'}) WITH a MATCH (a)-[e]->(b) RETURN b.val"""
    actual_result = redis_graph.query(query)
    # Verify that this query does not generate a Cartesian product.
    execution_plan = redis_graph.execution_plan(query)
    self.env.assertNotIn('Cartesian Product', execution_plan)
    # Verify results.
    expected_result = [['v2']]
    self.env.assertEquals(actual_result.result_set, expected_result)