プログラマーとプログラミングに熱心な人々のための質問と回答
SELECT TOP 100 DisplayName FROM (SELECT OwnerUserId, count(*) c FROM Posts GROUP BY OwnerUserId) t JOIN Users ON (t.OwnerUserId=Users.Id) WHERE (Users.Location='Россия' OR Users.Location='Russia') AND t.c > ANY (SELECT c2 FROM (SELECT OwnerUserId, count(*) c2 FROM Posts GROUP BY OwnerUserId) t2 JOIN Users ON (t2.OwnerUserId=Users.Id) WHERE (Users.Location='Polska' OR Users.Location='Poland'));