QuerySetId
uint32
466
1.35M
Title
stringlengths
4
100
Description
stringlengths
1
994
QueryBody
stringlengths
1
799
CreationDate
stringlengths
19
19
validated
bool
1 class
1,343,763
SDET - Microservices API automation - US
null
SELECT u.Id AS [User Link], CONCAT('https://stackoverflow.com/users/', u.Id) AS [Profile Link], u.DisplayName, u.Location, u.WebsiteUrl, u.AboutMe, u.Views, u.UpVotes, u.DownVotes FROM Users u JOIN ( SELECT DISTINCT UserId FROM Badges WHERE LOWER(Name) IN ('microservices', 'api', 'automation') AND Class IN (2) AND TagBased = 1 ) tag_badges ON tag_badges.UserId = u.Id
2020-12-09 01:24:40
false
1,344,641
Tags ordered by average question score (including CW)
null
SELECT TOP(##num?100##) RANK() OVER(ORDER BY AVG(CAST(q.SCORE AS decimal)) DESC) AS Rank, t.Tagname, AVG(CAST(q.Score AS decimal)) AS [Average Score], COUNT(q.Id) AS Count, SUM(q.Score) AS [Total Score] FROM Posts q INNER JOIN PostTags pt ON q.Id=pt.PostId INNER JOIN Tags t ON t.id = pt.TagId GROUP BY t.Tagname HAVING (COUNT(q.Id)>=##min?10##) ORDER BY AVG(CAST(q.SCORE AS decimal)) DESC
2020-12-10 04:11:12
false
1,344,643
Tags ordered by average answer score (non CW)
null
SELECT TOP(##num?100##) RANK() OVER(ORDER BY AVG(CAST(a.SCORE AS decimal)) DESC) AS Rank, t.Tagname, AVG(CAST(a.Score AS decimal)) AS [Average Score], COUNT(a.Id) AS Count, SUM(a.Score) AS [Total Score] FROM Posts q INNER JOIN Posts a ON q.Id=a.ParentId INNER JOIN PostTags pt ON q.Id=pt.PostId INNER JOIN Tags t ON t.id = pt.TagId WHERE (a.CommunityOwnedDate IS NULL) ---only non-CW GROUP BY t.Tagname HAVING (COUNT(a.Id)>=##min?10##) ORDER BY AVG(CAST(a.SCORE AS decimal)) DESC
2020-12-10 04:14:27
false
1,344,644
Tags ordered by average answer score (including CW)
null
SELECT TOP(##num?100##) RANK() OVER(ORDER BY AVG(CAST(a.SCORE AS decimal)) DESC) AS Rank, t.Tagname, AVG(CAST(a.Score AS decimal)) AS [Average Score], COUNT(a.Id) AS Count, SUM(a.Score) AS [Total Score] FROM Posts q INNER JOIN Posts a ON q.Id=a.ParentId INNER JOIN PostTags pt ON q.Id=pt.PostId INNER JOIN Tags t ON t.id = pt.TagId GROUP BY t.Tagname HAVING (COUNT(a.Id)>=##min?10##) ORDER BY AVG(CAST(a.SCORE AS decimal)) DESC
2020-12-10 04:15:18
false
1,344,785
Duplicate target of the given post
null
SELECT RelatedPostId AS [Post Link] FROM PostLinks WHERE (PostId=##id?1331325##) AND (LinkTypeId=3) ---LinkTypeId type of link ---1 = Linked (PostId contains a link to RelatedPostId) ---3 = Duplicate (PostId is a duplicate of RelatedPostId)
2020-12-10 13:45:57
false
1,344,986
My score and number of non-CW answers per tag
null
SELECT t.TagName, SUM(a.Score) AS [Total Score], COUNT(a.Id) AS [Answer Count] FROM Posts a INNER JOIN Posts q ON q.Id=a.ParentId INNER JOIN PostTags pt ON q.Id = pt.PostId INNER JOIN Tags t ON pt.TagId = t.Id WHERE (a.OwnerUserId=##userid##) AND (a.CommunityOwnedDate IS NULL) ---only non-CW GROUP BY t.Tagname ORDER BY SUM(a.Score) DESC
2020-12-10 14:58:32
false
1,345,529
select p1.id from (select * from Posts where PostTypeId=1) as p1, (select * from Posts where PostTy
null
SELECT p1.id from (SELECT * from Posts where PostTypeId=1) as p1, (SELECT * from Posts where PostTypeId=2) as p2 where p1.id=p2.ParentId;
2020-12-10 17:32:25
false
1,346,132
Percentage of SO Users on Meta
null
SELECT count(*) from users
2020-12-10 20:19:25
false
1,346,153
List of deleted posts which are duplicates
null
SELECT TOP(##num?1000##) p.Id AS [Post link] FROM Postlinks pl INNER JOIN Posts p ON pl.PostId=p.Id WHERE (pl.LinkTypeId=3) AND (p.PostTypeId=1) AND (p.DeletionDate IS NOT NULL) ORDER BY p.Id DESC
2020-12-10 21:15:58
false