answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT pos FROM table_name_75 WHERE driver = "adrian sutil"
Tell me the pos for adrian sutil
CREATE TABLE table_name_75 (pos VARCHAR, driver VARCHAR)
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis"
When did Quvenzhané Wallis first win?
CREATE TABLE table_name_76 (year INTEGER, actress VARCHAR)
SELECT score FROM table_24901152_2 WHERE outcome = "Winner"
When winner is the outcome what is the score?
CREATE TABLE table_24901152_2 (score VARCHAR, outcome VARCHAR)
SELECT grid FROM table_name_77 WHERE driver = "alex yoong"
What was the grid of Alex Yoong?
CREATE TABLE table_name_77 (grid VARCHAR, driver VARCHAR)
SELECT date_completed FROM table_15070195_1 WHERE nickname = "Halley"
when the nickname halley is used, what are the date completed
CREATE TABLE table_15070195_1 (date_completed VARCHAR, nickname VARCHAR)
SELECT wireless_lan FROM table_199666_1 WHERE process_technology = "90nm" AND centrino = "Carmel"
What Wireless LAN had a process technology of 90nm and a Carmel centrino?
CREATE TABLE table_199666_1 (wireless_lan VARCHAR, process_technology VARCHAR, centrino VARCHAR)
SELECT airport FROM table_13836704_9 WHERE _percentage_change_2005_2006 = "13.0%"
what's the airport with % change 2005/2006 being 13.0%
CREATE TABLE table_13836704_9 (airport VARCHAR, _percentage_change_2005_2006 VARCHAR)
SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35
Show the nations that have both hosts older than 45 and hosts younger than 35.
CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER)
SELECT title FROM course ORDER BY title, credits
List the names of all courses ordered by their titles and credits.
CREATE TABLE course (title VARCHAR, credits VARCHAR)
SELECT result FROM table_name_83 WHERE game = "game 5"
Game of game 5 had what result?
CREATE TABLE table_name_83 (result VARCHAR, game VARCHAR)
SELECT class FROM table_name_77 WHERE vessel_name = "hyundai tenacity"
In which class would the vessel Hyundai Tenacity be placed?
CREATE TABLE table_name_77 (class VARCHAR, vessel_name VARCHAR)
SELECT _percentage_of_popular_vote FROM table_19769687_3 WHERE election = "1926"
Name the % of popular vote for election for 1926
CREATE TABLE table_19769687_3 (_percentage_of_popular_vote VARCHAR, election VARCHAR)
SELECT res FROM table_name_73 WHERE record = "19-9"
What was the result of the fight when Tetsuji Kato's record was 19-9?
CREATE TABLE table_name_73 (res VARCHAR, record VARCHAR)
SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7
How many points against has team Cardiff had when there were less than 7 tries?
CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)
SELECT COUNT(pick) FROM table_2886617_4 WHERE player = "Alyn McCauley"
How many times did Alyn McCauley get picked?
CREATE TABLE table_2886617_4 (pick VARCHAR, player VARCHAR)
SELECT pos FROM table_name_95 WHERE team = "arena motorsports international"
What was the final position of Arena Motorsports International?
CREATE TABLE table_name_95 (pos VARCHAR, team VARCHAR)
SELECT MAX(game) FROM table_name_5 WHERE opponent = "miami heat"
What was the highest game number when the opponent was the Miami Heat?
CREATE TABLE table_name_5 (game INTEGER, opponent VARCHAR)
SELECT outgoing_manager FROM table_27782699_3 WHERE replaced_by = "Thomas Thomasberg"
Which manager was replaced by Thomas Thomasberg?
CREATE TABLE table_27782699_3 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT score FROM table_name_86 WHERE time = "14:00"
What was the score when the time was 14:00?
CREATE TABLE table_name_86 (score VARCHAR, time VARCHAR)
SELECT MAX(wins) FROM table_name_76 WHERE byes > 2
What is the highest number of wins when there are more than 2 byes?
CREATE TABLE table_name_76 (wins INTEGER, byes INTEGER)
SELECT service FROM table_name_96 WHERE origin_of_programming = "india" AND genre = "general" AND network = "zee variasi"
Which general service in India is a part of the zee variasi network?
CREATE TABLE table_name_96 (service VARCHAR, network VARCHAR, origin_of_programming VARCHAR, genre VARCHAR)
SELECT opening FROM table_name_85 WHERE worldwide = "$559,852,396"
WHAT IS THE OPENING WITH A WORLDWIDE NUMBER OF $559,852,396?
CREATE TABLE table_name_85 (opening VARCHAR, worldwide VARCHAR)
SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness"
What Pick number is Rich Burtness?
CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR)
SELECT score FROM table_11964047_6 WHERE _number = 29
What was the result and score of Game #29?
CREATE TABLE table_11964047_6 (score VARCHAR, _number VARCHAR)
SELECT scrapped_sold FROM table_name_74 WHERE builder = "derby" AND name_as_rebuilt = "ben madigan"
Which Scrapped/Sold has a Builder of derby, and a Name as rebuilt of ben madigan?
CREATE TABLE table_name_74 (scrapped_sold VARCHAR, builder VARCHAR, name_as_rebuilt VARCHAR)
SELECT opponent FROM table_name_28 WHERE city = "belgrade" AND results¹ = "0:2"
Who was the opponent at the game in Belgrade with a 0:2 result?
CREATE TABLE table_name_28 (opponent VARCHAR, city VARCHAR, results¹ VARCHAR)
SELECT AVG(fa_cup_goals) FROM table_name_96 WHERE league_cup_apps = "2" AND fa_cup_apps = "3" AND league_goals = 3
what is the average ga cup goals when the league cup apps is 2, the fa cup apps is 3 and the league goals is 3?
CREATE TABLE table_name_96 (fa_cup_goals INTEGER, league_goals VARCHAR, league_cup_apps VARCHAR, fa_cup_apps VARCHAR)
SELECT SUM(attendance) FROM table_name_7 WHERE opponents = "kaizer chiefs"
How many people attended the game against the Kaizer Chiefs?
CREATE TABLE table_name_7 (attendance INTEGER, opponents VARCHAR)
SELECT series__number FROM table_17467147_1 WHERE directed_by = "Patrick Norris" AND written_by = "Debra J. Fisher & Erica Messer"
When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?
CREATE TABLE table_17467147_1 (series__number VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney"
What batting partners played in sydney?
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)
SELECT actor FROM table_name_47 WHERE soap_opera = "onderweg naar morgen" AND character = "aafke couwenberg"
What actor has onderweg naar morgen, as the soap opera, with aafke couwenberg as the character?
CREATE TABLE table_name_47 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48"
How many directors directed an episode that reached 2.48 million viewers?
CREATE TABLE table_27047554_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT MAX(round) FROM table_name_92 WHERE school = "university of southern california"
What is the University of Southern California's highest Round?
CREATE TABLE table_name_92 (round INTEGER, school VARCHAR)
SELECT MAX(points) FROM table_name_33 WHERE r_magjistari > 12
For R. Magjistari scores over 12, what is the highest number of points?
CREATE TABLE table_name_33 (points INTEGER, r_magjistari INTEGER)
SELECT top_scorer FROM table_1218784_1 WHERE gf = 41
Who is the top scorer where gf is 41?
CREATE TABLE table_1218784_1 (top_scorer VARCHAR, gf VARCHAR)
SELECT team_classification FROM table_25655781_17 WHERE winner = "André Greipel" AND points_classification = "André Greipel"
What was the team classification where andré greipel was the winner and had the points classification?
CREATE TABLE table_25655781_17 (team_classification VARCHAR, winner VARCHAR, points_classification VARCHAR)
SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = 43.059 AND right_ascension__hm_ > 747.73
What is the total sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73?
CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR)
SELECT MAX(number_of_families) FROM table_16048129_5 WHERE _percentage_of_total_deportees = "5.8"
What is the most number of families among regions where the population is made up of 5.8% deportees?
CREATE TABLE table_16048129_5 (number_of_families INTEGER, _percentage_of_total_deportees VARCHAR)
SELECT SUM(pick) FROM table_name_97 WHERE position = "tackle" AND round < 15
What is the pick number for the player playing tackle position, and a round less than 15?
CREATE TABLE table_name_97 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009"
On the Date of 4 Oct 2009, who was the Runner(s)-up?
CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR)
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Davis" AND t3.lname = "Steven"
List the clubs having "Davis Steven" as a member.
CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR)
SELECT issue FROM table_name_51 WHERE actual_title = "7th heaven"
What isssue has 7th heaven as an actual title?
CREATE TABLE table_name_51 (issue VARCHAR, actual_title VARCHAR)
SELECT candidates FROM table_1341472_51 WHERE district = "Wisconsin 1"
Who were the candidates in district Wisconsin 1?
CREATE TABLE table_1341472_51 (candidates VARCHAR, district VARCHAR)
SELECT position FROM table_name_94 WHERE player = "steve nemeth"
Which Position has a Player of steve nemeth?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT date FROM table_name_36 WHERE attendance = "17,136"
On what date was the attendance 17,136?
CREATE TABLE table_name_36 (date VARCHAR, attendance VARCHAR)
SELECT accolade FROM table_name_3 WHERE year < 2009 AND country = "germany"
What is Accolade, when Year is less than 2009, and when Country is Germany?
CREATE TABLE table_name_3 (accolade VARCHAR, year VARCHAR, country VARCHAR)
SELECT place FROM table_name_48 WHERE score = 67 - 70 = 137
WHAT PLACE WAS A SCORE 67-70=137?
CREATE TABLE table_name_48 (place VARCHAR, score VARCHAR)
SELECT visiting_team FROM table_name_77 WHERE final_score = "18-40"
Which visiting team wound up with a final score of 18-40?
CREATE TABLE table_name_77 (visiting_team VARCHAR, final_score VARCHAR)
SELECT MIN(construction_started) FROM table_143352_1 WHERE net_mwe = 1190
When did construction start on the Power station with a net MWE of 1190
CREATE TABLE table_143352_1 (construction_started INTEGER, net_mwe VARCHAR)
SELECT COUNT(driver) FROM table_18893428_1 WHERE constructor = "Mercedes-Benz"
What is the total number of drivers who have cars constructed by Mercedes-Benz?
CREATE TABLE table_18893428_1 (driver VARCHAR, constructor VARCHAR)
SELECT T1.event_details FROM EVENTS AS T1 JOIN Services AS T2 ON T1.Service_ID = T2.Service_ID WHERE T2.Service_Type_Code = 'Marriage'
what are the event details of the services that have the type code 'Marriage'?
CREATE TABLE EVENTS (event_details VARCHAR, Service_ID VARCHAR); CREATE TABLE Services (Service_ID VARCHAR, Service_Type_Code VARCHAR)
SELECT MAX(irish_points) FROM table_22875369_3 WHERE opponent = "Eastern Michigan"
Name the max irish points for eastern michigan
CREATE TABLE table_22875369_3 (irish_points INTEGER, opponent VARCHAR)
SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium"
What is the date of the game being played at Schaeffer Stadium?
CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
SELECT written_by FROM table_17356042_1 WHERE directed_by = "Arthur Albert"
Name who wrote the episode directed by arthur albert
CREATE TABLE table_17356042_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT SUM(week) FROM table_name_15 WHERE result = "l 24–21"
Tell me the sum of week for result of l 24–21
CREATE TABLE table_name_15 (week INTEGER, result VARCHAR)
SELECT high_rebounds FROM table_name_55 WHERE score = "l 85–102 (ot)"
Who had the high rebounds when the score was l 85–102 (ot)?
CREATE TABLE table_name_55 (high_rebounds VARCHAR, score VARCHAR)
SELECT series FROM table_21297652_1 WHERE points = 30
In what series did the driver get 30 points?
CREATE TABLE table_21297652_1 (series VARCHAR, points VARCHAR)
SELECT source FROM table_name_62 WHERE cartridge = ".375 remington ultra magnum"
What is Source, when Cartridge is .375 remington ultra magnum?
CREATE TABLE table_name_62 (source VARCHAR, cartridge VARCHAR)
SELECT windows FROM table_1322904_1 WHERE release = "April 8"
Was the release on April 8 available on Windows?
CREATE TABLE table_1322904_1 (windows VARCHAR, release VARCHAR)
SELECT SUM(points) FROM table_name_67 WHERE wins > 0 AND position = "12th" AND poles > 0
What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?
CREATE TABLE table_name_67 (points INTEGER, poles VARCHAR, wins VARCHAR, position VARCHAR)
SELECT name FROM table_name_27 WHERE overall < 49
Who is drafted overall less than 49?
CREATE TABLE table_name_27 (name VARCHAR, overall INTEGER)
SELECT title FROM table_27450976_1 WHERE production_code = "2J5504"
What is the title of the episode with a production code of 2j5504?
CREATE TABLE table_27450976_1 (title VARCHAR, production_code VARCHAR)
SELECT ep_winning_team FROM table_29225103_2 WHERE fm_winning_team = "Brabham - Ford" AND hm_winning_team = "Osca"
Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?
CREATE TABLE table_29225103_2 (ep_winning_team VARCHAR, fm_winning_team VARCHAR, hm_winning_team VARCHAR)
SELECT MIN(total_goals) FROM table_name_89 WHERE position = "df" AND fa_cup_goals < 0
What is the lowest total goals when position is df, and FA Cup Goals is smaller than 0?
CREATE TABLE table_name_89 (total_goals INTEGER, position VARCHAR, fa_cup_goals VARCHAR)
SELECT MAX(draft_year) FROM table_13758243_1 WHERE player = "Jerry Marion"
What year was jerry marion drafted?
CREATE TABLE table_13758243_1 (draft_year INTEGER, player VARCHAR)
SELECT number FROM table_name_20 WHERE males = "977 948"
What is the number of males 977 948?
CREATE TABLE table_name_20 (number VARCHAR, males VARCHAR)
SELECT name FROM table_name_56 WHERE winning_constructor = "ansaldo"
What Name has a Winning constructor of ansaldo?
CREATE TABLE table_name_56 (name VARCHAR, winning_constructor VARCHAR)
SELECT constructor FROM table_name_64 WHERE location = "zolder"
Tell me the constructor for zolder
CREATE TABLE table_name_64 (constructor VARCHAR, location VARCHAR)
SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 19
What is the 2000-2001 Team with a Jersey # that is 19?
CREATE TABLE table_name_15 (jersey__number VARCHAR)
SELECT iata FROM table_name_8 WHERE airport = "madrid-barajas airport"
What is the IATA of Madrid-Barajas Airport?
CREATE TABLE table_name_8 (iata VARCHAR, airport VARCHAR)
SELECT name FROM table_name_98 WHERE nat = "gre" AND app_l_c_e_ = "49 (40/8/1)"
Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)?
CREATE TABLE table_name_98 (name VARCHAR, nat VARCHAR, app_l_c_e_ VARCHAR)
SELECT place FROM table_name_98 WHERE year > 2007 AND points = "141 (sf:83)"
What is the place later than 2007, with 141 (sf:83) points?
CREATE TABLE table_name_98 (place VARCHAR, year VARCHAR, points VARCHAR)
SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e"
Name the country for the 9th and sign of g e
CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR)
SELECT position_in_table FROM table_27782699_3 WHERE team = "AB"
What was the AB team's position in table?
CREATE TABLE table_27782699_3 (position_in_table VARCHAR, team VARCHAR)
SELECT interview FROM table_16268026_3 WHERE preliminary_average = "8.662 (3)"
What is the interview when preliminary average is 8.662 (3) ?
CREATE TABLE table_16268026_3 (interview VARCHAR, preliminary_average VARCHAR)
SELECT release_date FROM table_name_22 WHERE sspec_number = "slbze(c0)slbr8"
What is Release Date, when sSpec Number is SLBZE(C0)SLBR8?
CREATE TABLE table_name_22 (release_date VARCHAR, sspec_number VARCHAR)
SELECT home_team FROM table_name_81 WHERE venue = "princes park"
What home team plays at princes park?
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
SELECT clubs FROM table_name_57 WHERE matches = 46
What are the clubs with 46 matches?
CREATE TABLE table_name_57 (clubs VARCHAR, matches VARCHAR)
SELECT COUNT(incumbent) FROM table_1341640_11 WHERE district = "Georgia 6"
How many incumbents were for district georgia 6?
CREATE TABLE table_1341640_11 (incumbent VARCHAR, district VARCHAR)
SELECT services FROM table_name_2 WHERE area_of_operation = "wadi borjuj"
What services were in the area of operation Wadi Borjuj?
CREATE TABLE table_name_2 (services VARCHAR, area_of_operation VARCHAR)
SELECT MIN(lost) FROM table_name_30 WHERE drawn > 1 AND played > 14
Which Lost has Drawn larger than 1, and a Played larger than 14?
CREATE TABLE table_name_30 (lost INTEGER, drawn VARCHAR, played VARCHAR)
SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville"
What is the enrollment number for Rockville?
CREATE TABLE table_name_27 (enrollment VARCHAR, location VARCHAR)
SELECT proto_oceanic FROM table_15568886_14 WHERE proto_polynesian = "*fafine"
Name the proto oceanic for *fafine
CREATE TABLE table_15568886_14 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
SELECT MIN(wk_3) FROM table_name_11 WHERE wk_14 = "n/r" AND wk_2 = 7 AND wk_11 > 18
What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18?
CREATE TABLE table_name_11 (wk_3 INTEGER, wk_11 VARCHAR, wk_14 VARCHAR, wk_2 VARCHAR)
SELECT muzzle_device FROM table_name_18 WHERE barrel_twist = "1:10"
Name the muzzel device with barrel twist of 1:10
CREATE TABLE table_name_18 (muzzle_device VARCHAR, barrel_twist VARCHAR)
SELECT gold FROM table_name_21 WHERE place = "phoenix"
Who won gold when the world championships were held in Phoenix?
CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR)
SELECT COUNT(total) FROM table_13606924_1 WHERE bush__number = 1552
how many total with bush # being 1552
CREATE TABLE table_13606924_1 (total VARCHAR, bush__number VARCHAR)
SELECT points FROM table_name_96 WHERE lost = "19"
Name the points with lost of 19
CREATE TABLE table_name_96 (points VARCHAR, lost VARCHAR)
SELECT first_name, last_name FROM Maintenance_Engineers WHERE NOT engineer_id IN (SELECT engineer_id FROM Engineer_Visits)
Which engineers have never visited to maintain the assets? List the engineer first name and last name.
CREATE TABLE Engineer_Visits (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR)
SELECT acc_football_titles FROM table_28744929_1 WHERE nickname = "Tar Heels"
how many acc football titles have been won by the institution nicknamed tar heels?
CREATE TABLE table_28744929_1 (acc_football_titles VARCHAR, nickname VARCHAR)
SELECT date FROM table_name_35 WHERE final_score = "17-34"
What date was the final Score of 17-34?
CREATE TABLE table_name_35 (date VARCHAR, final_score VARCHAR)
SELECT home_team AS score FROM table_name_89 WHERE home_team = "geelong"
What is Geelong's home team score?
CREATE TABLE table_name_89 (home_team VARCHAR)
SELECT score FROM table_name_14 WHERE tie_no = "3"
What is the score of the game with a tie no of 3?
CREATE TABLE table_name_14 (score VARCHAR, tie_no VARCHAR)
SELECT losses FROM table_14876228_1 WHERE team = "General Caballero ZC"
Name the losses for general caballero zc
CREATE TABLE table_14876228_1 (losses VARCHAR, team VARCHAR)
SELECT date FROM table_name_76 WHERE points < 80 AND home = "los angeles" AND visitor = "pittsburgh"
What Date has Points smaller than 80, Home of Los Angeles, and a Visitor of Pittsburgh?
CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR, points VARCHAR, home VARCHAR)
SELECT fleet_series__quantity_ FROM table_name_23 WHERE builder = "mci" AND order_year = "2002"
Which Fleet Series (Quantity) that has a Builder of mci, and an Order Year of 2002?
CREATE TABLE table_name_23 (fleet_series__quantity_ VARCHAR, builder VARCHAR, order_year VARCHAR)
SELECT old_galician__13th_15th_c_ FROM table_26614365_1 WHERE portuguese = "cantaste"
What is the Old Galician for cantaste in Portuguese?
CREATE TABLE table_26614365_1 (old_galician__13th_15th_c_ VARCHAR, portuguese VARCHAR)
SELECT no3 FROM table_name_62 WHERE no1 = "claudio sylvie"
Who is no.3 when Claudio Sylvie is no.1?
CREATE TABLE table_name_62 (no3 VARCHAR, no1 VARCHAR)
SELECT virtue FROM table_name_31 WHERE _vice_ = "lust"
Which Virtue has a (vice) of lust?
CREATE TABLE table_name_31 (virtue VARCHAR, _vice_ VARCHAR)
SELECT SUM(seats_2006) FROM table_name_33 WHERE parties_and_voter_communities = "voter turnout in %" AND _percentage_2006 > 51.5
what is the total number of seats 2006 that has parties and voter turnout in % and whose %2006 is greater than 51.5?
CREATE TABLE table_name_33 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)