/*
 *   .elementAnd("foo[].t[]")
 *     .is("a", Op.EQUAL, 42)
 *     .is("b", Op.EQUAL, 17)
 *     .close()
 */
select d, e
  from dfs.`%1$s`
  where _id in (
    select _id
      from (
        select _id, flatten(t1.f1.t) f2
	  from (
	    select _id, flatten(foo) f1
	      from dfs.`%1$s`
	  ) as t1
      ) as t2
      where t2.f2.a = 42 and t2.f2.b = 17
  )
