Tpch Query Implementation - first draft