1sf/bird-sql-dev-xresults huggingface dataset:
Database: codebase_community
Question: Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?'
Evidence: 'Open source tools for visualizing multi-dimensional data' is the Title of Post; editor refers to DisplayName;
SQL: SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?'
Database: codebase_community
Question: List the title of posts which were edited by Vebjorn Ljosa.
Evidence: "Vebjorn Ljosa" is the DisplayName; last edited refers to LastEditorUserId
SQL: SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'Vebjorn Ljosa'
Database: codebase_community
Question: What is the total score of the posts edited by Yevgeny and include the user's website URL.
Evidence: "Yevgeny" is the DisplayName; edited refers to LastEditorUserId
SQL: SELECT SUM(T1.Score), T2.WebsiteUrl FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T2.DisplayName = 'Yevgeny' GROUP BY T2.WebsiteUrl
Database: codebase_community
Question: Write all the comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?'
Evidence: "Why square the difference instead of taking the absolute value in standard deviation?" is the Title of post;
SQL: SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'
Database: codebase_community
Question: How much is the total bounty amount of the post titled about 'data'
Evidence: About data means the title contains 'data'; total bounty Amount refers to Sum(BountyAmount)
SQL: SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%'
Database: codebase_community
Question: Which user added a bounty amount of 50 to the post title mentioning variance?
Evidence: bounty amount of 50 refers to BountyAmount = 50; user refers to DisplayName; title mentioning variance refers to Title include 'variance'
SQL: SELECT T3.DisplayName, T1.Title FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'
Database: codebase_community
Question: Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post.
Evidence: tagged as  'humor' refers to tag = '<humor>'; comment of the post refers to Text; average view count = AVG(ViewCount)
SQL: SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.PostId  WHERE T2.Tags = '<humor>' GROUP BY T2.Title, T1.Text
Database: codebase_community
Question: Give the total number of comments posted by user ID 13.
SQL: SELECT COUNT(Id) FROM comments WHERE UserId = 13
Database: codebase_community
Question: Which user ID has the highest reputation?
Evidence: highest reputation refers to Max(Reputation)
SQL: SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )
Database: codebase_community
Question: Which user ID has the lowest view?
Evidence: lowest views refers to Min(Views)
SQL: SELECT Id FROM users WHERE Views = ( SELECT MIN(Views) FROM users )
Database: codebase_community
Question: How many users are awarded with supporter badge during year 2011?
Evidence: "Supporter" is the Name of badge; in year 2011 refers to year(Date) = 2011
SQL: SELECT COUNT(Id) FROM badges WHERE STRFTIME('%Y', Date) = '2011' AND Name = 'Supporter'
Database: codebase_community
Question: How many users are awarded with more than 5 badges?
Evidence: more than 5 badges refers to Count (Name) > 5; user refers to UserId
SQL: SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5
Database: codebase_community
Question: How many users from New York have a teacher and supporter badge?
Evidence: "Supporter" and "Teachers" are both Name of badge; 'New York' is the Location; user refers to UserId
SQL: SELECT COUNT(DISTINCT T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Name IN ('Supporter', 'Teacher') AND T2.Location = 'New York'
Database: codebase_community
Question: Which user have only one post history per post and having at least 1000 views?
Evidence: having at least 1000 view refers to Views > = 1000; user refers to UserId
SQL: SELECT T2.UserId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T3.ViewCount >= 1000 GROUP BY T2.UserId HAVING COUNT(DISTINCT T2.PostHistoryTypeId) = 1
Database: codebase_community
Question: Which users have posted the most comments. List out the user's badge?
Evidence: user with the most comments refers to UserId where Max(Count(Id)
SQL: SELECT Name FROM badges AS T1 INNER JOIN comments AS T2 ON T1.UserId = t2.UserId GROUP BY T2.UserId ORDER BY COUNT(T2.UserId) DESC LIMIT 1
Database: codebase_community
Question: How many users from India have the teacher badges?
Evidence: "India" is the Location; "Teacher" is the Name of badge
SQL: SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Location = 'India' AND T1.Name = 'Teacher'
Database: codebase_community
Question: What is the percentage difference of student badges given during 2010 and 2011?
Evidence: student badges refers to badge's name = 'Student'; during 2010 refers to Year(Date) = 2010; during 2011 refers to Year(Date) = 2011; percentage difference = Subtract (Divide(Count(Name where Year(Date) = 2010), Count (Name)) *100, Divide(Count(Name where Year(Date) = 2011), Count(Name)) * 100)
SQL: SELECT CAST(SUM(IIF(STRFTIME('%Y', Date) = '2010', 1, 0)) AS REAL) * 100 / COUNT(Id) - CAST(SUM(IIF(STRFTIME('%Y', Date) = '2011', 1, 0)) AS REAL) * 100 / COUNT(Id) FROM badges WHERE Name = 'Student'