@Test
    void testSameElement() {
        assertParse("select foo from bar where baz contains sameElement(f1 contains \"a\", f2 contains \"b\")",
                "baz:{f1:a f2:b}");
        assertParse("select foo from bar where baz contains sameElement(f1 contains \"a\", f2 = 10)",
                "baz:{f1:a f2:10}");
        assertParse("select foo from bar where baz contains sameElement(key contains \"a\", value.f2 = 10)",
                "baz:{key:a value.f2:10}");
        assertCanonicalParse("select foo from bar where baz contains sameElement(key contains \"a\", value.f2 = 10)",
                "baz:{key:a value.f2:10}");
        assertCanonicalParse("select foo from bar where baz contains sameElement(key contains \"a\")",
                "baz.key:a");
    }
Specification for the conversion of YQL+ expressions to Vespa search queries.

@author Steinar Knutsen
@author Stian Kristoffersen
container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java