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 (179467,267269,140816,128967,616700,361684,161801,296974,172350,39975,28835,287586,795990,115,1897,561309,86463,48465,13430,457406,497043,339637,39992,11343,359307,23072,9161,981049,110707,422,18255,180784,2606013,14731,2998271,632951,4465208,179715,160173,251173,1891677,3937,31569,1201032,8172857,22364,30038,9859,1338,11834,25068,722121,889949,637853,6946,85360,76701,9698684,60096,831878,2424,8283848,1959747,17693,7297700,2408867,463304,11296,292291,2025923,1310,441757,380231,690854,72583,4172,2827823,28128,751090,10585,21945,254528,18627,18157,30674,5043867,115845,97248,2097240,113141,169346,53341,319403,202009,472375,9567,1074592,507519,42974,15955) ) 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;