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 (9493,33686,19299,1663001,168657,23649,165495,2767755,267887,3943312,100754,481267,797,149482,1418796,2296458,597657,459897,4465,18180,15541,9410,565635,53212,63756,45433,259769,179850,64313,27423,184046,5623035,878126,44853,1463116,89266,38206,59501,885318,11123,265143,511529,572,1841839,1744834,81179,493,17744,350087,60188,710446,1384297,1734130,1942,997358,478399,1385941,344949,1450,3037257,594420,105224,1950,97828,1714410,3848,320726,12579,3418066,288671,41021,477037,736079,7582247,541038,198633,167735,2988730,412770,2119,400547,1420197,451475,3191,121493,2586922,3617886,35092,9360,3593996,613130,21677,234938,880990,2670892,1180620,109305,318758,290085,613198) ) 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;