answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT grade FROM table_name_43 WHERE chin_up__reps_ = "3"
CREATE TABLE table_name_43 (grade VARCHAR, chin_up__reps_ VARCHAR)
If a person does 3 chin-up reps, what grade do they obtain?
SELECT shuttle_run__sec_ FROM table_name_54 WHERE points = 2
CREATE TABLE table_name_54 (shuttle_run__sec_ VARCHAR, points VARCHAR)
How many seconds is a shuttle run that give 2 points?
SELECT outgoing_manager FROM table_name_29 WHERE manner_of_departure = "resigned" AND team = "real zaragoza" AND replaced_by = "manolo villanova"
CREATE TABLE table_name_29 (outgoing_manager VARCHAR, replaced_by VARCHAR, manner_of_departure VARCHAR, team VARCHAR)
Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza
SELECT replaced_by FROM table_name_64 WHERE team = "racing santander"
CREATE TABLE table_name_64 (replaced_by VARCHAR, team VARCHAR)
Name the replaced by for racing santander
SELECT AVG(grid) FROM table_name_64 WHERE laps = 14
CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR)
What Grid had 14 laps completed?
SELECT MIN(grid) FROM table_name_91 WHERE laps = 25 AND manufacturer = "honda" AND time_retired = "+54.103"
CREATE TABLE table_name_91 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?
SELECT COUNT(laps) FROM table_name_75 WHERE time_retired = "+1:02.315"
CREATE TABLE table_name_75 (laps VARCHAR, time_retired VARCHAR)
How many laps were timed at +1:02.315?
SELECT pts_rank FROM table_name_73 WHERE club = "chicago fire"
CREATE TABLE table_name_73 (pts_rank VARCHAR, club VARCHAR)
What is the points ranking of Chicago Fire?
SELECT opponent FROM table_name_58 WHERE time = "1:16"
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
Who is the opponent with a time of 1:16?
SELECT round FROM table_name_64 WHERE method = "submission"
CREATE TABLE table_name_64 (round VARCHAR, method VARCHAR)
What round has a method of submission?
SELECT competition FROM table_name_54 WHERE result = "win" AND date = "august 15, 2012"
CREATE TABLE table_name_54 (competition VARCHAR, result VARCHAR, date VARCHAR)
Which competition did he win on August 15, 2012?
SELECT venue FROM table_name_60 WHERE date = "august 15, 2012"
CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
Where was the competition on August 15, 2012?
SELECT date FROM table_name_34 WHERE score = "3-0"
CREATE TABLE table_name_34 (date VARCHAR, score VARCHAR)
When was the competition that had a score of 3-0?
SELECT result FROM table_name_97 WHERE competition = "uefa euro 2008 qualifying"
CREATE TABLE table_name_97 (result VARCHAR, competition VARCHAR)
What was the result of the UEFA Euro 2008 Qualifying competition?
SELECT nationality FROM table_name_88 WHERE player = "steven anthony"
CREATE TABLE table_name_88 (nationality VARCHAR, player VARCHAR)
What nationality is Steven Anthony?
SELECT MAX(pick__number) FROM table_name_51 WHERE nationality = "slovakia"
CREATE TABLE table_name_51 (pick__number INTEGER, nationality VARCHAR)
What is the highest pick number from Slovakia?
SELECT MIN(pick__number) FROM table_name_70 WHERE league_from = "russian major league"
CREATE TABLE table_name_70 (pick__number INTEGER, league_from VARCHAR)
What is the lowest pick number for the Russian Major League?
SELECT position FROM table_name_21 WHERE league_from = "russian major league"
CREATE TABLE table_name_21 (position VARCHAR, league_from VARCHAR)
What team is from the Russian Major League?
SELECT league_from FROM table_name_61 WHERE pick__number > 204 AND nationality = "canada" AND position = "lw"
CREATE TABLE table_name_61 (league_from VARCHAR, position VARCHAR, pick__number VARCHAR, nationality VARCHAR)
Which league has a pick number larger than 204 from Canada and LW as the position?
SELECT player FROM table_name_49 WHERE club_province = "aurillac"
CREATE TABLE table_name_49 (player VARCHAR, club_province VARCHAR)
Who is the player from Aurillac?
SELECT points FROM table_name_69 WHERE rank > 1 AND places = 33
CREATE TABLE table_name_69 (points VARCHAR, rank VARCHAR, places VARCHAR)
what is the points when the rank is more than 1 and the places is 33?
SELECT MAX(rank) FROM table_name_40 WHERE nation = "east germany" AND points = 128.98 AND places < 70
CREATE TABLE table_name_40 (rank INTEGER, places VARCHAR, nation VARCHAR, points VARCHAR)
what is the highest rank for east germany with points of 128.98 and places less than 70?
SELECT SUM(points) FROM table_name_13 WHERE rank = 12
CREATE TABLE table_name_13 (points INTEGER, rank VARCHAR)
what is the points for rank 12?
SELECT AVG(pl_gp) FROM table_name_32 WHERE reg_gp = 97 AND pick__number < 70
CREATE TABLE table_name_32 (pl_gp INTEGER, reg_gp VARCHAR, pick__number VARCHAR)
What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?
SELECT gloss FROM table_name_69 WHERE pronunciation = "[χdəm]"
CREATE TABLE table_name_69 (gloss VARCHAR, pronunciation VARCHAR)
Name the gloss for [χdəm]
SELECT realization FROM table_name_71 WHERE gloss = "'to be, to do'"
CREATE TABLE table_name_71 (realization VARCHAR, gloss VARCHAR)
Name the realization for 'to be, to do'
SELECT MIN(places) FROM table_name_70 WHERE name = "sherri baier / robin cowan" AND rank < 1
CREATE TABLE table_name_70 (places INTEGER, name VARCHAR, rank VARCHAR)
What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?
SELECT platform FROM table_name_97 WHERE system = "nintendo ds" AND name = "nds4droid"
CREATE TABLE table_name_97 (platform VARCHAR, system VARCHAR, name VARCHAR)
What platform is nds4droid on for the nintendo ds?
SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)"
CREATE TABLE table_name_67 (name VARCHAR, license VARCHAR)
Who has a license of proprietary (available on inquiry)?
SELECT platform FROM table_name_93 WHERE system = "nintendo ds" AND license = "gpl v2" AND name = "nds4droid"
CREATE TABLE table_name_93 (platform VARCHAR, name VARCHAR, system VARCHAR, license VARCHAR)
What platform is nds4droid on for the nintendo ds with a license of gpl v2?
SELECT system FROM table_name_65 WHERE current_version = "1.4e"
CREATE TABLE table_name_65 (system VARCHAR, current_version VARCHAR)
What system has a current version of 1.4e?
SELECT name FROM table_name_92 WHERE license = "gpl v2" AND current_version = "0.9.9"
CREATE TABLE table_name_92 (name VARCHAR, license VARCHAR, current_version VARCHAR)
Who has a licence of gpl v2 and a current version of 0.9.9?
SELECT performance FROM table_name_11 WHERE season = 1999 AND place = "bydgoszcz, poland"
CREATE TABLE table_name_11 (performance VARCHAR, season VARCHAR, place VARCHAR)
What was the performance length of the 1999 season in bydgoszcz, poland?
SELECT performance FROM table_name_49 WHERE season > 2003 AND discipline = "3000 m"
CREATE TABLE table_name_49 (performance VARCHAR, season VARCHAR, discipline VARCHAR)
What were the performance lengths in the 3000 m events in and after 2003?
SELECT COUNT(season) FROM table_name_19 WHERE place = "santiago de chile, chile"
CREATE TABLE table_name_19 (season VARCHAR, place VARCHAR)
How many seasons took place in santiago de chile, chile?
SELECT season FROM table_name_90 WHERE date = "may 11, 2002"
CREATE TABLE table_name_90 (season VARCHAR, date VARCHAR)
During which Season did the may 11, 2002 event take place?
SELECT AVG(round) FROM table_name_16 WHERE college = "california"
CREATE TABLE table_name_16 (round INTEGER, college VARCHAR)
What is the average round for players from california?
SELECT nationality FROM table_name_12 WHERE nhl_team = "vancouver canucks" AND college_junior_club_team__league_ = "swift current broncos (whl)" AND round = 8
CREATE TABLE table_name_12 (nationality VARCHAR, round VARCHAR, nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?
SELECT home_team AS score FROM table_name_62 WHERE away_team = "essendon"
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
When the Away team of essendon was playing, what was the Home team's score?
SELECT away_team FROM table_name_71 WHERE venue = "western oval"
CREATE TABLE table_name_71 (away_team VARCHAR, venue VARCHAR)
For the Venue of western oval, what's the Away team playing?
SELECT opponent FROM table_name_82 WHERE week = "7"
CREATE TABLE table_name_82 (opponent VARCHAR, week VARCHAR)
Who was the opponent on week 7?
SELECT opponent FROM table_name_4 WHERE week = "5"
CREATE TABLE table_name_4 (opponent VARCHAR, week VARCHAR)
Who was the opponent on week 5?
SELECT leading_scorer FROM table_name_26 WHERE score = "107–97"
CREATE TABLE table_name_26 (leading_scorer VARCHAR, score VARCHAR)
Who was the leading scorer of the game that had a score of 107–97?
SELECT visitor FROM table_name_39 WHERE home = "suns"
CREATE TABLE table_name_39 (visitor VARCHAR, home VARCHAR)
Who was the visiting team when the Suns were the home team?
SELECT AVG(ties) FROM table_name_63 WHERE losses < 3 AND wins < 5 AND win_pct = "0.800" AND team = "detroit lions"
CREATE TABLE table_name_63 (ties INTEGER, team VARCHAR, win_pct VARCHAR, losses VARCHAR, wins VARCHAR)
What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?
SELECT MAX(year) FROM table_name_91 WHERE score = "4–6, 6–3, 7–5"
CREATE TABLE table_name_91 (year INTEGER, score VARCHAR)
What is the most recent year in which the score was 4–6, 6–3, 7–5?
SELECT player FROM table_name_5 WHERE height = "6-7"
CREATE TABLE table_name_5 (player VARCHAR, height VARCHAR)
Which player has a height of 6-7?
SELECT nba_draft FROM table_name_97 WHERE hometown = "washington, dc"
CREATE TABLE table_name_97 (nba_draft VARCHAR, hometown VARCHAR)
What is the NBA draft result of the player from Washington, DC?
SELECT nba_draft FROM table_name_48 WHERE college = "kansas"
CREATE TABLE table_name_48 (nba_draft VARCHAR, college VARCHAR)
What is the NBA draft result of the player from the College of Kansas?
SELECT player FROM table_name_79 WHERE school = "la costa canyon high school"
CREATE TABLE table_name_79 (player VARCHAR, school VARCHAR)
Who is the player from La Costa Canyon High School?
SELECT height FROM table_name_28 WHERE school = "nacogdoches high school"
CREATE TABLE table_name_28 (height VARCHAR, school VARCHAR)
How tall is the player from Nacogdoches High School?
SELECT school FROM table_name_47 WHERE hometown = "dallas, tx"
CREATE TABLE table_name_47 (school VARCHAR, hometown VARCHAR)
What is the school of the player from Dallas, TX?
SELECT result FROM table_name_31 WHERE competition = "world group, consolation round"
CREATE TABLE table_name_31 (result VARCHAR, competition VARCHAR)
What is the result for world group, consolation round?
SELECT SUM(attendance) FROM table_name_47 WHERE tie_no = "1"
CREATE TABLE table_name_47 (attendance INTEGER, tie_no VARCHAR)
How many attended tie number 1?
SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = "3"
CREATE TABLE table_name_97 (attendance INTEGER, tie_no VARCHAR)
How many attended tie number 3?
SELECT hometown FROM table_name_68 WHERE player = "tre madden"
CREATE TABLE table_name_68 (hometown VARCHAR, player VARCHAR)
What is the hometown for tre madden?
SELECT hometown FROM table_name_20 WHERE position = "defensive back" AND college = "alabama"
CREATE TABLE table_name_20 (hometown VARCHAR, position VARCHAR, college VARCHAR)
What is the hometown for the player that is defensive back and went to alabama?
SELECT college FROM table_name_19 WHERE position = "defensive back" AND school = "ridge community high school"
CREATE TABLE table_name_19 (college VARCHAR, position VARCHAR, school VARCHAR)
What is the college for the player that went to ridge community high school and is defensive back?
SELECT SUM(year) FROM table_name_77 WHERE type = "informal" AND location = "justus lipsius building, brussels" AND date = "23 may"
CREATE TABLE table_name_77 (year INTEGER, date VARCHAR, type VARCHAR, location VARCHAR)
What is the sum of Year with a Type of informal, and a Location with justus lipsius building, brussels, and a Date with 23 may?
SELECT type FROM table_name_59 WHERE location = "justus lipsius building, brussels" AND year = 2012 AND president = "herman van rompuy (1st term)" AND date = "23 may"
CREATE TABLE table_name_59 (type VARCHAR, date VARCHAR, president VARCHAR, location VARCHAR, year VARCHAR)
What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?
SELECT president FROM table_name_22 WHERE location = "justus lipsius building, brussels" AND type = "scheduled" AND year > 2011 AND date = "18–19 october"
CREATE TABLE table_name_22 (president VARCHAR, date VARCHAR, year VARCHAR, location VARCHAR, type VARCHAR)
What is the President with a Location of justus lipsius building, brussels, and a Type with scheduled, and a Year larger than 2011, and a Date with 18–19 october?
SELECT location FROM table_name_63 WHERE year > 2011 AND president = "herman van rompuy (2nd term)" AND date = "28–29 june" AND type = "scheduled"
CREATE TABLE table_name_63 (location VARCHAR, type VARCHAR, date VARCHAR, year VARCHAR, president VARCHAR)
What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?
SELECT president FROM table_name_31 WHERE year > 2011 AND date = "23 may"
CREATE TABLE table_name_31 (president VARCHAR, year VARCHAR, date VARCHAR)
What is the President with a Year larger than 2011, and a Date with 23 may?
SELECT type FROM table_name_96 WHERE year > 2010 AND location = "justus lipsius building, brussels" AND president = "herman van rompuy (2nd term)" AND date = "28–29 june"
CREATE TABLE table_name_96 (type VARCHAR, date VARCHAR, president VARCHAR, year VARCHAR, location VARCHAR)
What is the Type with a Year larger than 2010, and a Location with justus lipsius building, brussels, and a President of herman van rompuy (2nd term), and a Date with 28–29 june?
SELECT competition FROM table_name_49 WHERE goal = 13
CREATE TABLE table_name_49 (competition VARCHAR, goal VARCHAR)
What competition has a goal number of 13?
SELECT SUM(yards) FROM table_name_60 WHERE asst = 19 AND totaltk = 60 AND sack > 0
CREATE TABLE table_name_60 (yards INTEGER, sack VARCHAR, asst VARCHAR, totaltk VARCHAR)
What is the total of yards when asst. is 19, totaltk is 60 and sack is more than 0?
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0
CREATE TABLE table_name_40 (sack INTEGER, player VARCHAR, fumr VARCHAR)
what is the total sack for mike green when fumr is less than 0?
SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
CREATE TABLE table_name_86 (sack INTEGER, totaltk VARCHAR, asst VARCHAR)
what is the total sack when totaltk is 1 and asst. is more than 0?
SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0
CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR)
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0?
SELECT SUM(totaltk) FROM table_name_9 WHERE yards < 0
CREATE TABLE table_name_9 (totaltk INTEGER, yards INTEGER)
what is the sum of totaltk when yards is less than 0?
SELECT class FROM table_name_45 WHERE year > 1973 AND points = 41
CREATE TABLE table_name_45 (class VARCHAR, year VARCHAR, points VARCHAR)
What class is after 1973 with 41 points?
SELECT COUNT(wins) FROM table_name_90 WHERE points < 54 AND team = "yamaha" AND class = "250cc" AND year < 1977
CREATE TABLE table_name_90 (wins VARCHAR, year VARCHAR, class VARCHAR, points VARCHAR, team VARCHAR)
How many wins for bikes with under 54 points, team yamaha, a 250cc bike, and before 1977?
SELECT distance FROM table_name_10 WHERE stage > 5 AND winner = "giovanni lombardi"
CREATE TABLE table_name_10 (distance VARCHAR, stage VARCHAR, winner VARCHAR)
What distance did giovanni lombardi win after stage 5?
SELECT gc_leader FROM table_name_51 WHERE course = "ávila - segovia"
CREATE TABLE table_name_51 (gc_leader VARCHAR, course VARCHAR)
Who is the GC leader at ávila - segovia?
SELECT COUNT(grid) FROM table_name_11 WHERE laps < 41 AND driver = "pedro de la rosa"
CREATE TABLE table_name_11 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
How many grids have less than 41 laps and a Driver of pedro de la rosa?
SELECT time_retired FROM table_name_58 WHERE grid < 3 AND driver = "mika häkkinen"
CREATE TABLE table_name_58 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
Which Time/Retired has a Grid smaller than 3, and a Driver of mika häkkinen?
SELECT AVG(laps) FROM table_name_14 WHERE driver = "toranosuke takagi"
CREATE TABLE table_name_14 (laps INTEGER, driver VARCHAR)
What are toranosuke takagi's average laps?
SELECT MIN(grid) FROM table_name_95 WHERE time_retired = "+5.004"
CREATE TABLE table_name_95 (grid INTEGER, time_retired VARCHAR)
Which grid has a Time/Retired of +5.004?
SELECT score FROM table_name_73 WHERE visitor = "atlanta" AND date = "november 9"
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR, date VARCHAR)
What was the score of the game on November 9 when Atlanta was the visiting team?
SELECT score FROM table_name_56 WHERE home = "tampa bay"
CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR)
What was the score of the home game at Tampa Bay?
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa"
CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR)
What was the date of the game where Ottawa was the home team and Atlanta is the visiting team?
SELECT result FROM table_name_39 WHERE team = "giants"
CREATE TABLE table_name_39 (result VARCHAR, team VARCHAR)
I want the result for team of giants
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 2006"
CREATE TABLE table_name_8 (pitcher VARCHAR, date VARCHAR)
Tell me the pitcher on september 6, 2006
SELECT date FROM table_name_66 WHERE team = "rockies"
CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR)
I want the date for rockies
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez"
CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR)
I want the date for aníbal sánchez
SELECT result FROM table_name_63 WHERE team = "giants"
CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR)
I want the result for team of giants
SELECT site FROM table_name_51 WHERE date = "september 29, 2013"
CREATE TABLE table_name_51 (site VARCHAR, date VARCHAR)
I want the site for september 29, 2013
SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.5
CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR)
When the apparent magnitude is 10.5, what is the right ascension?
SELECT livery FROM table_name_57 WHERE date = "1919"
CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR)
Which livery is from 1919?
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81"
CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR)
Of the games with a record of 80-81, what was the highest attendance?
SELECT COUNT(peak) FROM table_name_34 WHERE hk_viewers = "2.23 million" AND rank > 2
CREATE TABLE table_name_34 (peak VARCHAR, hk_viewers VARCHAR, rank VARCHAR)
How many entries have a HK viewers of 2.23 million, and a Rank below 2?
SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心"
CREATE TABLE table_name_95 (premiere VARCHAR, chinese_title VARCHAR, average VARCHAR, finale VARCHAR, peak VARCHAR)
What premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 40
CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR)
What is the high average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
SELECT home_team AS score FROM table_name_96 WHERE venue = "junction oval"
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR)
What is the score for the home team when the venue is Junction Oval?
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "mcg"
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR)
What is the lowest crowd number at the venue MCG?
SELECT AVG(round) FROM table_name_89 WHERE place = "jacksonville"
CREATE TABLE table_name_89 (round INTEGER, place VARCHAR)
Name the average round for jacksonville
SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29"
CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR)
I want the standing for january 29 and finished of 3rd and total points less than 248
SELECT result FROM table_name_5 WHERE date = "february 22"
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
What was the result and score of the game on February 22?
SELECT MAX(rd__number) FROM table_name_20 WHERE pl_gp > 0 AND reg_gp < 62
CREATE TABLE table_name_20 (rd__number INTEGER, pl_gp VARCHAR, reg_gp VARCHAR)
What is the largest Rd# for a PI GP greater than 0 and a Reg GP less than 62?
SELECT team__league_ FROM table_name_12 WHERE reg_gp > 62
CREATE TABLE table_name_12 (team__league_ VARCHAR, reg_gp INTEGER)
Which team has a Reg GP over 62?