Makes the construction of the query datatype agnotic.