Use dialect when calling Utils.format in query gen