TPCH3 query working