Tpch Query Implementation - first draft--edited