answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT opponents FROM table_name_84 WHERE surface = "clay" AND score = "6–3, 7–6 (11–9)"
Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?
CREATE TABLE table_name_84 (opponents VARCHAR, surface VARCHAR, score VARCHAR)
SELECT transfer_fee FROM table_name_25 WHERE moving_from = "celta de vigo"
What was the transfer fee when the moving from was celta de Vigo?
CREATE TABLE table_name_25 (transfer_fee VARCHAR, moving_from VARCHAR)
SELECT COUNT(avg_g) FROM table_name_72 WHERE long = 50 AND gp_gs = "3-0" AND yards > 926
What is the total number of avg/g with a long of 50, a gp-gs of 3-0, and 926 yards?
CREATE TABLE table_name_72 (avg_g VARCHAR, yards VARCHAR, long VARCHAR, gp_gs VARCHAR)
SELECT date FROM table_name_28 WHERE week = 15
What is the date for week 15?
CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR)
SELECT MIN(losses) FROM table_name_60 WHERE wins = 1 AND team = "dallas stars" AND win__percentage < 0.25
What's the lowest Losses recorded wiht a Wins of 1, Team of Dallas Stars, and a Win % that's smaller than 0.25?
CREATE TABLE table_name_60 (losses INTEGER, win__percentage VARCHAR, wins VARCHAR, team VARCHAR)
SELECT to_par FROM table_name_62 WHERE country = "united states" AND place = "t8" AND player = "tiger woods"
What is the To par and holds the t8 place of the United States player Tiger Woods?
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR)
SELECT MAX(season) FROM table_name_22 WHERE position = "2nd"
What is the most recent year with a finish in 2nd position?
CREATE TABLE table_name_22 (season INTEGER, position VARCHAR)
SELECT score FROM table_name_45 WHERE place = "t5" AND player = "tom watson"
Name the Score that has a Place of t5 of tom watson?
CREATE TABLE table_name_45 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT surface FROM table_name_24 WHERE partner = "piet norval"
What surface was played on when Piet Norval was a partner?
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR)
SELECT english_name FROM table_1638437_2 WHERE simplified = "崖城镇"
Name the english name for 崖城镇
CREATE TABLE table_1638437_2 (english_name VARCHAR, simplified VARCHAR)
SELECT employed FROM table_name_74 WHERE position_held = "mathematics & prefect master"
What are the years employed shown for mathematics & prefect master?
CREATE TABLE table_name_74 (employed VARCHAR, position_held VARCHAR)
SELECT COUNT(attendance) FROM table_name_96 WHERE score = "3 – 2" AND date = "january 10"
How many people attended the game on january 10 with a Score of 3 – 2?
CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR)
SELECT freedom_in_the_world_2013 FROM table_1604579_2 WHERE country = "Guinea"
How much freedom can did the people of Guinea experience in 2013?
CREATE TABLE table_1604579_2 (freedom_in_the_world_2013 VARCHAR, country VARCHAR)
SELECT Company_name, COUNT(*) FROM phone GROUP BY Company_name ORDER BY COUNT(*) LIMIT 1
Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.
CREATE TABLE phone (Company_name VARCHAR)
SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = "René L. DeRouen"
How many districts for rené l. derouen?
CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)
SELECT T1.incident_type_code, T2.incident_type_description FROM Behavior_Incident AS T1 JOIN Ref_Incident_Type AS T2 ON T1.incident_type_code = T2.incident_type_code GROUP BY T1.incident_type_code ORDER BY COUNT(*) DESC LIMIT 1
What are the code and description of the most frequent behavior incident type?
CREATE TABLE Ref_Incident_Type (incident_type_description VARCHAR, incident_type_code VARCHAR); CREATE TABLE Behavior_Incident (incident_type_code VARCHAR)
SELECT champion FROM table_name_47 WHERE location = "morrisville, nc" AND semi_finalist__number2 = "clemson"
Which champion was from the location of Morrisville, NC, and whose SemiFinalist #2 of Clemson?
CREATE TABLE table_name_47 (champion VARCHAR, location VARCHAR, semi_finalist__number2 VARCHAR)
SELECT played FROM table_name_75 WHERE lost < 12 AND points > 37 AND drawn = 5
How many goes played fot hteam that lost less than 12 games, drew 5, and had over 37 points?
CREATE TABLE table_name_75 (played VARCHAR, drawn VARCHAR, lost VARCHAR, points VARCHAR)
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix"
Who won the South African Grand Prix?
CREATE TABLE table_name_63 (race VARCHAR)
SELECT player FROM table_11734041_16 WHERE no_s_ = "3"
Which players were number 3?
CREATE TABLE table_11734041_16 (player VARCHAR, no_s_ VARCHAR)
SELECT COUNT(drawn) FROM table_name_49 WHERE points < 23 AND lost = 6 AND against > 21
How many draws were there when there were points less than 23, 6 losses, and more than 21 against?
CREATE TABLE table_name_49 (drawn VARCHAR, against VARCHAR, points VARCHAR, lost VARCHAR)
SELECT third FROM table_name_71 WHERE lead = "angel garcia"
In which third did angel garcia lead?
CREATE TABLE table_name_71 (third VARCHAR, lead VARCHAR)
SELECT score FROM table_17326036_6 WHERE high_rebounds = "Jeff Foster (10)"
What was the score of the game when the high rebounds Jeff Foster (10)?
CREATE TABLE table_17326036_6 (score VARCHAR, high_rebounds VARCHAR)
SELECT score FROM table_name_90 WHERE competition = "league cup" AND season = "2007-08"
What was the score of the league cup in the 2007-08 season?
CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)
SELECT genre FROM table_name_14 WHERE game = "mass effect"
What is the genre of the Mass Effect game?
CREATE TABLE table_name_14 (genre VARCHAR, game VARCHAR)
SELECT T1.Team, T2.Location FROM player AS T1 JOIN school AS T2 ON T1.School_ID = T2.School_ID
For each player, show the team and the location of school they belong to.
CREATE TABLE school (Location VARCHAR, School_ID VARCHAR); CREATE TABLE player (Team VARCHAR, School_ID VARCHAR)
SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle"
How many acres is the townland of Maddenstown Middle?
CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR)
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"
List the number of invoices from Chicago, IL.
CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR)
SELECT _number FROM table_19908313_2 WHERE listed_owner_s_ = "Stephen Germain"
What number truck is owned by Stephen Germain?
CREATE TABLE table_19908313_2 (_number VARCHAR, listed_owner_s_ VARCHAR)
SELECT COUNT(rank) FROM table_name_33 WHERE nationality = "denmark"
What is the rank for Denmark?
CREATE TABLE table_name_33 (rank VARCHAR, nationality VARCHAR)
SELECT medal_of_honor FROM table_2104176_1 WHERE air_force_cross = "Army Distinguished Service Medal"
What is the Medal of Honor with Army Distinguished Service Medal?
CREATE TABLE table_2104176_1 (medal_of_honor VARCHAR, air_force_cross VARCHAR)
SELECT tournament FROM table_name_54 WHERE score = "4–6, 6–3, 7–6(10)"
what game had a score of 4–6, 6–3, 7–6(10)?
CREATE TABLE table_name_54 (tournament VARCHAR, score VARCHAR)
SELECT comptroller FROM table_22607062_1 WHERE ticket___office = "Prohibition"
Name the comptroller for office of prohibition
CREATE TABLE table_22607062_1 (comptroller VARCHAR, ticket___office VARCHAR)
SELECT laps FROM table_name_48 WHERE manufacturer = "aprilia" AND rider = "sergio gadea"
Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?
CREATE TABLE table_name_48 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT SUM(rank) FROM table_name_28 WHERE silver = 1 AND gold < 7 AND bronze = 2
What is the sum of rank when silver is 1, and gold is less than 7, and bronze is 2?
CREATE TABLE table_name_28 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT 1 AS st_leg FROM table_name_75 WHERE team__number1 = "hapoel jerusalem"
What is the 1st leg that has hapoel jerusalem?
CREATE TABLE table_name_75 (team__number1 VARCHAR)
SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku
Which Free polite has a Genitive 1 of *=ku?
CREATE TABLE table_name_13 (free VARCHAR, ku VARCHAR, genitive_1 VARCHAR)
SELECT player FROM table_name_97 WHERE pick < 110 AND college = "duke"
WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE?
CREATE TABLE table_name_97 (player VARCHAR, pick VARCHAR, college VARCHAR)
SELECT bob_dole FROM table_name_67 WHERE george_hw_bush = "81%" AND pat_robertson = "9%"
When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?
CREATE TABLE table_name_67 (bob_dole VARCHAR, george_hw_bush VARCHAR, pat_robertson VARCHAR)
SELECT AVG(evening_gown) FROM table_name_21 WHERE swimsuit < 7.99 AND interview > 7.98
WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98?
CREATE TABLE table_name_21 (evening_gown INTEGER, swimsuit VARCHAR, interview VARCHAR)
SELECT date FROM table_name_88 WHERE opponent = "oakland raiders"
What date was the opponents the Oakland Raiders?
CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR)
SELECT year FROM table_name_62 WHERE qual = "120.006"
The Qual of 120.006 took place in what year?
CREATE TABLE table_name_62 (year VARCHAR, qual VARCHAR)
SELECT entrant FROM table_name_79 WHERE driver = "luigi fagioli"
Which of the entrants had Luigi Fagioli as a driver?
CREATE TABLE table_name_79 (entrant VARCHAR, driver VARCHAR)
SELECT school FROM table_name_75 WHERE player = "dave lewis"
Which school drafted dave lewis?
CREATE TABLE table_name_75 (school VARCHAR, player VARCHAR)
SELECT record FROM table_name_4 WHERE method = "technical submission (rear naked choke)"
What is Record, when Method is "Technical Submission (Rear Naked Choke)"?
CREATE TABLE table_name_4 (record VARCHAR, method VARCHAR)
SELECT opponents FROM table_name_23 WHERE surface = "clay" AND partnering = "horacio zeballos"
Who was the opponent on clay surface when partnered with Horacio Zeballos?
CREATE TABLE table_name_23 (opponents VARCHAR, surface VARCHAR, partnering VARCHAR)
SELECT date FROM table_name_79 WHERE away_team = "south melbourne"
What date did South Melbourne play as the Away team?
CREATE TABLE table_name_79 (date VARCHAR, away_team VARCHAR)
SELECT MIN(meas_num) FROM table_256286_19 WHERE _percentage_yes = "33.57%"
What is the lowest measure number for the measure with a 33.57% yes percentage?
CREATE TABLE table_256286_19 (meas_num INTEGER, _percentage_yes VARCHAR)
SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game"
What game was before 2010 and was a role-playing game?
CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR)
SELECT MIN(lane) FROM table_name_67 WHERE react = 0.216
What is the lowest lane with a 0.216 react?
CREATE TABLE table_name_67 (lane INTEGER, react VARCHAR)
SELECT captain FROM table_name_34 WHERE manager = "billy bonds"
Which captain has billy bonds as the manager?
CREATE TABLE table_name_34 (captain VARCHAR, manager VARCHAR)
SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne"
Who is the home team of South Melbourne?
CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)
SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149
Who wrote episode number 149 in the series?
CREATE TABLE table_25277363_2 (written_by VARCHAR, no_in_series VARCHAR)
SELECT record FROM table_name_44 WHERE attendance = "rose garden 20,126"
What is the record that has the Rose Garden 20,126 as the attendance?
CREATE TABLE table_name_44 (record VARCHAR, attendance VARCHAR)
SELECT to_par FROM table_name_82 WHERE score = 68 - 69 = 137
What was the TO par for the player who scored 68-69=137?
CREATE TABLE table_name_82 (to_par VARCHAR, score VARCHAR)
SELECT player FROM table_2886617_6 WHERE nhl_team = "Los Angeles Kings"
Who was the player that was picked by Los Angeles Kings?
CREATE TABLE table_2886617_6 (player VARCHAR, nhl_team VARCHAR)
SELECT launch_date FROM table_18161217_2 WHERE cospar_id = "2008-033A"
What was the launch date the satellite with cospar ID is 2008-033A?
CREATE TABLE table_18161217_2 (launch_date VARCHAR, cospar_id VARCHAR)
SELECT score FROM table_name_40 WHERE place = "t3" AND player = "bobby locke"
What is T3 Place Player Bobby Locke's Score?
CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = 1050.14
What's the total of Rank that has an Area (KM 2) of 1050.14?
CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR)
SELECT bronze FROM table_name_20 WHERE nation = "south korea"
How many bronze medals does South Korea have?
CREATE TABLE table_name_20 (bronze VARCHAR, nation VARCHAR)
SELECT participants_recipients FROM table_29644931_1 WHERE category = "Best Newcomer"
Which films participated when the category was Best Newcomer?
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, category VARCHAR)
SELECT record FROM table_17355408_7 WHERE high_assists = "Carmelo Anthony (11)"
High assists belonging to Carmelo Anthony (11) have a record of what?
CREATE TABLE table_17355408_7 (record VARCHAR, high_assists VARCHAR)
SELECT last_appearance FROM table_2517159_1 WHERE name_of_bowl = "Music City Bowl"
Name the last appearance for music city bowl
CREATE TABLE table_2517159_1 (last_appearance VARCHAR, name_of_bowl VARCHAR)
SELECT MIN(game) FROM table_name_49 WHERE opponent = "pittsburgh penguins"
What game is the first with the Pittsburgh Penguins the opponent?
CREATE TABLE table_name_49 (game INTEGER, opponent VARCHAR)
SELECT SUM(size) FROM table_name_76 WHERE ihsaa_class = "aa" AND location = "milan"
Which Size has an IHSAA Class of aa, and a Location of milan?
CREATE TABLE table_name_76 (size INTEGER, ihsaa_class VARCHAR, location VARCHAR)
SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 6 HD"
Does the sky calcio 6 hd have PPV?
CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR)
SELECT res FROM table_name_12 WHERE opponent = "ryan schultz"
What is the result of the match against Ryan Schultz?
CREATE TABLE table_name_12 (res VARCHAR, opponent VARCHAR)
SELECT COUNT(seats) FROM table_name_89 WHERE vote__percentage > 19.5
Name the total number of seats for votes % more than 19.5
CREATE TABLE table_name_89 (seats VARCHAR, vote__percentage INTEGER)
SELECT won FROM table_13758945_3 WHERE try_bonus = "8"
what's the won with try bonus being 8
CREATE TABLE table_13758945_3 (won VARCHAR, try_bonus VARCHAR)
SELECT AVG(game) FROM table_name_25 WHERE attendance > 55 OFFSET 189
Attendance larger than 55,189 is which average game?
CREATE TABLE table_name_25 (game INTEGER, attendance INTEGER)
SELECT scrapped_sold FROM table_name_11 WHERE name_as_rebuilt = "trostan"
Which Scrapped/Sold has a Name as rebuilt of trostan?
CREATE TABLE table_name_11 (scrapped_sold VARCHAR, name_as_rebuilt VARCHAR)
SELECT firstname FROM teachers WHERE classroom = 110
Find the first names of all the teachers that teach in classroom 110.
CREATE TABLE teachers (firstname VARCHAR, classroom VARCHAR)
SELECT COUNT(DISTINCT dog_id) FROM Treatments
How many dogs went through any treatments?
CREATE TABLE Treatments (dog_id VARCHAR)
SELECT MAX(train_number) FROM table_29202276_2 WHERE time = "10:38"
What is the train number when the time is 10:38?
CREATE TABLE table_29202276_2 (train_number INTEGER, time VARCHAR)
SELECT model FROM table_name_1 WHERE fleet_series__quantity_ = "11081-11092 (12)"
Which model has a Fleet Series (Quantity) of 11081-11092 (12)?
CREATE TABLE table_name_1 (model VARCHAR, fleet_series__quantity_ VARCHAR)
SELECT MIN(rnd) FROM table_13643154_2 WHERE circuit = "Watkins Glen"
What is the most rnd for watkins glen?
CREATE TABLE table_13643154_2 (rnd INTEGER, circuit VARCHAR)
SELECT date FROM table_name_28 WHERE away_team = "perth wildcats"
On what date were Perth Wildcats the away team?
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR)
SELECT reign FROM table_name_16 WHERE days_held = "35" AND wrestler = "super kendo"
What is the reign for super kendo who held it for 35 days?
CREATE TABLE table_name_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR)
SELECT player FROM table_name_41 WHERE position = "fly-half" AND caps = 3
Which player has a Position of fly-half, and a Caps of 3?
CREATE TABLE table_name_41 (player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT AVG(rank) FROM table_name_95 WHERE province = "alborz" AND 1956 > 14526
What is the average rank of the province alborz, which had more than 14526 in 1956?
CREATE TABLE table_name_95 (rank INTEGER, province VARCHAR)
SELECT COUNT(position) FROM table_1213511_2 WHERE nhl_team = "Chicago Black Hawks"
How many positions do the players of Chicago Black Hawks play in?
CREATE TABLE table_1213511_2 (position VARCHAR, nhl_team VARCHAR)
SELECT MIN(altitude__ft_) FROM table_name_80 WHERE mach > 0.905 AND duration = "00:06:17"
What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?
CREATE TABLE table_name_80 (altitude__ft_ INTEGER, mach VARCHAR, duration VARCHAR)
SELECT successor FROM table_2147588_3 WHERE vacator = "New seat"
Who was the successor for the new seat?
CREATE TABLE table_2147588_3 (successor VARCHAR, vacator VARCHAR)
SELECT event FROM table_name_70 WHERE games = "2012 london"
Tell me the event for 2012 london games
CREATE TABLE table_name_70 (event VARCHAR, games VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "montreal impact"
Which Team 2 had a Team 1 of montreal impact?
CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT captain_s_ FROM table_name_75 WHERE competition = "2012 nrl season"
Who is the captain of the 2012 NRL season competition?
CREATE TABLE table_name_75 (captain_s_ VARCHAR, competition VARCHAR)
SELECT MAX(year) FROM table_name_8 WHERE work = "the clone" AND award = "contigo award"
Which Year is the highest one that has a Work of the clone, and an Award of contigo award?
CREATE TABLE table_name_8 (year INTEGER, work VARCHAR, award VARCHAR)
SELECT won FROM table_14058433_4 WHERE try_bonus = "12"
what's the won with try bonus being 12
CREATE TABLE table_14058433_4 (won VARCHAR, try_bonus VARCHAR)
SELECT affiliation FROM table_29836557_2 WHERE player = "Kevan George"
What university was Kevan George affiliated with?
CREATE TABLE table_29836557_2 (affiliation VARCHAR, player VARCHAR)
SELECT MAX(wins) FROM table_name_17 WHERE losses = 7 AND draws > 0
What was the greatest number of wins for a team that had 7 losses and more than 0 draws?
CREATE TABLE table_name_17 (wins INTEGER, losses VARCHAR, draws VARCHAR)
SELECT name FROM table_name_46 WHERE best = "58.403"
Tell me the name with best of 58.403
CREATE TABLE table_name_46 (name VARCHAR, best VARCHAR)
SELECT COUNT(tor_fløysvik) FROM table_28677723_11 WHERE christer_tornell = 7
how many for floysvik and christer tornell is 7?
CREATE TABLE table_28677723_11 (tor_fløysvik VARCHAR, christer_tornell VARCHAR)
SELECT COUNT(finish) FROM table_name_78 WHERE start = 15
What is the number of finishes having a start of 15?
CREATE TABLE table_name_78 (finish VARCHAR, start VARCHAR)
SELECT COUNT(liquidat__) AS °c_ FROM table_name_94 WHERE purpose = "dual (machine & hand composition)"
How many Liquidat (c) have a purpose of dual (machine & hand composition)?
CREATE TABLE table_name_94 (liquidat__ VARCHAR, purpose VARCHAR)
SELECT owned_since FROM table_11147852_1 WHERE city_of_license_market = "Albuquerque"
The station located in Albuquerque has been owned since what year?
CREATE TABLE table_11147852_1 (owned_since VARCHAR, city_of_license_market VARCHAR)
SELECT MAX(roll) FROM table_name_49 WHERE years = "1–8" AND name = "dorie school" AND decile > 9
What is the largest roll with Years 1–8, a Name of dorie school, and a Decile larger than 9?
CREATE TABLE table_name_49 (roll INTEGER, decile VARCHAR, years VARCHAR, name VARCHAR)
SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)
Please show the record formats of orchestras in ascending order of count.
CREATE TABLE orchestra (Major_Record_Format VARCHAR)
SELECT notes FROM table_name_70 WHERE gold = "thierry gueorgiou" AND year < 2008 AND bronze = "valentin novikov"
What is Notes, when Gold is "Thierry Gueorgiou", when Year is before 2008, and when Bronze is "Valentin Novikov"?
CREATE TABLE table_name_70 (notes VARCHAR, bronze VARCHAR, gold VARCHAR, year VARCHAR)
SELECT rank FROM table_name_92 WHERE season = "2006/07"
What was the rank of the team during season 2006/07?
CREATE TABLE table_name_92 (rank VARCHAR, season VARCHAR)
SELECT verb_meaning FROM table_1745843_9 WHERE part_2 = "half drosch"
Name the verb meaning for half drosch
CREATE TABLE table_1745843_9 (verb_meaning VARCHAR, part_2 VARCHAR)