finalised sqlbenchmark