answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT competition FROM table_name_55 WHERE position = "4th" AND year > 2003 AND venue = "budapest, hungary"
Which competition did Târlea come in 4th place, in 2003 at Budapest, Hungary?
CREATE TABLE table_name_55 (competition VARCHAR, venue VARCHAR, position VARCHAR, year VARCHAR)
SELECT 1991 FROM table_name_34 WHERE 1996 = "2r"
What is the 1991 with a 2r 1996?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT AVG(points) FROM table_name_1 WHERE pts_game > 4 AND nation = "england" AND games < 5
Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?
CREATE TABLE table_name_1 (points INTEGER, games VARCHAR, pts_game VARCHAR, nation VARCHAR)
SELECT COUNT(written_by) FROM table_2226817_8 WHERE no_in_season = 13
Who is the writer of episode 13?
CREATE TABLE table_2226817_8 (written_by VARCHAR, no_in_season VARCHAR)
SELECT constructor FROM table_name_28 WHERE laps > 54 AND time_retired = "+1 lap" AND grid = 20
What was the constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20?
CREATE TABLE table_name_28 (constructor VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT AVG(capacity) FROM table_name_69 WHERE head_coach = "rainer kraft"
What is the Capacity of the Rainer Kraft's Stadium?
CREATE TABLE table_name_69 (capacity INTEGER, head_coach VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990"
Who was the opponent team on September 30, 1990?
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT actor_in_london, _2002 FROM table_name_78 WHERE shipwreck = "leonty ibayev"
Who was the actor in London in 2002 with the shipwreck of Leonty Ibayev?
CREATE TABLE table_name_78 (actor_in_london VARCHAR, _2002 VARCHAR, shipwreck VARCHAR)
SELECT team FROM table_name_48 WHERE founded = "1970"
Which team was founded in 1970?
CREATE TABLE table_name_48 (team VARCHAR, founded VARCHAR)
SELECT team_s_ FROM table_2649597_1 WHERE start = "39.1"
What teams started at 39.1?
CREATE TABLE table_2649597_1 (team_s_ VARCHAR, start VARCHAR)
SELECT COUNT(silver) FROM table_name_10 WHERE bronze < 0
What is the number of silver when bronze is less than 0?
CREATE TABLE table_name_10 (silver VARCHAR, bronze INTEGER)
SELECT CLASS FROM race GROUP BY CLASS HAVING COUNT(*) >= 2
List the race class with at least two races.
CREATE TABLE race (CLASS VARCHAR)
SELECT date FROM table_name_29 WHERE score = "w 112-107 (ot)"
What is the Date of the Game with a Score of w 112-107 (ot)?
CREATE TABLE table_name_29 (date VARCHAR, score VARCHAR)
SELECT engine FROM table_name_27 WHERE chassis = "lotus 44 f2"
What engine was in the lotus 44 f2 Chassis?
CREATE TABLE table_name_27 (engine VARCHAR, chassis VARCHAR)
SELECT fri_26_aug FROM table_30058355_2 WHERE mon_22_aug = "—— No Time"
What is shown for fri 26 aug when mon 22 aug is —— no time?
CREATE TABLE table_30058355_2 (fri_26_aug VARCHAR, mon_22_aug VARCHAR)
SELECT COUNT(western_title) FROM table_1616608_2 WHERE chinese_title = "摸摸耀西-云中漫步"
How many games share their western title with the Chinese title of 摸摸耀西-云中漫步 ?
CREATE TABLE table_1616608_2 (western_title VARCHAR, chinese_title VARCHAR)
SELECT AVG(week) FROM table_name_58 WHERE opponent = "chicago bears"
What average week number had the Chicago bears as the opponent?
CREATE TABLE table_name_58 (week INTEGER, opponent VARCHAR)
SELECT COUNT(airport) FROM table_13836704_9 WHERE rank = 4
how many airport with rank being 4
CREATE TABLE table_13836704_9 (airport VARCHAR, rank VARCHAR)
SELECT COUNT(runner_up) FROM table_11214772_2 WHERE semi_finalist__number1 = "Western Carolina" AND year = 2005
How many teams were listed as runner up in 2005 and there the first semi finalist was Western Carolina?
CREATE TABLE table_11214772_2 (runner_up VARCHAR, semi_finalist__number1 VARCHAR, year VARCHAR)
SELECT SUM(played) FROM table_name_22 WHERE lost > 14 AND drawn = 8 AND team = "ipatinga"
How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?
CREATE TABLE table_name_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT mascot FROM table_name_39 WHERE _number___county = "66 pulaski 2"
what's the mascot for 66 pulaski 2?
CREATE TABLE table_name_39 (mascot VARCHAR, _number___county VARCHAR)
SELECT opponent FROM table_23466021_4 WHERE attendance = 36102
Which opponent has 36102 is the attendance?
CREATE TABLE table_23466021_4 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT(player) FROM table_23184448_4 WHERE field_goals = 25 AND blocks = 6
Name the number of players for field goals being 25 and blocks is 6
CREATE TABLE table_23184448_4 (player VARCHAR, field_goals VARCHAR, blocks VARCHAR)
SELECT agg FROM table_name_55 WHERE team_1 = "union douala"
What was the aggregate score that had Union Douala as Team 1?
CREATE TABLE table_name_55 (agg VARCHAR, team_1 VARCHAR)
SELECT notes FROM table_name_33 WHERE time = "1:42.309"
What is the notes entry for the row with a Time of 1:42.309?
CREATE TABLE table_name_33 (notes VARCHAR, time VARCHAR)
SELECT MAX(established) FROM table_name_54 WHERE league = "wnba" AND championships > 2
Which WNBA team that won at least 2 championships was established most recently?
CREATE TABLE table_name_54 (established INTEGER, league VARCHAR, championships VARCHAR)
SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 1
What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10?
CREATE TABLE table_name_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR)
SELECT COUNT(week) FROM table_17924362_1 WHERE date = "October 26"
Name the number of weeks for october 26
CREATE TABLE table_17924362_1 (week VARCHAR, date VARCHAR)
SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"
Show the times of elimination by "Punk" or "Orton".
CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
SELECT SUM(silver) FROM table_name_69 WHERE rank = "5" AND bronze < 14
What is the number of silver when rank was 5, and a bronze was smaller than 14?
CREATE TABLE table_name_69 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT best FROM table_name_47 WHERE name = "robert doornbos"
What was Robert Doornbos' Best?
CREATE TABLE table_name_47 (best VARCHAR, name VARCHAR)
SELECT MIN(int) AS yards FROM table_15581223_8
Name the least amount of int yards
CREATE TABLE table_15581223_8 (int INTEGER)
SELECT written_by FROM table_14845640_1 WHERE us_viewers__millions_ = "16.32"
Name the written by for 16.32 million viewers
CREATE TABLE table_14845640_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df"
Who had a transfer fee of released and played the position of DF?
CREATE TABLE table_name_30 (player VARCHAR, transfer_fee VARCHAR, pos VARCHAR)
SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics"
what's the status in the style of ballet/ gymnastics?
CREATE TABLE table_name_73 (status VARCHAR, style VARCHAR)
SELECT result FROM table_name_11 WHERE date = "october 5"
What was the result for the game on October 5?
CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR)
SELECT us_viewers__million_ FROM table_22904707_1 WHERE no = 63
How many million viewers did episode number 63 have?
CREATE TABLE table_22904707_1 (us_viewers__million_ VARCHAR, no VARCHAR)
SELECT date FROM table_name_91 WHERE visitor = "ottawa"
What date is the visitor Ottawa?
CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR)
SELECT high_points FROM table_name_42 WHERE date = "june 8"
who had the high points on june 8?
CREATE TABLE table_name_42 (high_points VARCHAR, date VARCHAR)
SELECT school FROM table_name_11 WHERE enrollment > 473 AND ihsaa_class = "aaa" AND _number___county = "72 scott"
What school in 72 Scott county has an enrollment more than 473 with an AAA IHSAA Class?
CREATE TABLE table_name_11 (school VARCHAR, _number___county VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR)
SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "বুধবার Budhbar"
In language where Wednesday is বুধবার budhbar, what is Thursday?
CREATE TABLE table_1277350_3 (thursday_guru__jupiter_ VARCHAR, wednesday_budha__mercury_ VARCHAR)
SELECT home_team FROM table_name_56 WHERE away_team = "south melbourne"
What home team played the away team South Melbourne?
CREATE TABLE table_name_56 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(attendance) FROM table_name_67 WHERE away = "real espana"
What was the attendance when the away team was Real Espana?
CREATE TABLE table_name_67 (attendance INTEGER, away VARCHAR)
SELECT director FROM table_25800134_19 WHERE series__number = 626
Who directed episode number 626 in the series?
CREATE TABLE table_25800134_19 (director VARCHAR, series__number VARCHAR)
SELECT language FROM table_name_85 WHERE publication_range = "1955–1999"
What language has a publication range from 1955–1999?
CREATE TABLE table_name_85 (language VARCHAR, publication_range VARCHAR)
SELECT to_par FROM table_name_98 WHERE score < 67 AND place = "t1" AND player = "tiger woods"
What is the to par of Tiger Woods, where his score was less than 67, and he was in t1 place?
CREATE TABLE table_name_98 (to_par VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_52 WHERE winning_score = 71 - 66 - 70 - 67 = 274
What is the To Par of winning score 71-66-70-67=274?
CREATE TABLE table_name_52 (to_par VARCHAR, winning_score VARCHAR)
SELECT league_apps FROM table_name_35 WHERE league_goals < 2 AND position = "df" AND fa_cup_apps = "5"
Tell me the league apps with league goals less than 2 and position of df and FA cup apps of 5
CREATE TABLE table_name_35 (league_apps VARCHAR, fa_cup_apps VARCHAR, league_goals VARCHAR, position VARCHAR)
SELECT visitor FROM table_name_55 WHERE home = "detroit" AND date = "february 24"
Name the visitor for detroit on february 24
CREATE TABLE table_name_55 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT position FROM table_name_30 WHERE height > 2.12
What is the position of the player who is taller than 2.12?
CREATE TABLE table_name_30 (position VARCHAR, height INTEGER)
SELECT regionalliga_west_südwest FROM table_14242137_11 WHERE regionalliga_süd = "Stuttgarter Kickers"
what's the regionalliga west/südwest with regionalliga süd being stuttgarter kickers
CREATE TABLE table_14242137_11 (regionalliga_west_südwest VARCHAR, regionalliga_süd VARCHAR)
SELECT report FROM table_11056278_3 WHERE fastest_lap = "Paul Tracy"
What are all the reports where Paul Tracy had the fastest lap?
CREATE TABLE table_11056278_3 (report VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(year) FROM table_name_62 WHERE division > 4
What is the total number of years that have divisions greater than 4?
CREATE TABLE table_name_62 (year VARCHAR, division INTEGER)
SELECT COUNT(parishes) FROM table_221375_1 WHERE province_of_1936 = "Beira Baixa Province"
Name the parishes for beira baixa province
CREATE TABLE table_221375_1 (parishes VARCHAR, province_of_1936 VARCHAR)
SELECT MIN(attendance) FROM table_name_58 WHERE time = "3:31" AND game < 7
What was the lowest attendance for the game that had a time of 3:31 and was before game 7?
CREATE TABLE table_name_58 (attendance INTEGER, time VARCHAR, game VARCHAR)
SELECT year FROM table_name_62 WHERE note = "vocals" AND album = "north (original motion picture soundtrack)"
When was the note a vocals and the album north (original motion picture soundtrack)?
CREATE TABLE table_name_62 (year VARCHAR, note VARCHAR, album VARCHAR)
SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service"
What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service?
CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR)
SELECT district FROM table_name_21 WHERE first_elected > 1858
Which District has a First elected larger than 1858?
CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER)
SELECT sodium FROM table_name_10 WHERE lithium = "h a l o g e n s" AND rubidium = "nacl (2.1)"
what is the properties of sodium when lithium is h a l o g e n s and rubidium is nacl (2.1)?
CREATE TABLE table_name_10 (sodium VARCHAR, lithium VARCHAR, rubidium VARCHAR)
SELECT MIN(total) FROM table_name_77 WHERE year_s__won = "1982"
What is the Total of the Player with a Year(s) won of 1982?
CREATE TABLE table_name_77 (total INTEGER, year_s__won VARCHAR)
SELECT score FROM table_name_90 WHERE high_points = "douglas (15)"
Which Score has High points of douglas (15)?
CREATE TABLE table_name_90 (score VARCHAR, high_points VARCHAR)
SELECT time FROM table_name_52 WHERE laps = 14
What is the total time that it took for the driver to finish 14 laps?
CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR)
SELECT nationality FROM table_name_31 WHERE round = 5
What is the nationality of the player from round 5?
CREATE TABLE table_name_31 (nationality VARCHAR, round VARCHAR)
SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008"
What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?
CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency"
What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?
CREATE TABLE table_name_30 (abb VARCHAR, disorder VARCHAR)
SELECT MIN(silver) FROM table_name_41 WHERE rank < 1
What is the lowest number of silver owned by a nation that is not ranked number 1?
CREATE TABLE table_name_41 (silver INTEGER, rank INTEGER)
SELECT MIN(rank) FROM table_name_50 WHERE goals > 124 AND name = "jeff cunningham"
What is the lowest Rank when the goals are less than 124 for Jeff Cunningham?
CREATE TABLE table_name_50 (rank INTEGER, goals VARCHAR, name VARCHAR)
SELECT SUM(attendance) FROM table_name_58 WHERE home_team = "oxford united"
What was the Attendance when Oxford United was the Home team?
CREATE TABLE table_name_58 (attendance INTEGER, home_team VARCHAR)
SELECT MIN(avg_transfer_rate_)[kb_s] FROM table_name_69 WHERE device = 3243
What is the smallest transfer rate for a 3243 device?
CREATE TABLE table_name_69 (kb_s VARCHAR, avg_transfer_rate_ INTEGER, device VARCHAR)
SELECT name_[b_] FROM table_name_63 WHERE Pwin_percentage = 0.696
What is the name of the person with a PWin% of .696?
CREATE TABLE table_name_63 (name_ VARCHAR, b_ VARCHAR, Pwin_percentage VARCHAR)
SELECT nationality FROM table_16494599_1 WHERE school_club_team = "South Florida"
What nationality is the player who went to school at South Florida?
CREATE TABLE table_16494599_1 (nationality VARCHAR, school_club_team VARCHAR)
SELECT to_par FROM table_name_75 WHERE player = "roger maltbie"
what is the to par when the player is roger maltbie?
CREATE TABLE table_name_75 (to_par VARCHAR, player VARCHAR)
SELECT time_retired FROM table_name_64 WHERE driver = "jacky ickx"
The driver Jacky Ickx had what time/retired?
CREATE TABLE table_name_64 (time_retired VARCHAR, driver VARCHAR)
SELECT MIN(games) FROM table_name_12 WHERE lost < 1
What is the lowest number of games with less than 1 loss?
CREATE TABLE table_name_12 (games INTEGER, lost INTEGER)
SELECT average FROM table_name_63 WHERE player = "matthew elliott (vic)"
What is the average of player Matthew Elliott (vic)?
CREATE TABLE table_name_63 (average VARCHAR, player VARCHAR)
SELECT location_attendance FROM table_27704187_11 WHERE game = 75
Where did they play and how many attended game number 75?
CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR)
SELECT method FROM table_name_22 WHERE opponent = "georges st-pierre"
What is the method of opponent georges st-pierre?
CREATE TABLE table_name_22 (method VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_23 WHERE week > 1 AND opponent = "detroit lions"
what is the date for the week larger than 1 and the opponent detroit lions?
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT party FROM table_name_97 WHERE result = "retired democratic hold"
Which party had a Retired Democratic hold?
CREATE TABLE table_name_97 (party VARCHAR, result VARCHAR)
SELECT time FROM table_name_55 WHERE rank = 6
What is the Time of the Athlete with a Rank of 6?
CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR)
SELECT engine FROM table_name_94 WHERE driver = "james hunt"
What engine does driver james hunt have?
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR)
SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino"
What is the average score of player lee trevino, who has a t8 place?
CREATE TABLE table_name_39 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT outcome FROM table_name_16 WHERE year = "1985" AND venue = "india open"
What was the Outcome at the 1985 India Open?
CREATE TABLE table_name_16 (outcome VARCHAR, year VARCHAR, venue VARCHAR)
SELECT player FROM table_name_84 WHERE pos = "qb" AND college = "texas tech"
Which player had a position of QB for Texas Tech?
CREATE TABLE table_name_84 (player VARCHAR, pos VARCHAR, college VARCHAR)
SELECT winning_score FROM table_name_64 WHERE runner_s__up = "in-kyung kim"
What winning score has in-kyung kim as the runner(s)-up?
CREATE TABLE table_name_64 (winning_score VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(opponent) FROM table_27539808_3 WHERE october = 9
How many games did they play on october 9?
CREATE TABLE table_27539808_3 (opponent VARCHAR, october VARCHAR)
SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205
what is the country when the score is 71-65-69=205?
CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR)
SELECT score FROM table_name_9 WHERE year = "1969"
What was the score in 1969?
CREATE TABLE table_name_9 (score VARCHAR, year VARCHAR)
SELECT attendance FROM table_name_34 WHERE home_team = "billericay town"
What was the attendance at the Billericay Town home game?
CREATE TABLE table_name_34 (attendance VARCHAR, home_team VARCHAR)
SELECT winning_team FROM table_22083044_2 WHERE circuit = "Queensland Raceway" AND fastest_lap = "Tim Macrow"
What was the winning team where Tim Macrow won the fastest lap on Queensland Raceway circuit?
CREATE TABLE table_22083044_2 (winning_team VARCHAR, circuit VARCHAR, fastest_lap VARCHAR)
SELECT name FROM Reviewer UNION SELECT title FROM Movie
Return all reviewer names and movie names together in a single list.
CREATE TABLE Reviewer (name VARCHAR, title VARCHAR); CREATE TABLE Movie (name VARCHAR, title VARCHAR)
SELECT high_assists FROM table_27704187_10 WHERE date = "March 26"
Who had the high assists on March 26?
CREATE TABLE table_27704187_10 (high_assists VARCHAR, date VARCHAR)
SELECT total FROM table_name_39 WHERE league_a = "79 (221)"
What is the Total when the league shows 79 (221)?
CREATE TABLE table_name_39 (total VARCHAR, league_a VARCHAR)
SELECT AVG(year) FROM table_name_50 WHERE play = "much ado about nothing" AND recipient = "ray virta"
Name the average year for much ado about nothing and recipient of ray virta
CREATE TABLE table_name_50 (year INTEGER, play VARCHAR, recipient VARCHAR)
SELECT country FROM table_name_1 WHERE player = "doug ford"
What is Doug Ford's country?
CREATE TABLE table_name_1 (country VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM bank
How many bank branches are there?
CREATE TABLE bank (Id VARCHAR)
SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = "67.22%"
How many points have a percentage of possible points of 67.22%?
CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR)
SELECT MAX(jews_and_others_1) FROM table_25947046_1
What is the highest Jews and others 1?
CREATE TABLE table_25947046_1 (jews_and_others_1 INTEGER)
SELECT type FROM table_262560_1 WHERE joined = 2007
Name the type that joined 2007
CREATE TABLE table_262560_1 (type VARCHAR, joined VARCHAR)
SELECT comment FROM table_17978052_2 WHERE borough_or_census_area = "Denali"
What was the comment on the Denali area?
CREATE TABLE table_17978052_2 (comment VARCHAR, borough_or_census_area VARCHAR)