Dataset Viewer
Auto-converted to Parquet Duplicate
case_id
stringlengths
12
14
question_id
stringlengths
14
41
ds
stringclasses
2 values
db
stringclasses
107 values
question
stringlengths
25
185
evidence
stringclasses
94 values
gold_sql
stringlengths
40
356
pred_sql
stringlengths
27
444
label
stringclasses
3 values
unseen
bool
2 classes
bird_q000_r0
bird/ice_hockey_draft/6916
bird
ice_hockey_draft
Please list the names of all the players with a height of over 6'2" inches.
name of the players refers to PlayerName; height of over 6'2" inches refers to height_in_inch > '6''2"' ;
SELECT DISTINCT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2"'
SELECT p.PlayerName FROM PlayerInfo p JOIN height_info h ON p.height = h.height_id WHERE h.height_in_inch > '6''2"';
wrong
false
bird_q000_r1
bird/ice_hockey_draft/6916
bird
ice_hockey_draft
Please list the names of all the players with a height of over 6'2" inches.
name of the players refers to PlayerName; height of over 6'2" inches refers to height_in_inch > '6''2"' ;
SELECT DISTINCT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2"'
SELECT pi.PlayerName FROM PlayerInfo pi JOIN height_info hi ON pi.height = hi.height_id WHERE hi.height_in_inch > '6''2"';
wrong
false
bird_q000_r2
bird/ice_hockey_draft/6916
bird
ice_hockey_draft
Please list the names of all the players with a height of over 6'2" inches.
name of the players refers to PlayerName; height of over 6'2" inches refers to height_in_inch > '6''2"' ;
SELECT DISTINCT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2"'
SELECT p.PlayerName FROM PlayerInfo p JOIN height_info hi ON p.height = hi.height_id WHERE hi.height_in_inch > '6''2"';
wrong
false
bird_q000_r3
bird/ice_hockey_draft/6916
bird
ice_hockey_draft
Please list the names of all the players with a height of over 6'2" inches.
name of the players refers to PlayerName; height of over 6'2" inches refers to height_in_inch > '6''2"' ;
SELECT DISTINCT T1.PlayerName FROM PlayerInfo AS T1 INNER JOIN height_info AS T2 ON T1.height = T2.height_id WHERE T2.height_in_inch > '6''2"'
SELECT pi.PlayerName FROM PlayerInfo AS pi JOIN height_info AS hi ON pi.height = hi.height_id WHERE hi.height_in_inch > '6''2"';
wrong
false
bird_q001_r0
bird/hockey/7770
bird
hockey
Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?
born in the USA refers to birthCountry = 'USA'; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthCountry = 'USA'
SELECT COUNT(*) FROM Master m JOIN Coaches c ON m.coachID = c.coachID JOIN Teams t ON c.tmID = t.tmID WHERE m.birthCountry = 'USA' AND t.name = 'Philadelphia Flyers';
wrong
false
bird_q001_r1
bird/hockey/7770
bird
hockey
Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?
born in the USA refers to birthCountry = 'USA'; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthCountry = 'USA'
SELECT COUNT(*) AS coach_count FROM Master m JOIN Coaches c ON m.coachID = c.coachID JOIN Teams t ON c.tmID = t.tmID WHERE m.birthCountry = 'USA' AND t.name = 'Philadelphia Flyers';
wrong
false
bird_q001_r2
bird/hockey/7770
bird
hockey
Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?
born in the USA refers to birthCountry = 'USA'; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthCountry = 'USA'
SELECT COUNT(*) FROM Coaches c JOIN Teams t ON c.tmID = t.tmID JOIN Master m ON c.coachID = m.coachID WHERE m.birthCountry = 'USA' AND t.name = 'Philadelphia Flyers';
wrong
false
bird_q001_r3
bird/hockey/7770
bird
hockey
Among the coaches who are born in the USA, how many of them used to train the Philadelphia Flyers?
born in the USA refers to birthCountry = 'USA'; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthCountry = 'USA'
SELECT COUNT(*) FROM Master m JOIN Coaches c ON m.coachID = c.coachID JOIN Teams t ON c.tmID = t.tmID WHERE m.birthCountry = 'USA' AND t.name = 'Philadelphia Flyers';
wrong
false
bird_q002_r0
bird/professional_basketball/2815
bird
professional_basketball
Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?
the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75
SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE CAST(d_rebounds AS REAL) * 100 / rebounds > 75 AND season_id BETWEEN 1990 AND 2007
SELECT COUNT(*) FROM players_teams WHERE year BETWEEN 1990 AND 2007 AND (dRebounds * 100.0 / rebounds) > 75
wrong
true
bird_q002_r1
bird/professional_basketball/2815
bird
professional_basketball
Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?
the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75
SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE CAST(d_rebounds AS REAL) * 100 / rebounds > 75 AND season_id BETWEEN 1990 AND 2007
SELECT COUNT(*) FROM players_teams pt WHERE pt.year BETWEEN 1990 AND 2007 AND (pt.dRebounds * 100.0 / pt.rebounds) > 75;
wrong
true
bird_q002_r2
bird/professional_basketball/2815
bird
professional_basketball
Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?
the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75
SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE CAST(d_rebounds AS REAL) * 100 / rebounds > 75 AND season_id BETWEEN 1990 AND 2007
SELECT COUNT(*) FROM players_teams pt WHERE pt.year BETWEEN 1990 AND 2007 AND pt.rebounds > 0 AND 100.0 * pt.dRebounds / pt.rebounds > 75;
wrong
true
bird_q002_r3
bird/professional_basketball/2815
bird
professional_basketball
Between the years 1990 and 2007, of the total rebounds achieved by each player, how many managed to exceed 75% of defensive rebounds?
the year 1990 and 2007 refers to year BETWEEN 1990 AND 2007; exceed 75% of defensive rebounds refers to Divide (dRebounds, rebounds) * 100 > 75
SELECT COUNT(DISTINCT playerID) FROM player_allstar WHERE CAST(d_rebounds AS REAL) * 100 / rebounds > 75 AND season_id BETWEEN 1990 AND 2007
SELECT COUNT(*) FROM players_teams pt JOIN teams t ON pt.year = t.year WHERE pt.year BETWEEN 1990 AND 2007 AND (pt.dRebounds * 100.0 / pt.rebounds) > 75;
wrong
true
bird_q003_r0
bird/olympics/5039
bird
olympics
How many people who are below 30 and participated in the summer season?
people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';
SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30
SELECT COUNT(*) FROM games_competitor gc JOIN games g ON gc.games_id = g.id WHERE gc.age < 30 AND g.season = 'Summer';
spurious
false
bird_q003_r1
bird/olympics/5039
bird
olympics
How many people who are below 30 and participated in the summer season?
people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';
SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30
SELECT COUNT(*) FROM games_competitor gc JOIN games g ON gc.games_id = g.id WHERE gc.age < 30 AND g.season = 'Summer';
spurious
false
bird_q003_r2
bird/olympics/5039
bird
olympics
How many people who are below 30 and participated in the summer season?
people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';
SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30
SELECT COUNT(*) FROM games_competitor gc JOIN games g ON gc.games_id = g.id WHERE gc.age < 30 AND g.season = 'Summer';
spurious
false
bird_q003_r3
bird/olympics/5039
bird
olympics
How many people who are below 30 and participated in the summer season?
people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';
SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30
SELECT COUNT(*) FROM games_competitor AS gc JOIN games AS g ON gc.games_id = g.id WHERE gc.age < 30 AND g.season = 'Summer';
spurious
false
bird_q004_r0
bird/address/5176
bird
address
Among the postal points in California, calculate the percentage of them in post office types.
DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';
SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California'
SELECT 100.0 * SUM(CASE WHEN zd.type = 'Post Office' THEN 1 ELSE 0 END) / COUNT(*) FROM zip_data AS zd JOIN state AS s ON zd.state = s.abbreviation WHERE s.name = 'California';
correct
false
bird_q004_r1
bird/address/5176
bird
address
Among the postal points in California, calculate the percentage of them in post office types.
DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';
SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California'
SELECT 100.0 * SUM(CASE WHEN zd.type = 'Post Office' THEN 1 ELSE 0 END) / COUNT(*) AS percentage FROM zip_data zd JOIN state s ON zd.state = s.abbreviation WHERE s.name = 'California';
correct
false
bird_q004_r2
bird/address/5176
bird
address
Among the postal points in California, calculate the percentage of them in post office types.
DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';
SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California'
SELECT 100.0 * SUM(CASE WHEN z.type = 'Post Office' THEN 1 ELSE 0 END) / COUNT(*) AS percentage FROM zip_data z JOIN state s ON z.state = s.abbreviation WHERE s.name = 'California';
correct
false
bird_q004_r3
bird/address/5176
bird
address
Among the postal points in California, calculate the percentage of them in post office types.
DIVIDE(COUNT(zip_code where type = 'Post Office'), COUNT(zip_code)) as percentage where name = 'California';
SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'California'
SELECT 100.0 * SUM(CASE WHEN zd.type = 'Post Office' THEN 1 ELSE 0 END) / COUNT(*) AS percentage FROM zip_data zd JOIN state s ON zd.state = s.abbreviation WHERE s.name = 'California';
correct
false
bird_q005_r0
bird/soccer_2016/1966
bird
soccer_2016
List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".
innings numbers refers to Innings_No
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20
SELECT Batsman_Scored.Ball_Id, Batsman_Scored.Runs_Scored, Batsman_Scored.Innings_No FROM Batsman_Scored JOIN Match ON Batsman_Scored.Match_Id = Match.Match_Id WHERE Batsman_Scored.Over_Id = 20 AND Batsman_Scored.Match_Id = 335988;
correct
false
bird_q005_r1
bird/soccer_2016/1966
bird
soccer_2016
List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".
innings numbers refers to Innings_No
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Over_Id = 20 AND Match_Id = 335988;
correct
false
bird_q005_r2
bird/soccer_2016/1966
bird
soccer_2016
List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".
innings numbers refers to Innings_No
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20;
correct
false
bird_q005_r3
bird/soccer_2016/1966
bird
soccer_2016
List the ball IDs, scores, and innings numbers in the over ID 20 of match ID "335988".
innings numbers refers to Innings_No
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20
SELECT Ball_Id, Runs_Scored, Innings_No FROM Batsman_Scored WHERE Match_Id = 335988 AND Over_Id = 20;
correct
false
bird_q006_r0
bird/public_review_platform/4037
bird
public_review_platform
How many users have uber review votes for funny from the fans?
users refer to user_id; review_votes_funny = 'uber';
SELECT COUNT(DISTINCT user_id) FROM Reviews WHERE review_votes_funny = 'Uber'
SELECT COUNT(*) FROM Reviews WHERE review_votes_funny = 'Uber';
wrong
false
bird_q006_r1
bird/public_review_platform/4037
bird
public_review_platform
How many users have uber review votes for funny from the fans?
users refer to user_id; review_votes_funny = 'uber';
SELECT COUNT(DISTINCT user_id) FROM Reviews WHERE review_votes_funny = 'Uber'
SELECT COUNT(*) FROM Reviews r JOIN Users u ON r.user_id = u.user_id WHERE r.review_votes_funny = 'Uber';
wrong
false
bird_q006_r2
bird/public_review_platform/4037
bird
public_review_platform
How many users have uber review votes for funny from the fans?
users refer to user_id; review_votes_funny = 'uber';
SELECT COUNT(DISTINCT user_id) FROM Reviews WHERE review_votes_funny = 'Uber'
SELECT COUNT(*) FROM Reviews JOIN Users ON Reviews.user_id = Users.user_id WHERE Reviews.review_votes_funny = 'Uber';
wrong
false
bird_q006_r3
bird/public_review_platform/4037
bird
public_review_platform
How many users have uber review votes for funny from the fans?
users refer to user_id; review_votes_funny = 'uber';
SELECT COUNT(DISTINCT user_id) FROM Reviews WHERE review_votes_funny = 'Uber'
SELECT COUNT(*) FROM Users u JOIN Reviews r ON r.user_id = u.user_id WHERE r.review_votes_funny = 'Uber';
wrong
false
bird_q007_r0
bird/movie_platform/20
bird
movie_platform
What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.
movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
SELECT movies.movie_title, movies.movie_popularity FROM movies WHERE movies.movie_release_year = 2021 AND movies.director_name = 'Steven Spielberg' ORDER BY movies.movie_title;
correct
false
bird_q007_r1
bird/movie_platform/20
bird
movie_platform
What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.
movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
SELECT m.movie_title, m.movie_popularity FROM movies m WHERE m.movie_release_year = 2021 AND m.director_name LIKE '%Steven Spielberg%';
spurious
true
bird_q007_r2
bird/movie_platform/20
bird
movie_platform
What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.
movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
SELECT m.movie_title, m.movie_popularity FROM movies m WHERE m.movie_release_year = 2021 AND m.director_name = 'Steven Spielberg';
correct
false
bird_q007_r3
bird/movie_platform/20
bird
movie_platform
What are the movie popularity of the movies released in 2021 that were directed by Steven Spielberg? List the names of the movies and their corresponding popularity.
movie released in 2021 refers to movie_release_year = 2021; popularity refers to movie_popularity;
SELECT movie_title, movie_popularity FROM movies WHERE movie_release_year = 2021 AND director_name = 'Steven Spielberg'
SELECT m.movie_popularity, m.movie_title FROM movies m WHERE m.movie_release_year = 2021 AND m.director_name = 'Steven Spielberg';
wrong
false
bird_q008_r0
bird/movie_3/9110
bird
movie_3
Please list the titles of all the films that have more than 2 special features.
more than 2 special features refers to Count(special_features) > 2
SELECT title FROM ( SELECT title, COUNT(special_features) AS num FROM film GROUP BY title ) AS T ORDER BY T.num > 2
SELECT title FROM film WHERE LENGTH(special_features) - LENGTH(REPLACE(special_features, ',', '')) > 2;
wrong
true
bird_q008_r1
bird/movie_3/9110
bird
movie_3
Please list the titles of all the films that have more than 2 special features.
more than 2 special features refers to Count(special_features) > 2
SELECT title FROM ( SELECT title, COUNT(special_features) AS num FROM film GROUP BY title ) AS T ORDER BY T.num > 2
SELECT title FROM film WHERE special_features LIKE '%,%,%' AND LENGTH(special_features) > 2;
wrong
true
bird_q008_r2
bird/movie_3/9110
bird
movie_3
Please list the titles of all the films that have more than 2 special features.
more than 2 special features refers to Count(special_features) > 2
SELECT title FROM ( SELECT title, COUNT(special_features) AS num FROM film GROUP BY title ) AS T ORDER BY T.num > 2
SELECT title FROM film WHERE special_features LIKE '%,%' HAVING COUNT(*) > 2;
wrong
true
bird_q008_r3
bird/movie_3/9110
bird
movie_3
Please list the titles of all the films that have more than 2 special features.
more than 2 special features refers to Count(special_features) > 2
SELECT title FROM ( SELECT title, COUNT(special_features) AS num FROM film GROUP BY title ) AS T ORDER BY T.num > 2
SELECT title FROM film WHERE special_features IS NOT NULL AND LENGTH(special_features) > 0 AND ( SELECT COUNT(*) FROM string_to_array(film.special_features, ',') ) > 2;
wrong
true
bird_q009_r0
bird/synthea/1384
bird
synthea
When did Mrs. Ira Deckow have the standard pregnancy test?
standard pregnancy test refers to DESCRIPTION = 'Standard pregnancy test' from procedures;
SELECT T2.date FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Ira' AND T1.last = 'Deckow' AND T2.description = 'Standard pregnancy test'
SELECT pr.DATE FROM procedures pr JOIN patients p ON pr.PATIENT = p.patient WHERE pr.DESCRIPTION = 'Standard pregnancy test' AND p.first = 'Ira' AND p.last = 'Deckow' AND p.prefix = 'Mrs.';
correct
false
bird_q009_r1
bird/synthea/1384
bird
synthea
When did Mrs. Ira Deckow have the standard pregnancy test?
standard pregnancy test refers to DESCRIPTION = 'Standard pregnancy test' from procedures;
SELECT T2.date FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Ira' AND T1.last = 'Deckow' AND T2.description = 'Standard pregnancy test'
SELECT p.DATE FROM procedures AS p JOIN patients AS pt ON p.PATIENT = pt.patient WHERE p.DESCRIPTION = 'Standard pregnancy test' AND pt.first = 'Ira' AND pt.last = 'Deckow' AND pt.prefix = 'Mrs.';
correct
false
bird_q009_r2
bird/synthea/1384
bird
synthea
When did Mrs. Ira Deckow have the standard pregnancy test?
standard pregnancy test refers to DESCRIPTION = 'Standard pregnancy test' from procedures;
SELECT T2.date FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Ira' AND T1.last = 'Deckow' AND T2.description = 'Standard pregnancy test'
SELECT p.birthdate, p.first, p.last, p.prefix, pr.DATE, pr.DESCRIPTION FROM patients p JOIN procedures pr ON pr.PATIENT = p.patient WHERE p.first = 'Ira' AND p.last = 'Deckow' AND pr.DESCRIPTION = 'Standard pregnancy test';
wrong
true
bird_q009_r3
bird/synthea/1384
bird
synthea
When did Mrs. Ira Deckow have the standard pregnancy test?
standard pregnancy test refers to DESCRIPTION = 'Standard pregnancy test' from procedures;
SELECT T2.date FROM patients AS T1 INNER JOIN procedures AS T2 ON T1.patient = T2.PATIENT WHERE T1.prefix = 'Mrs.' AND T1.first = 'Ira' AND T1.last = 'Deckow' AND T2.description = 'Standard pregnancy test'
SELECT p.birthdate, pr.DATE FROM patients AS p JOIN procedures AS pr ON pr.PATIENT = p.patient WHERE p.prefix = 'Mr.' AND p.first = 'Ira' AND p.last = 'Deckow' AND pr.DESCRIPTION = 'Standard pregnancy test';
wrong
false
bird_q010_r0
bird/hockey/7769
bird
hockey
Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?
born in March refers to birthMon = 3; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthMon = 3
SELECT COUNT(*) FROM Coaches c JOIN Teams t ON c.tmID = t.tmID JOIN Master m ON m.coachID = c.coachID WHERE t.name = 'Philadelphia Flyers' AND m.birthMon = '3';
wrong
false
bird_q010_r1
bird/hockey/7769
bird
hockey
Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?
born in March refers to birthMon = 3; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthMon = 3
SELECT COUNT(*) FROM Master m JOIN Coaches c ON m.coachID = c.coachID JOIN Teams t ON c.tmID = t.tmID WHERE t.name = 'Philadelphia Flyers' AND m.birthMon = '3';
wrong
false
bird_q010_r2
bird/hockey/7769
bird
hockey
Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?
born in March refers to birthMon = 3; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthMon = 3
SELECT COUNT(*) FROM Coaches AS c JOIN Teams AS t ON c.tmID = t.tmID AND c.year = t.year JOIN Master AS m ON m.coachID = c.coachID WHERE t.name = 'Philadelphia Flyers' AND m.birthMon = '3';
spurious
false
bird_q010_r3
bird/hockey/7769
bird
hockey
Among the coaches who have taught the Philadelphia Flyers, how many of them are born in March?
born in March refers to birthMon = 3; Philadelphia Flyers is the name of team;
SELECT COUNT(DISTINCT T3.coachID) FROM Coaches AS T1 INNER JOIN Teams AS T2 ON T1.year = T2.year AND T1.tmID = T2.tmID INNER JOIN Master AS T3 ON T1.coachID = T3.coachID WHERE T2.name = 'Philadelphia Flyers' AND T3.birthMon = 3
SELECT COUNT(*) AS march_birth_count FROM Coaches c JOIN Teams t ON c.tmID = t.tmID AND c.year = t.year JOIN Master m ON m.coachID = c.coachID WHERE t.name = 'Philadelphia Flyers' AND m.birthMon = '3';
spurious
false
bird_q011_r0
bird/movie_3/9263
bird
movie_3
How many payments were made throughout the month of August 2005?
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%'
SELECT COUNT(*) FROM payment WHERE payment_date LIKE '2005-08%';
wrong
false
bird_q011_r1
bird/movie_3/9263
bird
movie_3
How many payments were made throughout the month of August 2005?
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%'
SELECT COUNT(*) FROM payment WHERE payment_date LIKE '2005-08%';
wrong
false
bird_q011_r2
bird/movie_3/9263
bird
movie_3
How many payments were made throughout the month of August 2005?
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%'
SELECT COUNT(*) FROM payment WHERE payment_date LIKE '2005-08%';
wrong
false
bird_q011_r3
bird/movie_3/9263
bird
movie_3
How many payments were made throughout the month of August 2005?
payments made refers to amount; throughout the month of August 2005 refers to payment_date like '2005-08%'
SELECT SUM(amount) FROM payment WHERE payment_date LIKE '2005-08%'
SELECT COUNT(*) FROM payment WHERE payment_date LIKE '2005-08%';
wrong
false
bird_q012_r0
bird/human_resources/8979
bird
human_resources
What is the maximum salary of position "Trainer"?
maximum salary refers to maxsalary; Trainee is a positiontitle
SELECT maxsalary FROM position WHERE positiontitle = 'Trainee'
SELECT maxsalary FROM position WHERE positiontitle = 'Trainer';
wrong
true
bird_q012_r1
bird/human_resources/8979
bird
human_resources
What is the maximum salary of position "Trainer"?
maximum salary refers to maxsalary; Trainee is a positiontitle
SELECT maxsalary FROM position WHERE positiontitle = 'Trainee'
SELECT MAXsalary FROM position WHERE positiontitle = 'Trainer';
wrong
true
bird_q012_r2
bird/human_resources/8979
bird
human_resources
What is the maximum salary of position "Trainer"?
maximum salary refers to maxsalary; Trainee is a positiontitle
SELECT maxsalary FROM position WHERE positiontitle = 'Trainee'
SELECT maxsalary FROM position WHERE positiontitle = 'Trainer';
wrong
true
bird_q012_r3
bird/human_resources/8979
bird
human_resources
What is the maximum salary of position "Trainer"?
maximum salary refers to maxsalary; Trainee is a positiontitle
SELECT maxsalary FROM position WHERE positiontitle = 'Trainee'
SELECT maxsalary FROM position WHERE positiontitle = 'Trainee';
correct
false
bird_q013_r0
bird/works_cycles/7103
bird
works_cycles
Calculate the average of the total ordered quantity of products purchased whose shipping method was Cargo Transport 5.
shipping method was Cargo Transport 5 refers to Name = 'Cargo Transport 5'; average = DIVIDE(SUM(OrderQty where Name = 'Cargo Transport 5'), COUNT(ShipMethodID))
SELECT CAST(SUM(IIF(T1.ShipMethodID = 5, T3.OrderQty, 0)) AS REAL) / COUNT(T3.ProductID) FROM ShipMethod AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.ShipMethodID = T2.ShipMethodID INNER JOIN PurchaseOrderDetail AS T3 ON T2.PurchaseOrderID = T3.PurchaseOrderID
SELECT AVG(po.OrderQty) AS AverageOrderedQuantity FROM PurchaseOrderDetail po JOIN PurchaseOrderHeader poh ON po.PurchaseOrderID = poh.PurchaseOrderID JOIN ShipMethod sm ON poh.ShipMethodID = sm.ShipMethodID WHERE sm.Name = 'Cargo Transport 5';
wrong
true
bird_q013_r1
bird/works_cycles/7103
bird
works_cycles
Calculate the average of the total ordered quantity of products purchased whose shipping method was Cargo Transport 5.
shipping method was Cargo Transport 5 refers to Name = 'Cargo Transport 5'; average = DIVIDE(SUM(OrderQty where Name = 'Cargo Transport 5'), COUNT(ShipMethodID))
SELECT CAST(SUM(IIF(T1.ShipMethodID = 5, T3.OrderQty, 0)) AS REAL) / COUNT(T3.ProductID) FROM ShipMethod AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.ShipMethodID = T2.ShipMethodID INNER JOIN PurchaseOrderDetail AS T3 ON T2.PurchaseOrderID = T3.PurchaseOrderID
SELECT AVG(pod.OrderQty) AS AverageOrderedQty FROM PurchaseOrderDetail AS pod JOIN PurchaseOrderHeader AS poh ON pod.PurchaseOrderID = poh.PurchaseOrderID JOIN ShipMethod AS sm ON poh.ShipMethodID = sm.ShipMethodID WHERE sm.Name = 'Cargo Transport 5';
wrong
true
bird_q013_r2
bird/works_cycles/7103
bird
works_cycles
Calculate the average of the total ordered quantity of products purchased whose shipping method was Cargo Transport 5.
shipping method was Cargo Transport 5 refers to Name = 'Cargo Transport 5'; average = DIVIDE(SUM(OrderQty where Name = 'Cargo Transport 5'), COUNT(ShipMethodID))
SELECT CAST(SUM(IIF(T1.ShipMethodID = 5, T3.OrderQty, 0)) AS REAL) / COUNT(T3.ProductID) FROM ShipMethod AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.ShipMethodID = T2.ShipMethodID INNER JOIN PurchaseOrderDetail AS T3 ON T2.PurchaseOrderID = T3.PurchaseOrderID
SELECT AVG(pod.OrderQty) FROM PurchaseOrderDetail AS pod JOIN PurchaseOrderHeader AS po ON pod.PurchaseOrderID = po.PurchaseOrderID JOIN ShipMethod AS sm ON po.ShipMethodID = sm.ShipMethodID WHERE sm.Name = 'Cargo Transport 5';
wrong
true
bird_q013_r3
bird/works_cycles/7103
bird
works_cycles
Calculate the average of the total ordered quantity of products purchased whose shipping method was Cargo Transport 5.
shipping method was Cargo Transport 5 refers to Name = 'Cargo Transport 5'; average = DIVIDE(SUM(OrderQty where Name = 'Cargo Transport 5'), COUNT(ShipMethodID))
SELECT CAST(SUM(IIF(T1.ShipMethodID = 5, T3.OrderQty, 0)) AS REAL) / COUNT(T3.ProductID) FROM ShipMethod AS T1 INNER JOIN PurchaseOrderHeader AS T2 ON T1.ShipMethodID = T2.ShipMethodID INNER JOIN PurchaseOrderDetail AS T3 ON T2.PurchaseOrderID = T3.PurchaseOrderID
SELECT AVG(pod.OrderQty) AS avg_order_qty FROM PurchaseOrderDetail AS pod JOIN PurchaseOrderHeader AS poh ON pod.PurchaseOrderID = poh.PurchaseOrderID JOIN ShipMethod AS sm ON poh.ShipMethodID = sm.ShipMethodID WHERE sm.Name = 'CARGO TRANSPORT 5';
wrong
true
bird_q014_r0
bird/talkingdata/1064
bird
talkingdata
Provide the app users IDs and time for the event ID of 82.
app user IDs refers to app_id; time refers to timestamp;
SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82
SELECT app_events.app_id, events.timestamp FROM events JOIN app_events ON events.event_id = app_events.event_id WHERE events.event_id = 82;
correct
false
bird_q014_r1
bird/talkingdata/1064
bird
talkingdata
Provide the app users IDs and time for the event ID of 82.
app user IDs refers to app_id; time refers to timestamp;
SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82
SELECT app_events.app_id, events.timestamp FROM app_events JOIN events ON app_events.event_id = events.event_id WHERE app_events.event_id = 82;
correct
false
bird_q014_r2
bird/talkingdata/1064
bird
talkingdata
Provide the app users IDs and time for the event ID of 82.
app user IDs refers to app_id; time refers to timestamp;
SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82
SELECT app_events.app_id, events.timestamp FROM app_events JOIN events ON app_events.event_id = events.event_id WHERE app_events.event_id = 82;
correct
false
bird_q014_r3
bird/talkingdata/1064
bird
talkingdata
Provide the app users IDs and time for the event ID of 82.
app user IDs refers to app_id; time refers to timestamp;
SELECT T1.app_id, T2.timestamp FROM app_events AS T1 INNER JOIN events AS T2 ON T2.event_id = T1.event_id WHERE T2.event_id = 82
SELECT ea.app_id, e.timestamp FROM app_events AS ea JOIN events AS e ON ea.event_id = e.event_id WHERE ea.event_id = 82;
correct
false
bird_q015_r0
bird/citeseer/4154
bird
citeseer
How many papers were cited by schmidt99advanced cited word3555?
paper cited by refers to citing_paper_id; citing_paper_id = 'schmidt99advanced';
SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555'
SELECT COUNT(*) FROM content c JOIN cites cit ON c.paper_id = cit.citing_paper_id WHERE cit.citing_paper_id = 'schmidt99advanced' AND c.word_cited_id = 'word3555';
spurious
false
bird_q015_r1
bird/citeseer/4154
bird
citeseer
How many papers were cited by schmidt99advanced cited word3555?
paper cited by refers to citing_paper_id; citing_paper_id = 'schmidt99advanced';
SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555'
SELECT COUNT(*) FROM content c JOIN cites cit ON c.paper_id = cit.cited_paper_id WHERE c.word_cited_id = 'word3555' AND cit.citing_paper_id = 'schmidt99advanced';
correct
false
bird_q015_r2
bird/citeseer/4154
bird
citeseer
How many papers were cited by schmidt99advanced cited word3555?
paper cited by refers to citing_paper_id; citing_paper_id = 'schmidt99advanced';
SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555'
SELECT COUNT(*) FROM cites c JOIN content co ON c.citing_paper_id = co.paper_id WHERE co.word_cited_id = 'word3555' AND c.citing_paper_id = 'schmidt99advanced'
spurious
false
bird_q015_r3
bird/citeseer/4154
bird
citeseer
How many papers were cited by schmidt99advanced cited word3555?
paper cited by refers to citing_paper_id; citing_paper_id = 'schmidt99advanced';
SELECT COUNT(T2.paper_id) FROM cites AS T1 INNER JOIN content AS T2 ON T1.cited_paper_id = T2.paper_id WHERE T1.citing_paper_id = 'schmidt99advanced' AND T2.word_cited_id = 'word3555'
SELECT COUNT(*) FROM content c JOIN cites s ON c.paper_id = s.citing_paper_id WHERE s.citing_paper_id = 'schmidt99advanced' AND c.word_cited_id = 'word3555';
spurious
false
bird_q016_r0
bird/sales/5399
bird
sales
Calculate the total number of sales closed by Michel E. DeFrance?
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T2.FirstName = 'Michel' AND T2.MiddleInitial = 'e' AND T2.LastName = 'DeFrance'
SELECT COUNT(*) AS TotalSales FROM Sales s JOIN Employees e ON s.SalesPersonID = e.EmployeeID WHERE e.FirstName = 'Michel' AND e.MiddleInitial = 'E' AND e.LastName = 'DeFrance';
wrong
true
bird_q016_r1
bird/sales/5399
bird
sales
Calculate the total number of sales closed by Michel E. DeFrance?
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T2.FirstName = 'Michel' AND T2.MiddleInitial = 'e' AND T2.LastName = 'DeFrance'
SELECT COUNT(*) FROM Sales AS s JOIN Employees AS e ON s.SalesPersonID = e.EmployeeID WHERE e.FirstName = 'Michel' AND e.MiddleInitial = 'E' AND e.LastName = 'DeFrance';
wrong
true
bird_q016_r2
bird/sales/5399
bird
sales
Calculate the total number of sales closed by Michel E. DeFrance?
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T2.FirstName = 'Michel' AND T2.MiddleInitial = 'e' AND T2.LastName = 'DeFrance'
SELECT COUNT(*) FROM Sales AS s JOIN Employees AS e ON s.SalesPersonID = e.EmployeeID WHERE e.FirstName = 'Michel' AND e.MiddleInitial = 'E' AND e.LastName = 'DeFrance';
wrong
true
bird_q016_r3
bird/sales/5399
bird
sales
Calculate the total number of sales closed by Michel E. DeFrance?
SELECT COUNT(T1.SalesID) FROM Sales AS T1 INNER JOIN Employees AS T2 ON T1.SalesPersonID = T2.EmployeeID WHERE T2.FirstName = 'Michel' AND T2.MiddleInitial = 'e' AND T2.LastName = 'DeFrance'
SELECT COUNT(*) AS total_sales FROM Sales s JOIN Employees e ON s.SalesPersonID = e.EmployeeID WHERE e.FirstName = 'Michel' AND e.MiddleInitial = 'e' AND e.LastName = 'DeFrance';
correct
false
bird_q017_r0
bird/simpson_episodes/4298
bird
simpson_episodes
List all of the information about the music department's casts and crews.
information about the music department refers to category = 'Music Department'
SELECT DISTINCT person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Music Department';
SELECT * FROM Credit WHERE category = 'Music Department';
wrong
false
bird_q017_r1
bird/simpson_episodes/4298
bird
simpson_episodes
List all of the information about the music department's casts and crews.
information about the music department refers to category = 'Music Department'
SELECT DISTINCT person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Music Department';
SELECT * FROM Credit WHERE category = 'Music Department';
wrong
false
bird_q017_r2
bird/simpson_episodes/4298
bird
simpson_episodes
List all of the information about the music department's casts and crews.
information about the music department refers to category = 'Music Department'
SELECT DISTINCT person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Music Department';
SELECT * FROM Credit WHERE category = 'Music Department';
wrong
false
bird_q017_r3
bird/simpson_episodes/4298
bird
simpson_episodes
List all of the information about the music department's casts and crews.
information about the music department refers to category = 'Music Department'
SELECT DISTINCT person, name, birthdate, birth_name, birth_place , birth_region, birth_country, height_meters, nickname FROM Person AS T1 INNER JOIN Credit AS T2 ON T1.name = T2.person WHERE T2.category = 'Music Department';
SELECT * FROM Credit WHERE category = 'Music Department';
wrong
false
bird_q018_r0
bird/genes/2500
bird
genes
If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?
Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)
SELECT CAST(SUM(IIF(T1.Chromosome > 10 AND T3.Chromosome > 10, 1, 0)) AS REAL) * 100 / COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T2.Expression_Corr > 0
SELECT SUM(CASE WHEN g1.Chromosome > 10 AND g2.Chromosome > 10 THEN 1 ELSE 0 END) * 1.0 / COUNT(*) AS possibility FROM Interactions i JOIN Genes g1 ON i.GeneID1 = g1.GeneID JOIN Genes g2 ON i.GeneID2 = g2.GeneID WHERE i.Expression_Corr > 0;
wrong
true
bird_q018_r1
bird/genes/2500
bird
genes
If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?
Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)
SELECT CAST(SUM(IIF(T1.Chromosome > 10 AND T3.Chromosome > 10, 1, 0)) AS REAL) * 100 / COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T2.Expression_Corr > 0
SELECT CAST(SUM(CASE WHEN g1.Chromosome > 10 AND g2.Chromosome > 10 THEN 1 ELSE 0 END) AS REAL) * 100.0 / COUNT(*) AS Possibility FROM Interactions i JOIN Genes g1 ON i.GeneID1 = g1.GeneID JOIN Genes g2 ON i.GeneID2 = g2.GeneID WHERE i.Expression_Corr > 0;
correct
false
bird_q018_r2
bird/genes/2500
bird
genes
If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?
Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)
SELECT CAST(SUM(IIF(T1.Chromosome > 10 AND T3.Chromosome > 10, 1, 0)) AS REAL) * 100 / COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T2.Expression_Corr > 0
SELECT COUNT(*) FILTER (WHERE g1.Chromosome > 10 AND g2.Chromosome > 10) * 1.0 / COUNT(*) AS Possibility FROM Interactions i JOIN Genes g1 ON i.GeneID1 = g1.GeneID JOIN Genes g2 ON i.GeneID2 = g2.GeneID WHERE i.Expression_Corr > 0;
wrong
true
bird_q018_r3
bird/genes/2500
bird
genes
If a pair of genes is positively correlated, what is the possibility of it being composed of two genes both with over 10 chromosomes?
Positively correlated means Expression_Corr > 0; Possibility = count(the pairs of genes with both chromosomes over 20) / count(pairs of genes that are positively correlated)
SELECT CAST(SUM(IIF(T1.Chromosome > 10 AND T3.Chromosome > 10, 1, 0)) AS REAL) * 100 / COUNT(T1.GeneID) FROM Genes AS T1 INNER JOIN Interactions AS T2 ON T1.GeneID = T2.GeneID1 INNER JOIN Genes AS T3 ON T3.GeneID = T2.GeneID2 WHERE T2.Expression_Corr > 0
SELECT SUM(CASE WHEN g1.Chromosome > 10 AND g2.Chromosome > 10 THEN 1 ELSE 0 END) * 1.0 / COUNT(*) AS possibility FROM Interactions i JOIN Genes g1 ON i.GeneID1 = g1.GeneID JOIN Genes g2 ON i.GeneID2 = g2.GeneID WHERE i.Expression_Corr > 0;
wrong
true
bird_q019_r0
bird/works_cycles/7110
bird
works_cycles
Please list the family names of any employees whose middle names begin with C.
family names refers to Last name; employee refers to PersonType = 'EM'; MiddleName starts with 'C'
SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%'
SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%';
correct
false
bird_q019_r1
bird/works_cycles/7110
bird
works_cycles
Please list the family names of any employees whose middle names begin with C.
family names refers to Last name; employee refers to PersonType = 'EM'; MiddleName starts with 'C'
SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%'
SELECT p.LastName FROM Person p WHERE p.PersonType = 'EM' AND p.MiddleName LIKE 'C%'
correct
false
bird_q019_r2
bird/works_cycles/7110
bird
works_cycles
Please list the family names of any employees whose middle names begin with C.
family names refers to Last name; employee refers to PersonType = 'EM'; MiddleName starts with 'C'
SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%'
SELECT p.LastName FROM Person p JOIN Employee e ON e.BusinessEntityID = p.BusinessEntityID WHERE p.PersonType = 'EM' AND p.MiddleName LIKE 'C%';
spurious
false
bird_q019_r3
bird/works_cycles/7110
bird
works_cycles
Please list the family names of any employees whose middle names begin with C.
family names refers to Last name; employee refers to PersonType = 'EM'; MiddleName starts with 'C'
SELECT LastName FROM Person WHERE PersonType = 'EM' AND MiddleName LIKE 'C%'
SELECT DISTINCT p.LastName FROM Person p JOIN Employee e ON e.BusinessEntityID = p.BusinessEntityID WHERE p.PersonType = 'EM' AND p.MiddleName LIKE 'C%';
spurious
false
bird_q020_r0
bird/student_loan/4407
bird
student_loan
What is the longest students absence duration from school?
longest students absence duration MAX(month)
SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )
SELECT MAX(month) AS longest_duration FROM longest_absense_from_school;
wrong
false
bird_q020_r1
bird/student_loan/4407
bird
student_loan
What is the longest students absence duration from school?
longest students absence duration MAX(month)
SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )
SELECT MAX(month) FROM longest_absense_from_school;
wrong
false
bird_q020_r2
bird/student_loan/4407
bird
student_loan
What is the longest students absence duration from school?
longest students absence duration MAX(month)
SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )
SELECT MAX(month) FROM longest_absense_from_school;
wrong
false
bird_q020_r3
bird/student_loan/4407
bird
student_loan
What is the longest students absence duration from school?
longest students absence duration MAX(month)
SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )
SELECT MAX(month) FROM longest_absense_from_school;
wrong
false
bird_q021_r0
bird/food_inspection/8808
bird
food_inspection
How many owners have 5 or more establishments?
5 or more establishments COUNT(business_id) > = 5;
SELECT COUNT(T1.owner_name) FROM ( SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(owner_name) > 5 ) T1
SELECT COUNT(*) FROM (SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(*) >= 5);
wrong
true
bird_q021_r1
bird/food_inspection/8808
bird
food_inspection
How many owners have 5 or more establishments?
5 or more establishments COUNT(business_id) > = 5;
SELECT COUNT(T1.owner_name) FROM ( SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(owner_name) > 5 ) T1
SELECT COUNT(*) FROM (SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(*) >= 5)
wrong
true
bird_q021_r2
bird/food_inspection/8808
bird
food_inspection
How many owners have 5 or more establishments?
5 or more establishments COUNT(business_id) > = 5;
SELECT COUNT(T1.owner_name) FROM ( SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(owner_name) > 5 ) T1
SELECT COUNT(*) FROM (SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(*) >= 5);
wrong
true
bird_q021_r3
bird/food_inspection/8808
bird
food_inspection
How many owners have 5 or more establishments?
5 or more establishments COUNT(business_id) > = 5;
SELECT COUNT(T1.owner_name) FROM ( SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(owner_name) > 5 ) T1
SELECT COUNT(*) FROM (SELECT owner_name FROM businesses GROUP BY owner_name HAVING COUNT(*) >= 5);
wrong
true
bird_q022_r0
bird/codebase_comments/675
bird
codebase_comments
Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert".
tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert'
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert';
correct
false
bird_q022_r1
bird/codebase_comments/675
bird
codebase_comments
Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert".
tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert'
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert';
correct
false
bird_q022_r2
bird/codebase_comments/675
bird
codebase_comments
Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert".
tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert'
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert';
correct
false
bird_q022_r3
bird/codebase_comments/675
bird
codebase_comments
Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert".
tokenized name refers to NameTokenized; NameTokenized = 'Sky.Excel.ExcelBook.TypeConvert';
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert'
SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert';
correct
false
bird_q023_r0
bird/movielens/2272
bird
movielens
Please list down ID of movies acted by top 5 actors based on actor rating.
SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5
SELECT m2a.movieid FROM movies2actors AS m2a JOIN actors AS a ON a.actorid = m2a.actorid ORDER BY a.a_quality DESC LIMIT 5;
wrong
true
bird_q023_r1
bird/movielens/2272
bird
movielens
Please list down ID of movies acted by top 5 actors based on actor rating.
SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5
SELECT m2a.movieid FROM movies2actors AS m2a JOIN actors AS a ON a.actorid = m2a.actorid ORDER BY a.a_quality DESC LIMIT 5;
wrong
true
bird_q023_r2
bird/movielens/2272
bird
movielens
Please list down ID of movies acted by top 5 actors based on actor rating.
SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5
SELECT DISTINCT m.movieid FROM movies m JOIN movies2actors ma ON m.movieid = ma.movieid JOIN actors a ON ma.actorid = a.actorid ORDER BY a.a_quality DESC LIMIT 5;
wrong
true
bird_q023_r3
bird/movielens/2272
bird
movielens
Please list down ID of movies acted by top 5 actors based on actor rating.
SELECT T2.movieid FROM actors AS T1 INNER JOIN movies2actors AS T2 ON T1.actorid = T2.actorid GROUP BY T2.actorid ORDER BY AVG(T1.a_quality) DESC LIMIT 5
SELECT m.movieid FROM movies2actors AS m2a JOIN actors AS a ON m2a.actorid = a.actorid GROUP BY m2a.movieid ORDER BY COUNT(*) DESC LIMIT 5;
wrong
true
bird_q024_r0
bird/movie_platform/73
bird
movie_platform
How many users were trialists when they rated the movie "A Way of Life"?
A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;
SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1
SELECT COUNT(*) FROM ratings r JOIN movies m ON r.movie_id = m.movie_id WHERE m.movie_title = 'A Way of Life' AND r.user_trialist = 1;
wrong
false
bird_q024_r1
bird/movie_platform/73
bird
movie_platform
How many users were trialists when they rated the movie "A Way of Life"?
A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;
SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1
SELECT COUNT(*) FROM ratings r JOIN movies m ON r.movie_id = m.movie_id WHERE m.movie_title = 'A Way of Life' AND r.user_trialist = 1;
wrong
false
bird_q024_r2
bird/movie_platform/73
bird
movie_platform
How many users were trialists when they rated the movie "A Way of Life"?
A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;
SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1
SELECT COUNT(*) FROM ratings r JOIN movies m ON r.movie_id = m.movie_id WHERE m.movie_title = 'A Way of Life' AND r.user_trialist = 1;
wrong
false
bird_q024_r3
bird/movie_platform/73
bird
movie_platform
How many users were trialists when they rated the movie "A Way of Life"?
A Way of Life' refers to movie_title; the user was a trialist when he rated the movie refers to user_trialist = 1;
SELECT COUNT(T1.user_id) FROM ratings AS T1 INNER JOIN movies AS T2 ON T1.movie_id = T2.movie_id WHERE T2.movie_title = 'When Will I Be Loved' AND T1.user_trialist = 1
SELECT COUNT(*) AS trialist_count FROM ratings r JOIN movies m ON r.movie_id = m.movie_id JOIN ratings_users ru ON r.user_id = ru.user_id WHERE m.movie_title = 'A Way of Life' AND ru.user_trialist = 1;
wrong
true
End of preview. Expand in Data Studio

CoRE-DB spurious-correctness evaluation set

Spurious-correctness evaluation set of Boosting Small Language Models for Text-to-SQL with Cost-Efficient Reinforcement Environment against Spurious Correctness: 800 pairs of a gold SQL and a predicted SQL (gold_sql, pred_sql), four GRPO rollouts of FINER-SQL 3B for each of 100 BIRD and 100 Spider training questions (ds, db, question, evidence), over 107 databases. label is spurious (152 pairs: same result as the gold SQL on the original database but not semantically equivalent), correct (325) or wrong (323), where correct and wrong are the 648 non-spurious pairs; unseen marks the 210 predictions with an atomic operation absent from the neighbor queries used to construct CoRE-DB. Code: https://github.com/thanhdath/core-db

Downloads last month
839