Adding a query mapper utility.