Generate simpler query for MSSQL when offset in limit clause is not set