//groupby: x.a, y.b, z.dl, min(x.dl+y.dl)
//filter: x.a, y.b, z.dl, min(x.dl+y.dl) {z.dl > min(x.dl+y.dl)}
Utils.reset();
t = filter(groupBy(select(genJoin(eqJoin(rel("tab", 3), ref("tab"), 2, 1), ref("tab"), "And(#2=#6,#4=#7)"), "#2", "#4", "#3+#5", "#8"), 1, 2, 4).min(3), "#3>#4");
System.out.println(t);
r = t.execute();
System.out.println(r.getResultRelation());
System.out.println(r.getFormulas());
ats.storeAlgebra("examples/test_example2.xml", t);
ats.writeExcel("examples/excel_example2.xlsx", r);
t = ats.readAlgebra("examples/test_example2.xml");