Working version of tpch q1 cpp