The top 20 C# questions with specified number of up-votes (ignores down-votes)
Q&A about the site for administrators, end users, developers and designers for Craft CMS
-- Most Upvoted Questions -- The top 20 questions with the most up-votes (ignores down-votes) select top ##count## count(v.postid) as 'Vote count', v.postid AS [Post Link],p.body from votes v inner join posts p on p.id=v.postid inner join posttags pt on pt.postid=p.id inner join tags t on pt.tagid=t.id and t.tagname='c#' where PostTypeId = 1 and VoteTypeId=2 group by v.postid,p.body having count(v.postid) = ##upvotes## order by 'Vote count' asc