Q&A for those interested in the geology, meteorology, oceanography, and environmental sciences
WITH CommentBatch AS ( SELECT c.Id AS CommentId, c.Text, p.Title, p.OwnerUserId AS UserId, u.DisplayName, u.Location, t.TagName, ROW_NUMBER() OVER (PARTITION BY p.Id ORDER BY c.CreationDate DESC) AS CommentRowNum FROM Comments c INNER JOIN Posts p ON c.PostId = p.Id INNER JOIN Users u ON p.OwnerUserId = u.Id INNER JOIN PostTags pt ON p.Id = pt.PostId INNER JOIN Tags t ON pt.TagId = t.Id WHERE t.TagName IN ('python', 'java', 'csharp', 'php', 'javascript', 'go', 'swift') -- Programming languages filter AND p.OwnerUserId IN (2658050,66516,974731,187730,22996,90691,15401,234322,14419,447356,404970,427545,1492009,1615483,1445366,32453,63034,6022656,152083,1862,92153,387194,190201,332059,947357,414062,457268,97572,395910,68063,761202,650722,205930,1077309,823393,1755,1258041,148765,8123,496161,30225,233196,21574,2650249,670206,2144669,85,61989,305818,112955,86611,1388319,251986,1190,1100552,11543,495455,184773,234590,672989,397952,6110094,227267,411632,78259,48503,1517578,1461050,5841306,1413538,216164,508377,45773,34824,995579,116472,2658202,201863,32090,853360,546999,2082673,163203,30453,358221,149138,306149,635981,247542,13051,329700,4161,951890,87152,274627,656769,656172,164392,7116,1) ) SELECT cb.CommentId, cb.Title AS CommentTitle, cb.Text AS CommentText, cb.UserId, cb.DisplayName AS UserName, cb.Location AS UserCountry, cb.TagName AS CommentTag FROM CommentBatch cb WHERE cb.CommentRowNum BETWEEN 1 AND 500;