answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT height FROM table_name_96 WHERE club = "oakville gymnastics club"
What is the height for the Oakville Gymnastics Club?
CREATE TABLE table_name_96 (height VARCHAR, club VARCHAR)
SELECT erp_w FROM table_name_54 WHERE frequency_mhz > 89.1 AND city_of_license = "de queen, arkansas"
Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?
CREATE TABLE table_name_54 (erp_w VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT director FROM table_10798928_1 WHERE original_title = "Dulcinea"
Who directed Dulcinea?
CREATE TABLE table_10798928_1 (director VARCHAR, original_title VARCHAR)
SELECT winner FROM table_name_34 WHERE fis_nordic_world_ski_championships = "1980"
Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980?
CREATE TABLE table_name_34 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR)
SELECT Name FROM country WHERE Continent = "Africa" AND population < (SELECT MIN(population) FROM country WHERE Continent = "Asia")
Which African countries have a smaller population than that of any country in Asia?
CREATE TABLE country (Name VARCHAR, Continent VARCHAR, population INTEGER)
SELECT deputy FROM table_name_88 WHERE name = "elizabeth black"
What is the name of the Deputy when the Name was elizabeth black?
CREATE TABLE table_name_88 (deputy VARCHAR, name VARCHAR)
SELECT winner FROM table_22384475_1 WHERE margin = "131 runs"
Who won the match when the margin was 131 runs?
CREATE TABLE table_22384475_1 (winner VARCHAR, margin VARCHAR)
SELECT motorway FROM table_name_68 WHERE scheduled_completion = "2013" AND county = "brod-posavina"
Which motorway is in brod-posavina county and has a scheduled completion in 2013?
CREATE TABLE table_name_68 (motorway VARCHAR, scheduled_completion VARCHAR, county VARCHAR)
SELECT T1.date_of_enrolment, T1.date_of_completion FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id WHERE T2.family_name = "Zieme" AND T2.personal_name = "Bernie"
List the dates of enrollment and completion of the student with family name "Zieme" and personal name "Bernie".
CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, date_of_completion VARCHAR, student_id VARCHAR); CREATE TABLE Students (student_id VARCHAR, family_name VARCHAR, personal_name VARCHAR)
SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure"
What was the host city in years where the host school was école de technologie supérieure?
CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR)
SELECT date FROM table_name_35 WHERE home_team = "south melbourne"
What day is south melbourne at home?
CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)
SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
CREATE TABLE table_name_98 (rank INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT SUM(laps) FROM table_name_75 WHERE rider = "olivier jacque" AND grid > 7
How many Laps have Rider of olivier jacque, and a Grid larger than 7?
CREATE TABLE table_name_75 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT winner FROM table_name_71 WHERE event = "rip curl pro search"
Who was the winner from the Rip Curl Pro Search?
CREATE TABLE table_name_71 (winner VARCHAR, event VARCHAR)
SELECT director FROM table_name_63 WHERE studio = "paramount" AND gross = "$128,152,301"
What is the Director from Paramount with a Film with a Gross of $128,152,301?
CREATE TABLE table_name_63 (director VARCHAR, studio VARCHAR, gross VARCHAR)
SELECT transit_connections FROM table_22771048_2 WHERE station = "Pioneer Square U"
What are the transit connections from Pioneer Square U?
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, station VARCHAR)
SELECT COUNT(rebounds) FROM table_24913533_4 WHERE points = 18
How many numbers of rebounds are associated with exactly 18 points?
CREATE TABLE table_24913533_4 (rebounds VARCHAR, points VARCHAR)
SELECT school_club_team FROM table_name_35 WHERE player = "john crotty"
What school does John Crotty play for?
CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR)
SELECT october FROM table_name_13 WHERE record = "0-2-2"
What October has 0-2-2 as the record?
CREATE TABLE table_name_13 (october VARCHAR, record VARCHAR)
SELECT characters FROM table_name_33 WHERE construction = "1873, foochow navy yard"
Who has a Construction of 1873, foochow navy yard?
CREATE TABLE table_name_33 (characters VARCHAR, construction VARCHAR)
SELECT traditional FROM table_2135222_2 WHERE simplified = "永城市"
What is the traditional form for 永城市?
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR)
SELECT record FROM table_name_95 WHERE week = 12
What is the Record for week 12?
CREATE TABLE table_name_95 (record VARCHAR, week VARCHAR)
SELECT host FROM table_name_78 WHERE city = "nashville"
What was the host for the round in Nashville?
CREATE TABLE table_name_78 (host VARCHAR, city VARCHAR)
SELECT opponent FROM table_name_49 WHERE attendance = "7,893"
Who was the Mariners opponent at the game attended by 7,893?
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
SELECT player FROM table_name_92 WHERE team = "chicago bulls"
Who plays for the chicago bulls?
CREATE TABLE table_name_92 (player VARCHAR, team VARCHAR)
SELECT competition FROM table_name_75 WHERE date = "21 april 2001"
what is the competition on 21 april 2001?
CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR)
SELECT country FROM table_name_55 WHERE to_par = "-9" AND score = 70 - 69 - 68 = 207
Which country has -9 to par with a Score of 70-69-68=207?
CREATE TABLE table_name_55 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT COUNT(sales) FROM table_name_31 WHERE peak_position = 1 AND certification = "6x platinum"
How many sales had a peak position of 1 and a certification of 6x platinum?
CREATE TABLE table_name_31 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT specialization FROM table_2112260_1 WHERE website = "jstu.edu.bd"
What is every specialization with the website Jstu.edu.bd
CREATE TABLE table_2112260_1 (specialization VARCHAR, website VARCHAR)
SELECT d_48_√ FROM table_name_67 WHERE d_50_o = "d 31"
What is the D48 when the D 50 O is d 31?
CREATE TABLE table_name_67 (d_48_√ VARCHAR, d_50_o VARCHAR)
SELECT top_division_titles FROM table_18143210_2 WHERE first_season_of_current_spell_in_top_division = "1979-80"
How many top division titles were won during the 'first season of current spell in top division' in 1979-80?
CREATE TABLE table_18143210_2 (top_division_titles VARCHAR, first_season_of_current_spell_in_top_division VARCHAR)
SELECT AVG(points) FROM table_name_96 WHERE played > 42
What is the average number of points for clubs that have played more than 42 times?
CREATE TABLE table_name_96 (points INTEGER, played INTEGER)
SELECT type FROM table_name_89 WHERE host_interface = "pci saa7146 tmx320av7111"
I want the type for host interface of pci saa7146 tmx320av7111
CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)
SELECT competition FROM table_name_12 WHERE date = "may 2, 1993"
Which Competition has a Date of may 2, 1993?
CREATE TABLE table_name_12 (competition VARCHAR, date VARCHAR)
SELECT AVG(transcript_date) FROM Transcripts
On average, when were the transcripts printed?
CREATE TABLE Transcripts (transcript_date INTEGER)
SELECT MIN(season__number) FROM table_name_63 WHERE format__number = "q145"
Which season has q145 as its format?
CREATE TABLE table_name_63 (season__number INTEGER, format__number VARCHAR)
SELECT opponent_in_the_final FROM table_name_69 WHERE date = "november 23, 1998"
Who played the final match on November 23, 1998?
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT apt_number FROM Apartments ORDER BY room_count
Return all the apartment numbers sorted by the room count in ascending order.
CREATE TABLE Apartments (apt_number VARCHAR, room_count VARCHAR)
SELECT result FROM table_name_74 WHERE week = "wild card"
What was the result on the wild card?
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR)
SELECT runner_s__up FROM table_name_50 WHERE premiered = "march 25, 2002"
Who was the runner-up for the show that premiered on March 25, 2002?
CREATE TABLE table_name_50 (runner_s__up VARCHAR, premiered VARCHAR)
SELECT best_10_year_period FROM table_name_32 WHERE best_2_year_period = "petrosian"
Which best 10-year period has a best 2-year period of petrosian?
CREATE TABLE table_name_32 (best_10_year_period VARCHAR, best_2_year_period VARCHAR)
SELECT grand_prix FROM table_name_50 WHERE fastest_lap = "gerhard berger" AND pole_position = "michael schumacher"
What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?
CREATE TABLE table_name_50 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT MAX(grid) FROM table_name_77 WHERE driver = "patrick carpentier"
What was the highest grid for Patrick Carpentier?
CREATE TABLE table_name_77 (grid INTEGER, driver VARCHAR)
SELECT remarks FROM table_2015453_1 WHERE date = "8 October 2008"
What are the remarks for 8 October 2008?
CREATE TABLE table_2015453_1 (remarks VARCHAR, date VARCHAR)
SELECT score FROM table_name_85 WHERE record = "18–11–5"
Which Score has a Record of 18–11–5?
CREATE TABLE table_name_85 (score VARCHAR, record VARCHAR)
SELECT role_code FROM Project_Staff WHERE date_from > '2003-04-19 15:06:20' AND date_to < '2016-03-15 00:33:18'
What are the staff roles of the staff who
CREATE TABLE Project_Staff (role_code VARCHAR, date_from VARCHAR, date_to VARCHAR)
SELECT home_team FROM table_name_91 WHERE away_team = "stoke city"
Which home team played against Stoke City?
CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.1
How many ranks have a rebound average smaller than 6.1?
CREATE TABLE table_name_27 (rank VARCHAR, reb_avg INTEGER)
SELECT director FROM table_22265716_1 WHERE original_title = "Три летња дана"
Who directed the film with the original title of три летња дана?
CREATE TABLE table_22265716_1 (director VARCHAR, original_title VARCHAR)
SELECT _number FROM table_19534677_1 WHERE creators = "Bill Finger Edmond Hamilton Dick Sprang , et al."
Name the # for bill finger edmond hamilton dick sprang , et al.
CREATE TABLE table_19534677_1 (_number VARCHAR, creators VARCHAR)
SELECT 2012 FROM table_name_88 WHERE 2011 = "7.7%" AND 2008 = "7.9%"
What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?
CREATE TABLE table_name_88 (Id VARCHAR)
SELECT surface FROM table_name_42 WHERE partner = "robert haybittel"
What is the surface when the partner was Robert Haybittel?
CREATE TABLE table_name_42 (surface VARCHAR, partner VARCHAR)
SELECT venue FROM table_name_26 WHERE crowd > 33 OFFSET 642
Which venue exceeded a crowd size of 33,642?
CREATE TABLE table_name_26 (venue VARCHAR, crowd INTEGER)
SELECT AVG(extra_points) FROM table_name_35 WHERE points < 6
Whicih Extra points are the average ones that have Points smaller than 6?
CREATE TABLE table_name_35 (extra_points INTEGER, points INTEGER)
SELECT height_in_ft FROM table_11734041_16 WHERE no_s_ = "42" AND years_for_rockets = "1993-94"
What is the height in ft for number 42 for the rockets in 1993-94?
CREATE TABLE table_11734041_16 (height_in_ft VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR)
SELECT game FROM table_name_33 WHERE date = "april 28"
What game took place on April 28?
CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR)
SELECT 2001 FROM table_name_26 WHERE total > 1 AND 2009 = "8"
What is the year 2001 with a total larger than 1, and 2009 with 8?
CREATE TABLE table_name_26 (total VARCHAR)
SELECT team FROM table_name_28 WHERE car_no = "11"
What team operates car 11?
CREATE TABLE table_name_28 (team VARCHAR, car_no VARCHAR)
SELECT opponent FROM table_name_90 WHERE results¹ = "2:3"
Who did Yugoslavia play against that led to a result of 2:3?
CREATE TABLE table_name_90 (opponent VARCHAR, results¹ VARCHAR)
SELECT record FROM table_name_16 WHERE visitor = "rockets"
What was the record of the game where the Rockets were the visiting team?
CREATE TABLE table_name_16 (record VARCHAR, visitor VARCHAR)
SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs"
What is the average pick of the kansas city chiefs?
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
SELECT family_relations FROM table_name_20 WHERE throne_name = "303"
What are the family relations of the king with the throne name 303?
CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR)
SELECT COUNT(opponent) FROM table_21034801_1 WHERE record = "7-0"
How many opponents led to an exactly 7-0 record?
CREATE TABLE table_21034801_1 (opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_44 WHERE opponent = "atlanta hawks"
What is Score, when Opponent is Atlanta Hawks?
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_45 WHERE away_team = "carlton"
What date was the game when the away team was carlton?
CREATE TABLE table_name_45 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(studio) FROM table_11222744_3 WHERE catalog_number = "CAL03 / 0091037137333"
how many studios have the catalog number "cal03 / 0091037137333"?
CREATE TABLE table_11222744_3 (studio VARCHAR, catalog_number VARCHAR)
SELECT evening_gown FROM table_name_90 WHERE swimsuit > 9.51 AND country = "maryland"
Name the evening gown for swimsuit more than 9.51 for maryland
CREATE TABLE table_name_90 (evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT MAX(injured) FROM table_name_84 WHERE place = "rohtas, bihar" AND killed < 13
What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer than 13 were killed?
CREATE TABLE table_name_84 (injured INTEGER, place VARCHAR, killed VARCHAR)
SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "Charles Edward Bennett"
how many first elected with incumbent being charles edward bennett
CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)
SELECT MIN(draws) FROM table_name_4 WHERE wins < 4 AND losses = 14 AND against > 1836
What is the lowest draw that has less than 4 wins, 14 losses, and against more than 1836?
CREATE TABLE table_name_4 (draws INTEGER, against VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(team) FROM table_22056184_1 WHERE position = "7th"
How many teams have 7th position?
CREATE TABLE table_22056184_1 (team VARCHAR, position VARCHAR)
SELECT opponent FROM table_24918268_2 WHERE date = "Sunday, June 9"
Who are the opponents for games on Sunday, June 9?
CREATE TABLE table_24918268_2 (opponent VARCHAR, date VARCHAR)
SELECT save FROM table_18025024_7 WHERE score = "7-6"
How many saves were in the Georgia game, versus the Bulldogs, with a score of 7-6?
CREATE TABLE table_18025024_7 (save VARCHAR, score VARCHAR)
SELECT match FROM table_name_65 WHERE team = "skra warszawa"
What is the Match for skra warszawa?
CREATE TABLE table_name_65 (match VARCHAR, team VARCHAR)
SELECT tournament FROM table_name_59 WHERE opponent = "jung jae-sung lee yong-dae"
What tournament has an opponent jung jae-sung lee yong-dae?
CREATE TABLE table_name_59 (tournament VARCHAR, opponent VARCHAR)
SELECT participants_recipients FROM table_29644931_1 WHERE film_festival = "30th Hawaii International film_festival"
Which films participated in the 30th Hawaii International Film Festival?
CREATE TABLE table_29644931_1 (participants_recipients VARCHAR, film_festival VARCHAR)
SELECT SUM(first_elected) FROM table_name_66 WHERE result = "re-elected" AND district = "ohio 4"
In the Ohio 4 district, that is the first elected date that has a result of re-elected?
CREATE TABLE table_name_66 (first_elected INTEGER, result VARCHAR, district VARCHAR)
SELECT result FROM table_name_42 WHERE road_team = "los angeles" AND date = "april 17"
What is the result of the game on April 17 against Los Angeles?
CREATE TABLE table_name_42 (result VARCHAR, road_team VARCHAR, date VARCHAR)
SELECT driver FROM table_name_83 WHERE laps = 3 AND grid < 15
Which driver had 3 Laps and grids less than 15?
CREATE TABLE table_name_83 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT COUNT(not_out) FROM table_20367820_16 WHERE average = "56.38"
How many no outs for an average of 56.38?
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
SELECT SUM(pick__number) FROM table_name_92 WHERE round < 1
Name the sum of pick # for round less than 1
CREATE TABLE table_name_92 (pick__number INTEGER, round INTEGER)
SELECT opponent FROM table_name_27 WHERE attendance = "33,628"
Who is the opponent of the game with 33,628 folks in attendance?
CREATE TABLE table_name_27 (opponent VARCHAR, attendance VARCHAR)
SELECT class FROM table_name_74 WHERE call_sign = "wmhn"
Name the class with call sign of wmhn
CREATE TABLE table_name_74 (class VARCHAR, call_sign VARCHAR)
SELECT driver_s_ FROM table_name_57 WHERE owner_s_ = "bob keselowski"
Who is the Driver on Bob Keselowski's team?
CREATE TABLE table_name_57 (driver_s_ VARCHAR, owner_s_ VARCHAR)
SELECT length FROM table_name_4 WHERE composer_s_ = "sakdatorn" AND arranger_s_ = "jitrakorn mongkoltham"
What is the Length, when the Composer(s) is Sakdatorn, and when the Arranger(s) is Jitrakorn Mongkoltham?
CREATE TABLE table_name_4 (length VARCHAR, composer_s_ VARCHAR, arranger_s_ VARCHAR)
SELECT driver FROM table_2266762_1 WHERE team = "Richard Childress Racing" AND race_time = "2:58:22"
Who was the driver for the Richard Childress Racing team in the race with a time of 2:58:22?
CREATE TABLE table_2266762_1 (driver VARCHAR, team VARCHAR, race_time VARCHAR)
SELECT MIN(number) FROM table_name_79 WHERE home_club = "broomstones" AND year_end < 1999
Which Number has a Home Club of broomstones, and a Year End smaller than 1999?
CREATE TABLE table_name_79 (number INTEGER, home_club VARCHAR, year_end VARCHAR)
SELECT area__km²_ FROM table_name_8 WHERE pop__km² = 0.58
What is the area for a population of 0.58 km?
CREATE TABLE table_name_8 (area__km²_ VARCHAR, pop__km² VARCHAR)
SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock"
Which player has a Club/province of direito, less than 21 caps, and a Position of lock?
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR)
SELECT MAX(no_s__in_series) FROM table_27714985_1 WHERE written_by = "Gregory S. Malins"
What is the last episode in the series written by Gregory S. Malins?
CREATE TABLE table_27714985_1 (no_s__in_series INTEGER, written_by VARCHAR)
SELECT place FROM table_name_99 WHERE country = "australia"
What was Australia's place?
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR)
SELECT COUNT(simplified) FROM table_1204998_2 WHERE pinyin = "Xīnluó Qū"
When pinyin is xīnluó qū, what is the simplified value?
CREATE TABLE table_1204998_2 (simplified VARCHAR, pinyin VARCHAR)
SELECT AVG(silver) FROM table_name_35 WHERE gold > 2 AND rank = "1" AND bronze > 0
What is the average silver for golds over 2, ranks of 1, and bronzes over 0?
CREATE TABLE table_name_35 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT score FROM table_name_75 WHERE opponents = "lukáš dlouhý leander paes"
What was the score for the opponent lukáš dlouhý leander paes?
CREATE TABLE table_name_75 (score VARCHAR, opponents VARCHAR)
SELECT opponents FROM table_name_51 WHERE date = "26 october 1889"
what was the opponent on 26 october 1889?
CREATE TABLE table_name_51 (opponents VARCHAR, date VARCHAR)
SELECT winter FROM table_name_99 WHERE year = 1906
What is the Winter in 1906?
CREATE TABLE table_name_99 (winter VARCHAR, year VARCHAR)
SELECT winning_driver FROM table_name_96 WHERE winning_team = "opel team holzer 1" AND round < 9 AND fastest_lap = "bernd schneider"
Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?
CREATE TABLE table_name_96 (winning_driver VARCHAR, fastest_lap VARCHAR, winning_team VARCHAR, round VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE variant_id = "ACD'6A 3"
What is the 3'utr sequence with a variant id of acd'6a 3?
CREATE TABLE table_14332822_1 (variant_id VARCHAR)
SELECT record FROM table_name_1 WHERE date = "december 4"
What was their record on December 4?
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
SELECT MIN(birth_2012) FROM table_25703_2 WHERE death_2012 = 163
What were the total 2012 births when the 2012 deaths were 163?
CREATE TABLE table_25703_2 (birth_2012 INTEGER, death_2012 VARCHAR)