answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT source FROM table_name_14 WHERE type = "transfer" AND nat = "mex"
WHAT IS THE SOURCE WITH A TYPE OF TRANSFER AND MEX?
CREATE TABLE table_name_14 (source VARCHAR, type VARCHAR, nat VARCHAR)
SELECT incumbent FROM table_2668254_17 WHERE first_elected = "1818"
Who was the ran as an incumbent leader first in 1818?
CREATE TABLE table_2668254_17 (incumbent VARCHAR, first_elected VARCHAR)
SELECT code_ & _location FROM table_22282917_26 WHERE launch_site_condition_owner = "Obliterated"
What is every code and location where the launch site condition and owner is obliterated?
CREATE TABLE table_22282917_26 (code_ VARCHAR, _location VARCHAR, launch_site_condition_owner VARCHAR)
SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana"
Who is the drive for an Entrant of Scuderia Ambrosiana?
CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR)
SELECT player FROM table_name_22 WHERE school_club_team = "illinois"
Who is the Player for School/Club Team Illinois?
CREATE TABLE table_name_22 (player VARCHAR, school_club_team VARCHAR)
SELECT COUNT(player) FROM table_11677100_12 WHERE hometown = "Pennsauken, NJ"
How many players have the hometown Pennsauken, NJ?
CREATE TABLE table_11677100_12 (player VARCHAR, hometown VARCHAR)
SELECT competition FROM table_name_12 WHERE result = "loss" AND location = "berlin" AND score = "0-3"
what is the competition when the result is loss in berlin with a score of 0-3?
CREATE TABLE table_name_12 (competition VARCHAR, score VARCHAR, result VARCHAR, location VARCHAR)
SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK"
Find all students taught by MARROTTE KIRK. Output first and last names of students.
CREATE TABLE list (firstname VARCHAR, lastname VARCHAR, classroom VARCHAR); CREATE TABLE teachers (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT MAX(rank) FROM table_name_13 WHERE silver = 4 AND bronze < 3
Name the highest rank when silver is 4 and bronze is less than 3
CREATE TABLE table_name_13 (rank INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT hometown FROM table_name_19 WHERE player = "ray drew"
Which hometown has a player of Ray Drew?
CREATE TABLE table_name_19 (hometown VARCHAR, player VARCHAR)
SELECT hypertransport_version FROM table_name_51 WHERE max_aggregate_bandwidth__bi_directional_ = "22.4 gb/s"
What Hyper Transport version has 22.4 gb/s of Max. Aggregate bandwidth?
CREATE TABLE table_name_51 (hypertransport_version VARCHAR, max_aggregate_bandwidth__bi_directional_ VARCHAR)
SELECT home_team FROM table_name_66 WHERE tie_no = "11"
What is the Home team of Tie no 11?
CREATE TABLE table_name_66 (home_team VARCHAR, tie_no VARCHAR)
SELECT represent FROM table_23495048_2 WHERE height__mtr_ = "1.70"
What country had a contestant that was 1.70 meters tall?
CREATE TABLE table_23495048_2 (represent VARCHAR, height__mtr_ VARCHAR)
SELECT date FROM table_name_26 WHERE score = "6–4, 6–2"
What is the Date of the game with a Score of 6–4, 6–2?
CREATE TABLE table_name_26 (date VARCHAR, score VARCHAR)
SELECT coach FROM table_27069503_2 WHERE overall = "20-6-2"
Who was the coach of the Pandas when their overall record was 20-6-2?
CREATE TABLE table_27069503_2 (coach VARCHAR, overall VARCHAR)
SELECT steals FROM table_22824319_3 WHERE blocks = 5
Name the steals for 5 blocks
CREATE TABLE table_22824319_3 (steals VARCHAR, blocks VARCHAR)
SELECT tournament FROM table_name_21 WHERE date = "february 17, 2002"
What is the tournament on February 17, 2002?
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
SELECT tie_no FROM table_name_7 WHERE away_team = "bradford city"
What was the Tie Number of the Bradford City away team?
CREATE TABLE table_name_7 (tie_no VARCHAR, away_team VARCHAR)
SELECT maryland FROM table_13012165_1 WHERE pennsylvania = "Deep Run Valley LL Hilltown"
Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?
CREATE TABLE table_13012165_1 (maryland VARCHAR, pennsylvania VARCHAR)
SELECT county FROM table_name_34 WHERE bush_number = 566
Which county had a Bush number of votes of 566?
CREATE TABLE table_name_34 (county VARCHAR, bush_number VARCHAR)
SELECT race_3 FROM table_name_4 WHERE round = "round 5"
What Race 3 is Round 5?
CREATE TABLE table_name_4 (race_3 VARCHAR, round VARCHAR)
SELECT plural FROM table_name_60 WHERE singular = "awu"
What is the plural if the singular is awu?
CREATE TABLE table_name_60 (plural VARCHAR, singular VARCHAR)
SELECT COUNT(division) FROM table_25840200_1 WHERE location = "Verona, USA"
What was the division number for Verona, USA?
CREATE TABLE table_25840200_1 (division VARCHAR, location VARCHAR)
SELECT dates FROM table_229059_2 WHERE tournament_location = "Forest Lake country Club"
When was the tournament in Forest Lake Country Club held?
CREATE TABLE table_229059_2 (dates VARCHAR, tournament_location VARCHAR)
SELECT COUNT(record) FROM table_14966537_1 WHERE opponent = "Chicago Bears"
How many games were played against the Chicago Bears?
CREATE TABLE table_14966537_1 (record VARCHAR, opponent VARCHAR)
SELECT SUM(round) FROM table_name_41 WHERE pick = 169
Name the sum of round for pick of 169
CREATE TABLE table_name_41 (round INTEGER, pick VARCHAR)
SELECT COUNT(obama_number) FROM table_20693870_1 WHERE obama_percentage = "29.9%"
How many numbers were recorded under Obama when he had 29.9% voters?
CREATE TABLE table_20693870_1 (obama_number VARCHAR, obama_percentage VARCHAR)
SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic"
On what date did Epic label start its release?
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR)
SELECT customer_status_code FROM Customers GROUP BY customer_status_code ORDER BY COUNT(*) LIMIT 1
Which customer status code has least number of customers?
CREATE TABLE Customers (customer_status_code VARCHAR)
SELECT being__qualities_ FROM table_name_20 WHERE having__things_ = "friendships, family, relationships with nature"
Name the being qualities for having things of friendships, family, relationships with nature
CREATE TABLE table_name_20 (being__qualities_ VARCHAR, having__things_ VARCHAR)
SELECT band FROM table_name_61 WHERE area_served = "darwin" AND purpose = "commercial"
Which band serves darwin for commercial purpose?
CREATE TABLE table_name_61 (band VARCHAR, area_served VARCHAR, purpose VARCHAR)
SELECT location FROM table_16384648_2 WHERE team_website = "Cincinnati Hockey"
Which city has the cincinnati hockey website?
CREATE TABLE table_16384648_2 (location VARCHAR, team_website VARCHAR)
SELECT resultado FROM table_27501971_2 WHERE country = "E.E.U.U"
What was the resultado when E.E.U.U was the country?
CREATE TABLE table_27501971_2 (resultado VARCHAR, country VARCHAR)
SELECT MIN(2011 AS _number__), 000 AS _ FROM table_273617_6
What is the lowest 2011 number (,000)?
CREATE TABLE table_273617_6 (Id VARCHAR)
SELECT location FROM table_1715730_2 WHERE enrollment = 4259
where is the enrollment 4259?
CREATE TABLE table_1715730_2 (location VARCHAR, enrollment VARCHAR)
SELECT position FROM table_name_72 WHERE nationality = "england" AND goals = "62"
What is the position of the player from England with 62 goals?
CREATE TABLE table_name_72 (position VARCHAR, nationality VARCHAR, goals VARCHAR)
SELECT last_match FROM table_23819979_3 WHERE final_place = "Argentina - Estadio José María Minella"
Name the last match for argentina - estadio josé maría minella
CREATE TABLE table_23819979_3 (last_match VARCHAR, final_place VARCHAR)
SELECT COUNT(episode) FROM table_20971444_3 WHERE rating__18_49_ = "3.6"
Name the episode for 18-49 rating being 3.6
CREATE TABLE table_20971444_3 (episode VARCHAR, rating__18_49_ VARCHAR)
SELECT time FROM table_name_4 WHERE competition = "tim trophy" AND opponent = "juventus"
What is the time of the tim trophy competition where juventus was the opponent?
CREATE TABLE table_name_4 (time VARCHAR, competition VARCHAR, opponent VARCHAR)
SELECT AVG(points) FROM table_name_78 WHERE lost > 20
Which average Points has a Lost higher than 20?
CREATE TABLE table_name_78 (points INTEGER, lost INTEGER)
SELECT record FROM table_name_42 WHERE date = "may 25"
What's the record on May 25?
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR)
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362"
What is the name of the site with a CERCLIS ID of prd980512362?
CREATE TABLE table_name_77 (name VARCHAR, cerclis_id VARCHAR)
SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen"
How many laps did Jos Verstappen do on Grid 2?
CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT matches FROM table_name_7 WHERE tally = "1-38"
Which Matches have a Tally of 1-38?
CREATE TABLE table_name_7 (matches VARCHAR, tally VARCHAR)
SELECT COUNT(lost) FROM table_name_66 WHERE period = "12 november 2012 – 27 november 2012" AND managed > 2
How many lost when the number managed is over 2 and the period is from 12 november 2012 – 27 november 2012?
CREATE TABLE table_name_66 (lost VARCHAR, period VARCHAR, managed VARCHAR)
SELECT AVG(overall) FROM table_name_63 WHERE round < 7 AND pick__number = 4
What's the overall average that has a round less than 7, and a Pick # of 4?
CREATE TABLE table_name_63 (overall INTEGER, round VARCHAR, pick__number VARCHAR)
SELECT team FROM table_23274514_7 WHERE record = "19-34"
Name the team for 19-34
CREATE TABLE table_23274514_7 (team VARCHAR, record VARCHAR)
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4"
In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT hpfs FROM table_name_51 WHERE refs = "no"
Which HPFS has a no for ReFS?
CREATE TABLE table_name_51 (hpfs VARCHAR, refs VARCHAR)
SELECT record FROM table_name_61 WHERE game < 76
Can you tell me the Record that has the Game smaller than 76?
CREATE TABLE table_name_61 (record VARCHAR, game INTEGER)
SELECT voltage FROM table_name_21 WHERE model_number = "c3 866"
What is the Voltage for Model Number c3 866?
CREATE TABLE table_name_21 (voltage VARCHAR, model_number VARCHAR)
SELECT time FROM table_name_84 WHERE lane < 4 AND nationality = "spain"
Spain had what time with lanes smaller than 4?
CREATE TABLE table_name_84 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT semifinalists FROM table_name_23 WHERE finalist = "andre agassi"
Which Semifinalists has a Finalist of andre agassi?
CREATE TABLE table_name_23 (semifinalists VARCHAR, finalist VARCHAR)
SELECT round FROM table_10361625_1 WHERE player_name = "Tommy Kramer"
Which round did Tommy Kramer play in>
CREATE TABLE table_10361625_1 (round VARCHAR, player_name VARCHAR)
SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190"
What was the rating of the episode with an overall ranking of 190?
CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR)
SELECT country FROM table_27501971_2 WHERE año = 2012
When the año was 2012, who was the county?
CREATE TABLE table_27501971_2 (country VARCHAR, año VARCHAR)
SELECT _number_tubes FROM table_name_30 WHERE audio_amp = "x"
Name the # tubes with audio amp of x
CREATE TABLE table_name_30 (_number_tubes VARCHAR, audio_amp VARCHAR)
SELECT northern_ireland FROM table_10128185_2 WHERE total = 35
How many votes did Northern Ireland cast if the total was 35?
CREATE TABLE table_10128185_2 (northern_ireland VARCHAR, total VARCHAR)
SELECT entrant FROM table_name_82 WHERE engine = "cosworth v8" AND year = 1970
In 1970, what entrant had a cosworth v8 engine?
CREATE TABLE table_name_82 (entrant VARCHAR, engine VARCHAR, year VARCHAR)
SELECT MIN(react) FROM table_name_50 WHERE lane = 5
Can you tell me the lowest React that has the Lane of 5?
CREATE TABLE table_name_50 (react INTEGER, lane VARCHAR)
SELECT recipient_s_ FROM table_name_5 WHERE result = "nominated" AND category = "most popular drama" AND year > 2004
Who was the recipient when the show was nominated for Most Popular Drama after 2004?
CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
SELECT total_points FROM table_17862135_3 WHERE average = "17.8"
What are the total points for the team that averages 17.8?
CREATE TABLE table_17862135_3 (total_points VARCHAR, average VARCHAR)
SELECT party FROM table_1805191_2 WHERE incumbent = "Robert Cramer"
What is the party affiliation of the incumbent Robert Cramer?
CREATE TABLE table_1805191_2 (party VARCHAR, incumbent VARCHAR)
SELECT SUM(attendance) FROM table_name_12 WHERE opponent = "san francisco 49ers"
For the game against the San Francisco 49ers what was the total attendance?
CREATE TABLE table_name_12 (attendance INTEGER, opponent VARCHAR)
SELECT set_2 FROM table_name_81 WHERE total = "52:44"
What is Set 2, when Total is "52:44"?
CREATE TABLE table_name_81 (set_2 VARCHAR, total VARCHAR)
SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc"
Which fuel system has a displacement of 1490cc?
CREATE TABLE table_name_68 (fuel_system VARCHAR, displacement VARCHAR)
SELECT score_in_final FROM table_2362606_1 WHERE year = 1988
What was the score in the final in 1988?
CREATE TABLE table_2362606_1 (score_in_final VARCHAR, year VARCHAR)
SELECT open_cup FROM table_2402864_1 WHERE year = 2003
What was the Open Cup results for the year 2003?
CREATE TABLE table_2402864_1 (open_cup VARCHAR, year VARCHAR)
SELECT race_name FROM table_name_13 WHERE winning_driver = "stirling moss"
What is the name of the race where Stirling Moss was the winning driver?
CREATE TABLE table_name_13 (race_name VARCHAR, winning_driver VARCHAR)
SELECT COUNT(nickname) FROM table_1973729_1 WHERE location = "Milton, Massachusetts"
How many nicknames were associated with Milton, Massachusetts?
CREATE TABLE table_1973729_1 (nickname VARCHAR, location VARCHAR)
SELECT MIN(year) FROM table_name_63 WHERE town = "gray court, south carolina"
What was the earliest year that a structure was located in gray court, south carolina?
CREATE TABLE table_name_63 (year INTEGER, town VARCHAR)
SELECT MIN(game) FROM table_name_24 WHERE march = 26
March of 26 has what lowest game?
CREATE TABLE table_name_24 (game INTEGER, march VARCHAR)
SELECT release_date FROM table_20174050_7 WHERE reader = "Syal, Meera Meera Syal"
If the reader is Syal, Meera Meera Syal, what was the release date?
CREATE TABLE table_20174050_7 (release_date VARCHAR, reader VARCHAR)
SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = "Denmark"
Name the deployable military 2011 for denmark
CREATE TABLE table_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR)
SELECT MIN(year_born) FROM table_12962773_12 WHERE height = "2.04"
What year was the player with the height 2.04 born?
CREATE TABLE table_12962773_12 (year_born INTEGER, height VARCHAR)
SELECT game_4 FROM table_name_52 WHERE game_2 = "brett kenny"
During which Game 4, did Brett Kenny play Game 2?
CREATE TABLE table_name_52 (game_4 VARCHAR, game_2 VARCHAR)
SELECT original_air_date FROM table_10088101_1 WHERE production_code = "9ABX02"
The episode with production code 9abx02 was originally aired on what date?
CREATE TABLE table_10088101_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT MIN(maximum_fps) FROM table_name_84 WHERE width = 3072 AND height < 1620
What is the lowest maximum of fps with a width of 3072 and a height less than 1620?
CREATE TABLE table_name_84 (maximum_fps INTEGER, width VARCHAR, height VARCHAR)
SELECT club_team FROM table_name_96 WHERE overall < 283 AND player = "derrick byfuglien"
What club was derrick byfuglien drafted by before 283?
CREATE TABLE table_name_96 (club_team VARCHAR, overall VARCHAR, player VARCHAR)
SELECT MIN(highest_score) FROM table_28547332_4 WHERE average = "9.88"
What is the highest score in those games where the average is 9.88?
CREATE TABLE table_28547332_4 (highest_score INTEGER, average VARCHAR)
SELECT home_town FROM table_name_40 WHERE name = "rob cunningham"
What is the Home Town with a Name with rob cunningham?
CREATE TABLE table_name_40 (home_town VARCHAR, name VARCHAR)
SELECT series FROM table_name_58 WHERE game = "game 6"
Name the series with game of game 6
CREATE TABLE table_name_58 (series VARCHAR, game VARCHAR)
SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = "David Carson"
How many episodes directed by david carson?
CREATE TABLE table_25604014_5 (no_in_season VARCHAR, directed_by VARCHAR)
SELECT MIN(attendance) FROM table_name_17 WHERE date = "september 29, 1968" AND week < 3
Which Attendance has a Date of september 29, 1968, and a Week smaller than 3?
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT construction_completed FROM table_name_48 WHERE listed = "09/08/1983" AND deleted = "–" AND name = "mid-south wood products"
What construction has a Listed 09/08/1983, and a Deleted of –, and a Name of mid-south wood products?
CREATE TABLE table_name_48 (construction_completed VARCHAR, name VARCHAR, listed VARCHAR, deleted VARCHAR)
SELECT description_of_activities FROM table_1756264_2 WHERE company_name = "CLEAR CHANNEL ENTERTAINMENT FACILITATION LIMITED"
What activities does Clear Channel Entertainment Facilitation Limited engage in?
CREATE TABLE table_1756264_2 (description_of_activities VARCHAR, company_name VARCHAR)
SELECT MIN(2005) FROM table_name_32 WHERE grade < 6 AND 2008 < 80 AND 2006 > 72
Which 2005 is the lowest one that has a Grade smaller than 6, and a 2008 smaller than 80, and a 2006 larger than 72?
CREATE TABLE table_name_32 (grade VARCHAR)
SELECT studio_host FROM table_name_38 WHERE play_by_play = "bob cole" AND colour_commentator_s_ = "harry neale"
Who is the studio host that has a play-by-play announcer of Bob Cole and a colour commentator of Harry Neale?
CREATE TABLE table_name_38 (studio_host VARCHAR, play_by_play VARCHAR, colour_commentator_s_ VARCHAR)
SELECT Player, Years_Played FROM player
Show the players and the years played.
CREATE TABLE player (Player VARCHAR, Years_Played VARCHAR)
SELECT county FROM table_19681738_1 WHERE hancock__percentage = "3.09%"
where did hancock get 3.09%
CREATE TABLE table_19681738_1 (county VARCHAR, hancock__percentage VARCHAR)
SELECT name, open_date, organized_by FROM Church
Show the name, open date, and organizer for all churches.
CREATE TABLE Church (name VARCHAR, open_date VARCHAR, organized_by VARCHAR)
SELECT COUNT(points) FROM table_name_7 WHERE team = "rusport" AND laps = 45
How many Points have a Team of rusport, and Laps of 45?
CREATE TABLE table_name_7 (points VARCHAR, team VARCHAR, laps VARCHAR)
SELECT distance FROM table_16689920_1 WHERE jockey = "Kent Desormeaux" AND date = "6/7/08"
What is the distance for jockey Kent Desormeaux on 6/7/08?
CREATE TABLE table_16689920_1 (distance VARCHAR, jockey VARCHAR, date VARCHAR)
SELECT directed_by FROM table_name_21 WHERE episode__number = "92 (4)"
Who directed episode # 92 (4)?
CREATE TABLE table_name_21 (directed_by VARCHAR, episode__number VARCHAR)
SELECT winner FROM table_name_31 WHERE team = "mobil 1 racing"
who is the winner when the team is mobil 1 racing?
CREATE TABLE table_name_31 (winner VARCHAR, team VARCHAR)
SELECT nfl_club FROM table_name_43 WHERE player = "sam tidmore" AND pick = 81
Which NFL Club has a Player of sam tidmore, and a Pick of 81?
CREATE TABLE table_name_43 (nfl_club VARCHAR, player VARCHAR, pick VARCHAR)
SELECT west_ham_wins FROM table_name_56 WHERE millwall_wins > 5 AND millwall_goals > 23 AND drawn = 8
How many wins did West Ham get when Millwall had more than 23 goal and 5 wins, and they tied 8 times?
CREATE TABLE table_name_56 (west_ham_wins VARCHAR, drawn VARCHAR, millwall_wins VARCHAR, millwall_goals VARCHAR)
SELECT Radio AS electrical FROM table_1348246_3 WHERE secretariat = "WTR I"
What are radio electricals when secretariat is wtr i?
CREATE TABLE table_1348246_3 (Radio VARCHAR, secretariat VARCHAR)
SELECT d_43 FROM table_name_45 WHERE d_45 = "d 25"
Name the D 43 when it has D 45 of d 25
CREATE TABLE table_name_45 (d_43 VARCHAR, d_45 VARCHAR)
SELECT drg_number_s_ FROM table_name_32 WHERE railway_number_s_ = "xxx"
Which DRG number has xxx railway number?
CREATE TABLE table_name_32 (drg_number_s_ VARCHAR, railway_number_s_ VARCHAR)