1sf/bird-sql-dev-xresults huggingface dataset:
Database: european_football_2
Question: Who has the highest average finishing rate between the highest and shortest football player?
Evidence: finishing rate refers to finishing; highest average finishing rate = MAX(AVG(finishing)); highest football player refers to MAX(height); shortest football player refers to MIN(height);
SQL: SELECT A FROM ( SELECT AVG(finishing) result, 'Max' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = ( SELECT MAX(height) FROM Player ) UNION SELECT AVG(finishing) result, 'Min' A FROM Player AS T1 INNER JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T1.height = ( SELECT MIN(height) FROM Player ) ) ORDER BY result DESC LIMIT 1
Database: european_football_2
Question: Please list player names which are higher than 180.
Evidence: height>180;
SQL: SELECT player_name FROM Player WHERE height > 180
Database: european_football_2
Question: How many players were born after 1990?
Evidence: born after 1990 refers to strftime('%Y', birthday) = '1990';
SQL: SELECT COUNT(id) FROM Player WHERE STRFTIME('%Y', birthday) > '1990'
Database: european_football_2
Question: How many players whose first names are Adam and weigh more than 170?
Evidence: team names refers to team_long_name; speed class refers to buildUpPlaySpeedClass; buildUpPlaySpeedClass = 'Fast';
SQL: SELECT COUNT(id) FROM Player WHERE weight > 170 AND player_name LIKE 'Adam%'
Database: european_football_2
Question: Which players had an overall rating of over 80 from 2008 to 2010? Please list player names.
Evidence: overall_rating > 80; from 2008 to 2010 refers to strftime('%Y', date) BETWEEN '2008' AND '2010';
SQL: SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.overall_rating > 80 AND SUBSTR(t2.`date`, 1, 4) BETWEEN '2008' AND '2010'
Database: european_football_2
Question: What is Aaron Doran's potential score?
Evidence: potential score refers to potential;
SQL: SELECT t2.potential FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Doran'
Database: european_football_2
Question: List out of players whose preferred foot is left.
Evidence: preferred_foot = 'left';
SQL: SELECT DISTINCT t1.id, t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.preferred_foot = 'left'
Database: european_football_2
Question: Please list all team names which the speed class is fast.
Evidence: team names refers to team_long_name; speed class refers to buildUpPlaySpeedClass; buildUpPlaySpeedClass = 'Fast';
SQL: SELECT DISTINCT t1.team_long_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeedClass = 'Fast'
Database: european_football_2
Question: What is the passing class of CLB team?
Evidence: passing class refers to buildUpPlayPassingClass; CLB refers to team_short_name = 'CLB';
SQL: SELECT DISTINCT t2.buildUpPlayPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_short_name = 'CLB'
Database: european_football_2
Question: Which teams have build up play passing more than 70? Please list their short names.
Evidence: build up play passing refers to buildUpPlayPassing; buildUpPlayPassing > 70; short names refers to team_short_name;
SQL: SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlayPassing > 70
Database: european_football_2
Question: From 2010 to 2015, what was the average overall rating of players who are higher than 170?
Evidence: from 2010 to 2015 refers to strftime('%Y', date) >= '2010' AND <= '2015'; average overall rating = SUM(t2.overall_rating)/ COUNT(t2.id); higher than 170 refers to Player.height > 170;
SQL: SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 170 AND STRFTIME('%Y',t2.`date`) >= '2010' AND STRFTIME('%Y',t2.`date`) <= '2015'
Database: european_football_2
Question: Which football player has the shortest height?
Evidence: shortest height refers to MIN(height);
SQL: SELECT player_name FROM player ORDER BY height ASC LIMIT 1
Database: european_football_2
Question: Which country is the league Italy Serie A from?
Evidence: Italy Serie A from refers to League.name = 'Italy Serie A';
SQL: SELECT t1.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t2.name = 'Italy Serie A'
Database: european_football_2
Question: List the football team that has a build up play speed of 31, build up plan dribbling of 53, and build up play passing of 32. Only indicate the short name of the team.
Evidence: build up play speed refers to buildUpPlaySpeed; buildUpPlaySpeed = 31; build up play dribbling refers to buildUpPlayDribbling; buildUpPlayDribbling = 53; build up play passing refers to buildUpPlayPassing; buildUpPlayPassing = 32; short name of the team refers to team_short_name;
SQL: SELECT DISTINCT t1.team_short_name FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlaySpeed = 31 AND t2.buildUpPlayDribbling = 53 AND t2.buildUpPlayPassing = 32
Database: european_football_2
Question: What is the average overall rating of the football player Aaron Doran?
Evidence: average overall rating = AVG(overall_rating);
SQL: SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Doran'
Database: european_football_2
Question: How many matches were held in the league Germany 1. Bundesliga
from August to October 2008?
Evidence: Germany 1. Bundesliga refers to League.name = 'Germany 1. Bundesliga'; from August to October 2008 refers to strftime('%Y-%m', date) BETWEEN '2008-08' AND '2008-10';
SQL: SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Germany 1. Bundesliga' AND SUBSTR(t2.`date`, 1, 7) BETWEEN '2008-08' AND '2008-10'
Database: european_football_2
Question: List all the short name of the football team that had a home team goal of 10?
Evidence: short name of the football team refers to team_short_name; home team goal refers to home_team_goal; home_team_goal = 10;
SQL: SELECT t1.team_short_name FROM Team AS t1 INNER JOIN Match AS t2 ON t1.team_api_id = t2.home_team_api_id WHERE t2.home_team_goal = 10
Database: european_football_2
Question: List all the football player with the highest balance score and potential score of 61.
Evidence: balance score refers to balance; highest balance score refers to MAX(balance); potential score refers to potential; potential = 61;
SQL: SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.potential = '61' ORDER BY t2.balance DESC LIMIT 1
Database: european_football_2
Question: What is the difference of the average ball control score between Abdou Diallo and Aaron Appindangoye
?
Evidence: difference of the average ball control = SUBTRACT(AVG(ball_control WHERE player_name = 'Abdou Diallo'), AVG(ball_control WHERE player_name = 'Aaron Appindangoye')); AVG(ball_control WHERE player_name = 'XX XX') = SUM(CASE WHEN player_name = 'XX XX' THEN ball_control ELSE 0 END) / COUNT(CASE WHEN player_name = 'XX XX' THEN id ELSE NULL END)
SQL: SELECT CAST(SUM(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Abdou Diallo' THEN t2.id ELSE NULL END) - CAST(SUM(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.ball_control ELSE 0 END) AS REAL) / COUNT(CASE WHEN t1.player_name = 'Aaron Appindangoye' THEN t2.id ELSE NULL END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
Database: european_football_2
Question: What's the long name for the team GEN?
Evidence: long name for the team refers to team_long_name; team_short_name = 'GEN';
SQL: SELECT team_long_name FROM Team WHERE team_short_name = 'GEN'
Database: european_football_2
Question: Which player is older, Aaron Lennon or Abdelaziz Barrada?
Evidence: The larger the birthday value, the younger the person is, and vice versa;
SQL: SELECT player_name FROM Player WHERE player_name IN ('Aaron Lennon', 'Abdelaziz Barrada') ORDER BY birthday ASC LIMIT 1
Database: european_football_2
Question: Which player is the tallest?
Evidence: tallest player refers to MAX(height);
SQL: SELECT player_name FROM Player ORDER BY height DESC LIMIT 1
Database: european_football_2
Question: Among the players whose preferred foot was the left foot when attacking, how many of them would remain in his position when the team attacked?
Evidence: preferred foot when attacking was the left refers to preferred_foot = 'left'; players who would remain in his position when the team attacked refers to attacking_work_rate = 'low';
SQL: SELECT COUNT(player_api_id) FROM Player_Attributes WHERE preferred_foot = 'left' AND attacking_work_rate = 'low'
Database: european_football_2
Question: Which country is the Belgium Jupiler League from?
Evidence: Belgium Jupiler League refers to League.name = 'Belgium Jupiler League';
SQL: SELECT t1.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t2.name = 'Belgium Jupiler League'
Database: european_football_2
Question: Please list the leagues from Germany.
Evidence: Germany refers to Country.name = 'Germany';
SQL: SELECT t2.name FROM Country AS t1 INNER JOIN League AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Germany'
Database: european_football_2
Question: Which player has the strongest overall strength?
Evidence: overall strength refers to overall_rating; strongest overall strength refers to MAX(overall_rating);
SQL: SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t2.overall_rating DESC LIMIT 1
Database: european_football_2
Question: Among the players born before the year 1986, how many of them would remain in his position and defense while the team attacked?
Evidence: players born before the year 1986 refers to strftime('%Y', birthday)<'1986'; players who would remain in his position and defense while the team attacked refers to defensive_work_rate = 'high'; Should consider DISTINCT in the final result;
SQL: SELECT COUNT(DISTINCT t1.player_name) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE STRFTIME('%Y',t1.birthday) < '1986' AND t2.defensive_work_rate = 'high'
Database: european_football_2
Question: Which of these players performs the best in crossing actions, Alexis, Ariel Borysiuk or Arouna Kone?
Evidence: player who perform best in crossing actions refers to MAX(crossing);
SQL: SELECT t1.player_name, t2.crossing FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name IN ('Alexis', 'Ariel Borysiuk', 'Arouna Kone') ORDER BY t2.crossing DESC LIMIT 1
Database: european_football_2
Question: Among the players whose height is over 180, how many of them have a volley score of over 70?
Evidence: height > 180; volley score refers to volleys; volleys > 70;
SQL: SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 180 AND t2.volleys > 70
Database: european_football_2
Question: Please list the names of the players whose volley score and dribbling score are over 70.
Evidence: volley score are over 70 refers to volleys > 70; dribbling score refers to dribbling are over 70 refers to dribbling > 70;
SQL: SELECT DISTINCT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t2.volleys > 70 AND t2.dribbling > 70
Database: european_football_2
Question: How many matches in the 2008/2009 season were held in Belgium?
Evidence: Belgium refers to Country.name = 'Belgium';
SQL: SELECT COUNT(t2.id) FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id WHERE t1.name = 'Belgium' AND t2.season = '2008/2009'
Database: european_football_2
Question: What is the long passing score of the oldest player?
Evidence: long passing score refers to long_passing; oldest player refers to oldest birthday;
SQL: SELECT t2.long_passing FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t1.birthday ASC LIMIT 1
Database: european_football_2
Question: How many matches were held in the Belgium Jupiler League in April, 2009?
Evidence: Belgium Jupiler League refers to League.name = 'Belgium Jupiler League'; in April, 2009 refers to SUBSTR(`date`, 1, 7);
SQL: SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t1.name = 'Belgium Jupiler League' AND SUBSTR(t2.`date`, 1, 7) = '2009-04'
Database: european_football_2
Question: Give the name of the league had the most matches in the 2008/2009 season?
Evidence: league that had the most matches in the 2008/2009 season refers to MAX(league_name WHERE season = '2008/2009');
SQL: SELECT t1.name FROM League AS t1 JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2008/2009' GROUP BY t1.name HAVING COUNT(t2.id) = (SELECT MAX(match_count) FROM (SELECT COUNT(t2.id) AS match_count FROM Match AS t2 WHERE t2.season = '2008/2009' GROUP BY t2.league_id))
Database: european_football_2
Question: What is the average overall rating of the players born before the year 1986?
Evidence: average overall rating = DIVIDE(SUM(overall_rating), COUNT(id)); born before the year 1986 refers to strftime('%Y', birthday) < '1986';
SQL: SELECT SUM(t2.overall_rating) / COUNT(t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE SUBSTR(t1.birthday, 1, 4) < '1986'
Database: european_football_2
Question: How much higher in percentage is Ariel Borysiuk's overall rating than that of Paulin Puel?
Evidence: how much higher in percentage = MULTIPLY(DIVIDE(SUBTRACT(overall_rating WHERE player_name = 'Ariel Borysiuk', overall_rating WHERE player_name = 'Paulin Puel'), overall_rating WHERE player_name = 'Paulin Puel'), 100);
SQL: SELECT (SUM(CASE WHEN t1.player_name = 'Ariel Borysiuk' THEN t2.overall_rating ELSE 0 END) * 1.0 - SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END)) * 100 / SUM(CASE WHEN t1.player_name = 'Paulin Puel' THEN t2.overall_rating ELSE 0 END) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id
Database: european_football_2
Question: How much is the average build up play speed of the Heart of Midlothian team?
Evidence: Heart of Midlothian refers to team_long_name = 'Heart of Midlothian'; average build up play speed refers to  AVG(buildUpPlaySpeed)
SQL: SELECT CAST(SUM(t2.buildUpPlaySpeed) AS REAL) / COUNT(t2.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Heart of Midlothian'
Database: european_football_2
Question: Calculate the average overall rating of Pietro Marino.
Evidence: Pietro Marino refers to player_name = 'Pietro Marino'; average overall rating AVG(T1.overall_rating)
SQL: SELECT CAST(SUM(t2.overall_rating) AS REAL) / COUNT(t2.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Pietro Marino'
Database: european_football_2
Question: What is Aaron Lennox's total crossing score?
Evidence: Aaron Lennox's refers to T2.player_name = 'Aaron Lennox'; total crossing score refers to SUM(crossing)
SQL: SELECT SUM(t2.crossing) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Aaron Lennox'
Database: european_football_2
Question: What is Ajax's highest chance creation passing score and what is it classified as?
Evidence: Ajax's refers to team_long_name = 'Ajax'; chance creation passing score refers to MAX(chanceCreationPassing); classified refer to chanceCreationPassingClass
SQL: SELECT t2.chanceCreationPassing, t2.chanceCreationPassingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Ajax' ORDER BY t2.chanceCreationPassing DESC LIMIT 1
Database: european_football_2
Question: Which foot is preferred by Abdou Diallo?
Evidence: Abdou Diallo refers to player_name = 'Abdou Diallo'; foot is preferred refers to preferred_foot
SQL: SELECT DISTINCT t2.preferred_foot FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Abdou Diallo'
Database: codebase_community
Question: Describe the last accessed date and location of the users who received the outliers badge.
Evidence: Outliers is the name of the badge;
SQL: SELECT T1.LastAccessDate, T1.Location FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'outliers'
Database: codebase_community
Question: List the post IDs and badge names of the user Samuel in 2013.
Evidence: Samuel refers to UserDisplayName; YEAR(CreationDate) = 2013 relates to PostId; YEAR(Date) = 2013 relates to the badge;
SQL: SELECT T1.PostId, T2.Name FROM postHistory AS T1 INNER JOIN badges AS T2 ON T1.UserId = T2.UserId WHERE T1.UserDisplayName = 'Samuel' AND STRFTIME('%Y', T1.CreationDate) = '2013' AND STRFTIME('%Y', T2.Date) = '2013'
Database: codebase_community
Question: What is the owner's display name of the most popular post?
Evidence: Higher view count means the post has higher popularity; the most popular post refers to MAX(ViewCount);
SQL: SELECT DisplayName FROM users WHERE Id = ( SELECT OwnerUserId FROM posts ORDER BY ViewCount DESC LIMIT 1 )
Database: codebase_community
Question: Mention the display name and location of the user who owned the excerpt post with hypothesis-testing tag.
Evidence: user who owned the excerpt post with hypothesis-testing tag refers to OwnerUserId WHERE TagName = 'hypothesis-testing';
SQL: SELECT T3.DisplayName, T3.Location FROM tags AS T1 INNER JOIN posts AS T2 ON T1.ExcerptPostId = T2.Id INNER JOIN users AS T3 ON T3.Id = T2.OwnerUserId WHERE T1.TagName = 'hypothesis-testing'
Database: codebase_community
Question: Write down the related posts titles and link type IDs of the post "What are principal component scores?".
Evidence: Title = 'What are principal component scores?';
SQL: SELECT T3.Title, T2.LinkTypeId FROM posts AS T1 INNER JOIN postLinks AS T2 ON T1.Id = T2.PostId INNER JOIN posts AS T3 ON T2.RelatedPostId = T3.Id WHERE T1.Title = 'What are principal component scores?'
Database: codebase_community
Question: Describe the display name of the parent ID for child post with the highest score.
Evidence: If the parent id is not null, the post is the child post; the highest score refers to MAX(Score);
SQL: SELECT DisplayName FROM users WHERE Id = ( SELECT OwnerUserId FROM posts WHERE ParentId IS NOT NULL ORDER BY Score DESC LIMIT 1 )
Database: codebase_community
Question: Under the vote type of 8, provide the display names and websites URLs of the user who got the highest bounty amount.
Evidence: vote type of 8 refers to VoteTypeId = 8; the highest bounty amount refers to MAX(BountyAmount);
SQL: SELECT DisplayName, WebsiteUrl FROM users WHERE Id = ( SELECT UserId FROM votes WHERE VoteTypeId = 8 ORDER BY BountyAmount DESC LIMIT 1 )
Database: codebase_community
Question: What are the titles of the top 5 posts with the highest popularity?
Evidence: Higher view count means the post has higher popularity; the highest popularity refers to MAX(ViewCount);
SQL: SELECT Title FROM posts ORDER BY ViewCount DESC LIMIT 5
Database: codebase_community
Question: How many tags have post count between 5,000 to 7,000?
Evidence: post count between 5,000 to 7,000 refers to Count BETWEEN 5000 and 7000;
SQL: SELECT COUNT(Id) FROM tags WHERE Count BETWEEN 5000 AND 7000
Database: codebase_community
Question: What is the owner user id of the most valuable post?
Evidence: the most valuable post refers to MAX(FavoriteCount);
SQL: SELECT OwnerUserId FROM posts WHERE FavoriteCount = ( SELECT MAX(FavoriteCount) FROM posts )
Database: codebase_community
Question: How old is the most influential user?
Evidence: How old describes age; the most influential refers to user where MAX(Reputation);
SQL: SELECT Age FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )
Database: codebase_community
Question: How many posts with votes that were created in 2011 have a bounty of 50?
Evidence: created in 2012 refers YEAR(CreationDate) = 2011; BountyAmount = 50;
SQL: SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T2.BountyAmount = 50 AND STRFTIME('%Y', T2.CreationDate) = '2011'
Database: codebase_community
Question: What is the id of the youngest user?
Evidence: the youngest user refers to MIN(Age);
SQL: SELECT Id FROM users WHERE Age = ( SELECT MIN(Age) FROM users )
Database: codebase_community
Question: What is the sum of score of the post on 2010-07-19?
Evidence: on 2010-07-19 refers to LasActivityDate LIKE '2010-07-19%';
SQL: SELECT SUM(Score) FROM posts WHERE LasActivityDate LIKE '2010-07-19%'
Database: codebase_community
Question: What is the average monthly number of links created in 2010 for posts that have no more than 2 answers?
Evidence: calculation = DIVIDE(COUNT(Id where YEAR(CreationDate) = 2010 and AnswerCount < = 2), 12)
SQL: SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'
Database: codebase_community
Question: Among the posts that were voted by user 1465, what is the id of the most valuable post?
Evidence: user 1465 refers to UserId = 1465; the most valuable post refers to MAX(FavoriteCount);
SQL: SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1
Database: codebase_community
Question: What is the title of the post with the oldest post link?
Evidence: the oldest post link refers to MIN(CreaionDate);
SQL: SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1
Database: codebase_community
Question: What is the display name of the user who acquired the highest amount of badges?
Evidence: highest amount of badges refers to MAX(COUNT(Name));
SQL: SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T1.Id) DESC LIMIT 1
Database: codebase_community
Question: When did 'chl' cast its first vote in a post?
Evidence: DisplayName = 'chl'; cast its first vote refers to MIN(CreationDate);
SQL: SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1
Database: codebase_community
Question: What is the date when the youngest user made his or her first post?
Evidence: the youngest user refers to MIN(Age); first post refers to MIN(CreaionDate);
SQL: SELECT T2.CreaionDate FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Age IS NOT NULL ORDER BY T1.Age, T2.CreaionDate LIMIT 1
Database: codebase_community
Question: What is the display name of the user who acquired the first Autobiographer badge?
Evidence: Autobiographer is the name of the badge; acquired the first refers to MIN(Date);
SQL: SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.`Name` = 'Autobiographer' ORDER BY T2.Date LIMIT 1
Database: codebase_community
Question: Among the users located in United Kingdom, how many users whose post have a total favorite amount of 4 or more?
Evidence: favorite amount of 4 or more refers to FavoriteCount > = 4; Location = 'United Kingdom';
SQL: SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4