question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the sum of the laps with a grid less than 28, retirement time, and a ducati 1098 f08 bikes?
CREATE TABLE table_name_5 (laps INTEGER, bike VARCHAR, grid VARCHAR, time VARCHAR)
SELECT SUM(laps) FROM table_name_5 WHERE grid < 28 AND time = "retirement" AND bike = "ducati 1098 f08"
What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3
What is the 2002 average when 2003 is less than 13.2, 2006 is more than 12.1, 2011 is more than 13.5 and 2001 is 11.5?
CREATE TABLE table_name_64 (Id VARCHAR)
SELECT AVG(2002) FROM table_name_64 WHERE 2003 < 13.2 AND 2006 > 12.1 AND 2011 > 13.5 AND 2001 = 11.5
What is the maximum in 2004 when 2009 is higher than 26.1?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT MAX(2004) FROM table_name_86 WHERE 2009 > 26.1
What is the 2010 figure for the district of Columbia where the 2004 figure is more than 12.3?
CREATE TABLE table_name_1 (division VARCHAR)
SELECT SUM(2010) FROM table_name_1 WHERE division = "district of columbia" AND 2004 > 12.3
What is GPU Frequency, when Frequency is 1.67 GHz, and when sSpec Number is SLBX9(A0)?
CREATE TABLE table_name_71 (gpu_frequency VARCHAR, frequency VARCHAR, sspec_number VARCHAR)
SELECT gpu_frequency FROM table_name_71 WHERE frequency = "1.67 ghz" AND sspec_number = "slbx9(a0)"
What is I/O Bus, when Frequency is 1.67 GHz, and when sSpec Number is SLBMG(A0)?
CREATE TABLE table_name_14 (i_o_bus VARCHAR, frequency VARCHAR, sspec_number VARCHAR)
SELECT i_o_bus FROM table_name_14 WHERE frequency = "1.67 ghz" AND sspec_number = "slbmg(a0)"
What is GPU Frequency, when Model Number is Atom N435?
CREATE TABLE table_name_18 (gpu_frequency VARCHAR, model_number VARCHAR)
SELECT gpu_frequency FROM table_name_18 WHERE model_number = "atom n435"
What is Frequency, when Part Number(s) is au80610006240aa?
CREATE TABLE table_name_11 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT frequency FROM table_name_11 WHERE part_number_s_ = "au80610006240aa"
What is Socket, when Part Number(s) is au80610003495aa?
CREATE TABLE table_name_69 (socket VARCHAR, part_number_s_ VARCHAR)
SELECT socket FROM table_name_69 WHERE part_number_s_ = "au80610003495aa"
What is sSpec Number, when Model Number is Atom N475?
CREATE TABLE table_name_68 (sspec_number VARCHAR, model_number VARCHAR)
SELECT sspec_number FROM table_name_68 WHERE model_number = "atom n475"
For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than 8, what is its worldwide gross?
CREATE TABLE table_name_43 (worldwide_gross VARCHAR, director_s_ VARCHAR, rank VARCHAR, studio VARCHAR)
SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell"
In what studio was the film grossing $457,640,427 made?
CREATE TABLE table_name_7 (studio VARCHAR, worldwide_gross VARCHAR)
SELECT studio FROM table_name_7 WHERE worldwide_gross = "$457,640,427"
What is the ranking of the movie made at Walt Disney Pictures?
CREATE TABLE table_name_50 (rank VARCHAR, studio VARCHAR)
SELECT rank FROM table_name_50 WHERE studio = "walt disney pictures"
What is the event name when the method is submission (brabo choke)?
CREATE TABLE table_name_20 (event VARCHAR, method VARCHAR)
SELECT event FROM table_name_20 WHERE method = "submission (brabo choke)"
What is the result of the UFC 87?
CREATE TABLE table_name_95 (res VARCHAR, event VARCHAR)
SELECT res FROM table_name_95 WHERE event = "ufc 87"
What is the result when the method was decision (unanimous), and Chris Wilson was the opponent?
CREATE TABLE table_name_43 (res VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT res FROM table_name_43 WHERE method = "decision (unanimous)" AND opponent = "chris wilson"
What is the event when the method was submission (armbar), and Jeff Gibson was the opponent?
CREATE TABLE table_name_67 (event VARCHAR, method VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_67 WHERE method = "submission (armbar)" AND opponent = "jeff gibson"
What is the record when Clayton Mckinney was the opponent?
CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_93 WHERE opponent = "clayton mckinney"
What is the event when the method was tko (punches), and the record was 7-1?
CREATE TABLE table_name_60 (event VARCHAR, method VARCHAR, record VARCHAR)
SELECT event FROM table_name_60 WHERE method = "tko (punches)" AND record = "7-1"
When was the Jamaica Classic Tournament?
CREATE TABLE table_name_10 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_10 WHERE tournament = "the jamaica classic"
Who was the visitor on April 2?
CREATE TABLE table_name_7 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_7 WHERE date = "april 2"
What was the maximum attendance when Chicago is the visiting team?
CREATE TABLE table_name_91 (attendance INTEGER, visitor VARCHAR)
SELECT MAX(attendance) FROM table_name_91 WHERE visitor = "chicago"
Which High points have a Score of w 110-81?
CREATE TABLE table_name_49 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_name_49 WHERE score = "w 110-81"
Which Score has High assists of rodriguez (8)?
CREATE TABLE table_name_6 (score VARCHAR, high_assists VARCHAR)
SELECT score FROM table_name_6 WHERE high_assists = "rodriguez (8)"
What was the score on october 23?
CREATE TABLE table_name_33 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_33 WHERE date = "october 23"
Which High assists have a Record of 4-2?
CREATE TABLE table_name_96 (high_assists VARCHAR, record VARCHAR)
SELECT high_assists FROM table_name_96 WHERE record = "4-2"
How many weeks on top was the single from Savage Garden?
CREATE TABLE table_name_16 (weeks_on_top VARCHAR, artist VARCHAR)
SELECT weeks_on_top FROM table_name_16 WHERE artist = "savage garden"
Who was the artist that issued the single on 19 January?
CREATE TABLE table_name_67 (artist VARCHAR, issue_date_s_ VARCHAR)
SELECT artist FROM table_name_67 WHERE issue_date_s_ = "19 january"
Who was the artist of the single that spent 9 ¶ weeks on top?
CREATE TABLE table_name_28 (artist VARCHAR, weeks_on_top VARCHAR)
SELECT artist FROM table_name_28 WHERE weeks_on_top = "9 ¶"
What is the name of the artist that issued the single on 23 February?
CREATE TABLE table_name_43 (artist VARCHAR, issue_date_s_ VARCHAR)
SELECT artist FROM table_name_43 WHERE issue_date_s_ = "23 february"
For what tournament was Blaž Kavčič the opponent in the final?
CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič"
The tournament in Belgrade had what as a score?
CREATE TABLE table_name_7 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_7 WHERE tournament = "belgrade"
On June 26, 2006 the game was played on what surface?
CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_79 WHERE date = "june 26, 2006"
When was the Prijedor tournament?
CREATE TABLE table_name_68 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_68 WHERE tournament = "prijedor"
What is Lowest Rank, when Location is Rio De Janeiro, Brazil, and when Current Seating Capacity is less than 78,838?
CREATE TABLE table_name_42 (rank INTEGER, location VARCHAR, current_seating_capacity VARCHAR)
SELECT MIN(rank) FROM table_name_42 WHERE location = "rio de janeiro, brazil" AND current_seating_capacity < 78 OFFSET 838
What is the highest Rank, when Location is Kinshasa, DR Congo, and when Current Seating Capacity is less than 80,000?
CREATE TABLE table_name_90 (rank INTEGER, location VARCHAR, current_seating_capacity VARCHAR)
SELECT MAX(rank) FROM table_name_90 WHERE location = "kinshasa, dr congo" AND current_seating_capacity < 80 OFFSET 000
What is the lowest Rank, when the Current Seating Capacity is 137,000?
CREATE TABLE table_name_55 (rank INTEGER, current_seating_capacity VARCHAR)
SELECT MIN(rank) FROM table_name_55 WHERE current_seating_capacity = 137 OFFSET 000
What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?
CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR)
SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = "infineon raceway"
How much tonnage was damaged?
CREATE TABLE table_name_35 (tonnage__grt_ INTEGER, fate VARCHAR)
SELECT SUM(tonnage__grt_) FROM table_name_35 WHERE fate = "damaged"
Which Nationality has a Fate of sunk, and a Name of alderamin?
CREATE TABLE table_name_67 (nationality VARCHAR, fate VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_67 WHERE fate = "sunk" AND name = "alderamin"
Which Tonnage (GRT) has a Nationality of united kingdom, and a Name of king gruffydd?
CREATE TABLE table_name_44 (tonnage__grt_ INTEGER, nationality VARCHAR, name VARCHAR)
SELECT MIN(tonnage__grt_) FROM table_name_44 WHERE nationality = "united kingdom" AND name = "king gruffydd"
What is the height of the player that weighs 240?
CREATE TABLE table_name_56 (height VARCHAR, weight VARCHAR)
SELECT height FROM table_name_56 WHERE weight = 240
What is the total combined weight of players from minnetonka, mn?
CREATE TABLE table_name_22 (weight INTEGER, home_town VARCHAR)
SELECT SUM(weight) FROM table_name_22 WHERE home_town = "minnetonka, mn"
Which round lasted 2:32?
CREATE TABLE table_name_84 (round VARCHAR, time VARCHAR)
SELECT round FROM table_name_84 WHERE time = "2:32"
Where was the fight that lasted 5:00 when Yundt's record was 8-4?
CREATE TABLE table_name_39 (location VARCHAR, time VARCHAR, record VARCHAR)
SELECT location FROM table_name_39 WHERE time = "5:00" AND record = "8-4"
What was the record when Vancouver was the visitor?
CREATE TABLE table_name_9 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_9 WHERE visitor = "vancouver"
What score had a record of 17–18–6?
CREATE TABLE table_name_31 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_31 WHERE record = "17–18–6"
What is the Place of the Player with a To par of +1 and Score of 74-70-69-72=285?
CREATE TABLE table_name_97 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_97 WHERE to_par = "+1" AND score = 74 - 70 - 69 - 72 = 285
What Country is Gene Littler from?
CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_60 WHERE player = "gene littler"
What is the Country of the Player with a To par of +1?
CREATE TABLE table_name_59 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_59 WHERE to_par = "+1"
What is the Country of the Player with a Score of 70-72-70-73=285 and Money ( $ ) of 5,500?
CREATE TABLE table_name_10 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT country FROM table_name_10 WHERE money___$__ = "5,500" AND score = 70 - 72 - 70 - 73 = 285
What was Andrew Neill's rank?
CREATE TABLE table_name_57 (rank INTEGER, rider VARCHAR)
SELECT SUM(rank) FROM table_name_57 WHERE rider = "andrew neill"
When the score is 71 and the player is from United States what is the place?
CREATE TABLE table_name_89 (place VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states"
When Jim Thorpe of United States has a score of 71, what is the place?
CREATE TABLE table_name_2 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
SELECT place FROM table_name_2 WHERE score = 71 AND country = "united states" AND player = "jim thorpe"
On what date was the Opponent Chicago Bears?
CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_84 WHERE opponent = "chicago bears"
In what Week was the Result W 27-24?
CREATE TABLE table_name_1 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_1 WHERE result = "w 27-24"
On what Date prior to Week 14 was the Record 7-1?
CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, record VARCHAR)
SELECT date FROM table_name_31 WHERE week < 14 AND record = "7-1"
What was the Attendance of the game against the Los Angeles Raiders?
CREATE TABLE table_name_85 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_85 WHERE opponent = "los angeles raiders"
What was the Opponent in the game with a Result of W 23-7?
CREATE TABLE table_name_30 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_30 WHERE result = "w 23-7"
Who were the opponents when the score was 2–6, 3–6?
CREATE TABLE table_name_86 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT opponents_in_the_final FROM table_name_86 WHERE score_in_the_final = "2–6, 3–6"
Who's the partner that played against Alicia Molik Mara Santangelo on clay?
CREATE TABLE table_name_7 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_7 WHERE surface = "clay" AND opponents_in_the_final = "alicia molik mara santangelo"
What was the score of the French Open?
CREATE TABLE table_name_7 (score_in_the_final VARCHAR, championship VARCHAR)
SELECT score_in_the_final FROM table_name_7 WHERE championship = "french open"
Who was the partner where the score was 2–6, 3–6 and happened after 2007?
CREATE TABLE table_name_86 (partner VARCHAR, year VARCHAR, score_in_the_final VARCHAR)
SELECT partner FROM table_name_86 WHERE year > 2007 AND score_in_the_final = "2–6, 3–6"
Who was the partner that played against Serena Williams Venus Williams?
CREATE TABLE table_name_94 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_94 WHERE opponents_in_the_final = "serena williams venus williams"
Who was the outgoing manager that was replaced by Thomas Von Heesen?
CREATE TABLE table_name_80 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = "thomas von heesen"
What was the date of vacancy of svetozar šapurić who departed with mutual consent?
CREATE TABLE table_name_40 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT date_of_vacancy FROM table_name_40 WHERE manner_of_departure = "mutual consent" AND outgoing_manager = "svetozar šapurić"
What was the date of appointment for Christos Kassianos who belonged to AEK?
CREATE TABLE table_name_38 (date_of_appointment VARCHAR, team VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos"
What is the type when the source is Realmadrid, and the name is Soldado?
CREATE TABLE table_name_6 (type VARCHAR, source VARCHAR, name VARCHAR)
SELECT type FROM table_name_6 WHERE source = "realmadrid" AND name = "soldado"
Who was the opponent with the 20-12 record?
CREATE TABLE table_name_45 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_45 WHERE record = "20-12"
What date was game 37?
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_71 WHERE game = 37
What is the average number of games with a record of 20-12?
CREATE TABLE table_name_5 (game INTEGER, record VARCHAR)
SELECT AVG(game) FROM table_name_5 WHERE record = "20-12"
What is the score for game 38?
CREATE TABLE table_name_1 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_1 WHERE game = 38
What is the sum of complement commander Valkenburg received?
CREATE TABLE table_name_28 (complement VARCHAR, commander VARCHAR)
SELECT COUNT(complement) FROM table_name_28 WHERE commander = "valkenburg"
Which commander received complement larger than 240 , guns of 66 and ship of revolutie?
CREATE TABLE table_name_62 (commander VARCHAR, ship VARCHAR, complement VARCHAR, guns VARCHAR)
SELECT commander FROM table_name_62 WHERE complement > 240 AND guns = "66" AND ship = "revolutie"
What is the rank of American Pie 2?
CREATE TABLE table_name_4 (rank INTEGER, title VARCHAR)
SELECT MIN(rank) FROM table_name_4 WHERE title = "american pie 2"
What is Location, when Game is 42?
CREATE TABLE table_name_70 (location VARCHAR, game VARCHAR)
SELECT location FROM table_name_70 WHERE game = 42
What is Date, when Opponent is @ Carolina Hurricanes?
CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_84 WHERE opponent = "@ carolina hurricanes"
What is the average Attendance, when Opponent is @ Philadelphia Flyers, and when Game is less than 42?
CREATE TABLE table_name_46 (attendance INTEGER, opponent VARCHAR, game VARCHAR)
SELECT AVG(attendance) FROM table_name_46 WHERE opponent = "@ philadelphia flyers" AND game < 42
What is the lowest Game, when Location is Philips Arena, and when Attendance is less than 15,619?
CREATE TABLE table_name_68 (game INTEGER, location VARCHAR, attendance VARCHAR)
SELECT MIN(game) FROM table_name_68 WHERE location = "philips arena" AND attendance < 15 OFFSET 619
what is the highest matrix when the recording date is 1926/03?
CREATE TABLE table_name_33 (matrix INTEGER, recording_date VARCHAR)
SELECT MAX(matrix) FROM table_name_33 WHERE recording_date = "1926/03"
what is the accompaniment when the title is stormy seas blues?
CREATE TABLE table_name_26 (accompaniment VARCHAR, title VARCHAR)
SELECT accompaniment FROM table_name_26 WHERE title = "stormy seas blues"
what is the recording date when the title is screech owl blues?
CREATE TABLE table_name_79 (recording_date VARCHAR, title VARCHAR)
SELECT recording_date FROM table_name_79 WHERE title = "screech owl blues"
What's the blood type of the member from the vision factory agency?
CREATE TABLE table_name_52 (blood_type VARCHAR, agency VARCHAR)
SELECT blood_type FROM table_name_52 WHERE agency = "vision factory"
What generation is the member born on 1996.04.17 in?
CREATE TABLE table_name_33 (generation VARCHAR, birthday VARCHAR)
SELECT generation FROM table_name_33 WHERE birthday = "1996.04.17"
What generation is the member born on 1992.12.23 in?
CREATE TABLE table_name_4 (generation VARCHAR, birthday VARCHAR)
SELECT generation FROM table_name_4 WHERE birthday = "1992.12.23"
What's the birthplace of the third (2009) generation member from the lespros entertainment agency?
CREATE TABLE table_name_81 (birthplace VARCHAR, agency VARCHAR, generation VARCHAR)
SELECT birthplace FROM table_name_81 WHERE agency = "lespros entertainment" AND generation = "third (2009)"
What's the agency of the member born on 1998.11.09?
CREATE TABLE table_name_32 (agency VARCHAR, birthday VARCHAR)
SELECT agency FROM table_name_32 WHERE birthday = "1998.11.09"
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
Can you tell me Location Attendance that has the High points of andrew bogut (17)?
CREATE TABLE table_name_98 (location_attendance VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_name_98 WHERE high_points = "andrew bogut (17)"
How many sprint points have 0 extra laps for rank 19?
CREATE TABLE table_name_13 (sprint_points VARCHAR, extra_laps VARCHAR, rank VARCHAR)
SELECT sprint_points FROM table_name_13 WHERE extra_laps = "0" AND rank = "19"
How many sprint points contribute to 2 total points?
CREATE TABLE table_name_27 (sprint_points VARCHAR, total_points VARCHAR)
SELECT sprint_points FROM table_name_27 WHERE total_points = "2"
Who is at rank 13 with 23 total points?
CREATE TABLE table_name_35 (name VARCHAR, total_points VARCHAR, rank VARCHAR)
SELECT name FROM table_name_35 WHERE total_points = "23" AND rank = "13"
What is the number of extra laps for 9 total points?
CREATE TABLE table_name_71 (extra_laps VARCHAR, total_points VARCHAR)
SELECT extra_laps FROM table_name_71 WHERE total_points = "9"
Who is the player with a t10 place, from the United States, and has a score of 69-70-76=215?
CREATE TABLE table_name_61 (player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_61 WHERE place = "t10" AND country = "united states" AND score = 69 - 70 - 76 = 215
What place is the player from the United States with a to par of e?
CREATE TABLE table_name_1 (place VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_1 WHERE country = "united states" AND to_par = "e"
Who is the player with a score of 69-70-76=215?
CREATE TABLE table_name_16 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_16 WHERE score = 69 - 70 - 76 = 215
What is the place of plyaer Tim Herron from the United States with a to par of +1?
CREATE TABLE table_name_15 (place VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT place FROM table_name_15 WHERE country = "united states" AND to_par = "+1" AND player = "tim herron"
What is the to par of player Tim Herron from the United States with a t3 place?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_47 WHERE country = "united states" AND place = "t3" AND player = "tim herron"
which is the lowest favorable on 1954 June and more unfavorable than 45?
CREATE TABLE table_name_72 (favorable INTEGER, date VARCHAR, unfavorable VARCHAR)
SELECT MIN(favorable) FROM table_name_72 WHERE date = "1954 june" AND unfavorable > 45