added TPCH3 example

I implemented the tpch 3 query with custom objects as an example.