src/edu/stanford/nlp/sempre/interactive/VegaLitePathMatcher.java
public List<List<String>> orderedMatch(List<String> keys) {
    // after removing everything but the keys, equal to the keys
    return match(keys).stream().filter(
        s -> s.stream().filter(keys::contains).collect(Collectors.toList()).equals(keys)).collect(Collectors.toList());
  }
/**
   * Given a list of keys, return all paths containing those keys in that order
   */
Given a list of keys, return all paths containing those keys in that order
Given a list of keys return all paths containing those keys in that order
public List<List<String>> orderedMatch(List<String> keys) {
    return match(keys).stream().filter(
        s -> s.stream().filter(keys::contains).collect(Collectors.toList()).equals(keys)).collect(Collectors.toList());
  }
public List < List < String > > orderedMatch ( List < String > keys ) { return match ( keys ) . stream ( ) . filter ( s -> s . stream ( ) . filter ( keys :: contains ) . collect ( Collectors . toList ( ) ) . equals ( keys ) ) . collect ( Collectors . toList ( ) ) ; }
Given a list of keys, return all paths containing those keys in that order
Given a list of keys return all paths containing those keys in that order
// after removing everything but the keys, equal to the keys