SELECT number FROM numbers(10) ORDER BY number ASC LIMIT 2, 9223372036854775807 WITH TIES;

SELECT '---';

CREATE TEMPORARY TABLE a (a UInt64);
INSERT INTO TABLE a SELECT number FROM system.numbers LIMIT 10;

SELECT a
FROM a
GROUP BY a
ORDER BY a ASC
LIMIT 5, 18446744073709551615;
