unify selectQuery between abstract and mssql dialects