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 (666221,40655,114029,5768908,18103,385378,608639,510937,298053,3010968,1945651,111335,49701,383609,241536,1292848,5311735,8435,12030,1256624,70386,20261,544825,6463558,2509,3501,28324,131368,53850,4086,82156,3571,23199,675383,340760,350858,41956,163053,784387,939557,4856258,27009,1659,576875,131433,21239,138304,20972,45,1725764,27580,118903,168225,80911,1223975,594235,447156,20578,145587,21475,298575,797495,17389,1857266,1329652,12158757,865874,6508,127724,25847,24995,72247,1353011,390913,102441,87399,772649,822,960558,77335,211563,19410,296328,2474656,310726,147024,127893,701092,3558960,19403,171461,19082,19635,9034,30461,59111,217324,4833,650405,631619) ) 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;