work in progress. TPCH q11 Spark by hand