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 (625914,567435,345717,41316,77,242769,297408,421018,189950,694331,1060350,66226,157360,1622493,934239,114916,54249,1946,2060725,356788,1693173,1189885,471093,302916,642070,21441,970195,23691,399815,397861,418413,444036,1143732,99594,14755,3998402,151312,3916,10819573,160206,2908,1438393,469300,4642,451980,960757,90308,219162,166949,39375,557445,129404,1230836,413127,1860929,256138,493122,132047,244353,39742,953482,3510736,752738,650492,11858,17028,106979,19268,26349,383,160313,2683814,634863,570918,8655,941764,11208,1307905,277304,549372,1533054,5651,149808,680398,8705432,33522,182971,208,2805305,783681,444991,14606,53897,60777,9840637,6330,232610,28004,453596,98038) ) 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;