answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT opponent FROM table_name_24 WHERE attendance = "55,527"
|
CREATE TABLE table_name_24 (opponent VARCHAR, attendance VARCHAR)
|
Tell me the opponent for attendance of 55,527
|
SELECT aircraft FROM table_name_57 WHERE in_service = "2" AND origin = "united states" AND versions = "b-58"
|
CREATE TABLE table_name_57 (aircraft VARCHAR, versions VARCHAR, in_service VARCHAR, origin VARCHAR)
|
Which version B-58 aircraft model originated in the United States has 2 in service?
|
SELECT type FROM table_name_45 WHERE aircraft = "casa c-212 aviocar"
|
CREATE TABLE table_name_45 (type VARCHAR, aircraft VARCHAR)
|
What aircraft type is the Casa C-212 Aviocar?
|
SELECT in_service FROM table_name_64 WHERE versions = "t-260 eu"
|
CREATE TABLE table_name_64 (in_service VARCHAR, versions VARCHAR)
|
How many T-260 EU aircrafts are currently in service?
|
SELECT in_service FROM table_name_12 WHERE origin = "brazil" AND versions = "c-95"
|
CREATE TABLE table_name_12 (in_service VARCHAR, origin VARCHAR, versions VARCHAR)
|
How many C-95 aircrafts originating in Brazil are currently in service?
|
SELECT MIN(other) FROM table_name_47 WHERE albanians > 8793 AND roma < 1030
|
CREATE TABLE table_name_47 (other INTEGER, albanians VARCHAR, roma VARCHAR)
|
Tell me the lowest other for albanians more than 8793 and Roma less than 1030
|
SELECT MAX(bosniaks) FROM table_name_8 WHERE census_year > 2002
|
CREATE TABLE table_name_8 (bosniaks INTEGER, census_year INTEGER)
|
Tell me the highest bosniaks for year more than 2002
|
SELECT MIN(erp_w) FROM table_name_21 WHERE frequency_mhz < 103.1
|
CREATE TABLE table_name_21 (erp_w INTEGER, frequency_mhz INTEGER)
|
Name the lowest ERP W with a frequency mhz less than 103.1
|
SELECT city_of_license FROM table_name_92 WHERE frequency_mhz = 103.1 AND erp_w < 80
|
CREATE TABLE table_name_92 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
|
Name the city with 103.1 frequency and ERP W less than 80
|
SELECT affiliation FROM table_name_33 WHERE pick__number < 59 AND position = "gk"
|
CREATE TABLE table_name_33 (affiliation VARCHAR, pick__number VARCHAR, position VARCHAR)
|
Tell me the affiliation for pick number less than 59 and position of gk
|
SELECT 1998 FROM table_name_97 WHERE tournament = "canada"
|
CREATE TABLE table_name_97 (tournament VARCHAR)
|
What Tournament of canada happened in 1998?
|
SELECT 1993 FROM table_name_67 WHERE 1990 = "2–2"
|
CREATE TABLE table_name_67 (Id VARCHAR)
|
Who had 1990 of 2–2 in 1993?
|
SELECT 1996 FROM table_name_45 WHERE 1987 = "nme" AND tournament = "monte carlo"
|
CREATE TABLE table_name_45 (tournament VARCHAR)
|
What Tournament of monte carlo had 1996 and a 1987 of nme?
|
SELECT 2004 FROM table_name_58 WHERE 1998 = "2r" AND tournament = "french open"
|
CREATE TABLE table_name_58 (tournament VARCHAR)
|
What Tournament of the french open had 2004 that has a 1998 of 2r?
|
SELECT margin FROM table_name_18 WHERE championship = "nabisco championship"
|
CREATE TABLE table_name_18 (margin VARCHAR, championship VARCHAR)
|
What is the margin at the Nabisco Championship?
|
SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship"
|
CREATE TABLE table_name_88 (margin VARCHAR, year VARCHAR, championship VARCHAR)
|
What was the margin in 2001 at the McDonald's LPGA Championship?
|
SELECT date FROM table_name_5 WHERE goal = 5
|
CREATE TABLE table_name_5 (date VARCHAR, goal VARCHAR)
|
Tell me the date of goal 5
|
SELECT date FROM table_name_17 WHERE goal = 5
|
CREATE TABLE table_name_17 (date VARCHAR, goal VARCHAR)
|
Tell me the date for goal of 5
|
SELECT result FROM table_name_33 WHERE location = "sopot (pol)"
|
CREATE TABLE table_name_33 (result VARCHAR, location VARCHAR)
|
What was the result of Sopot (pol)?
|
SELECT division FROM table_name_39 WHERE open_cup = "2nd round"
|
CREATE TABLE table_name_39 (division VARCHAR, open_cup VARCHAR)
|
Which division was the Rampage in when they were in the 2nd round in the Open Cup?
|
SELECT reg_season FROM table_name_12 WHERE year = 1997
|
CREATE TABLE table_name_12 (reg_season VARCHAR, year VARCHAR)
|
What was the Rampage's regular season in 1997?
|
SELECT open_cup FROM table_name_98 WHERE playoffs = "2nd round"
|
CREATE TABLE table_name_98 (open_cup VARCHAR, playoffs VARCHAR)
|
What was the Rampage's status in the Open Cup in the year that they made it to the 2nd round of the playoffs?
|
SELECT playoffs FROM table_name_38 WHERE reg_season = "4th, central"
|
CREATE TABLE table_name_38 (playoffs VARCHAR, reg_season VARCHAR)
|
What was the Rampage's result in the playoffs in the year that their regular season resulted in 4th, central?
|
SELECT method FROM table_name_77 WHERE result = "win" AND opponent = "ed mahone"
|
CREATE TABLE table_name_77 (method VARCHAR, result VARCHAR, opponent VARCHAR)
|
Which method resulting in a win against Ed Mahone?
|
SELECT date FROM table_name_24 WHERE method = "technical knockout" AND opponent = "fatu tuimanono"
|
CREATE TABLE table_name_24 (date VARCHAR, method VARCHAR, opponent VARCHAR)
|
When did the technical knockout against Fatu Tuimanono happen?
|
SELECT date FROM table_name_53 WHERE method = "knockout" AND round > 2 AND opponent = "barry prior"
|
CREATE TABLE table_name_53 (date VARCHAR, opponent VARCHAR, method VARCHAR, round VARCHAR)
|
When did the opponent knockout Barry Prior in more than 2 rounds?
|
SELECT result FROM table_name_19 WHERE round > 4 AND opponent = "ed mahone"
|
CREATE TABLE table_name_19 (result VARCHAR, round VARCHAR, opponent VARCHAR)
|
What resulted after 4 rounds with Ed Mahone?
|
SELECT region FROM table_name_8 WHERE state = "georgia"
|
CREATE TABLE table_name_8 (region VARCHAR, state VARCHAR)
|
Tell me the region for georgia
|
SELECT host FROM table_name_85 WHERE region = "midwest" AND venue = "thomas assembly center"
|
CREATE TABLE table_name_85 (host VARCHAR, region VARCHAR, venue VARCHAR)
|
Tell me the host for midwest thomas assembly center
|
SELECT region FROM table_name_10 WHERE venue = "frank erwin center"
|
CREATE TABLE table_name_10 (region VARCHAR, venue VARCHAR)
|
Tell me the region for frank erwin center
|
SELECT score FROM table_name_35 WHERE competition = "vfl reserves" AND venue = "mcg" AND year = "1971"
|
CREATE TABLE table_name_35 (score VARCHAR, year VARCHAR, competition VARCHAR, venue VARCHAR)
|
In 1971 at MCG, what was the score of the VFL Reserves?
|
SELECT score FROM table_name_45 WHERE opponent = "richmond"
|
CREATE TABLE table_name_45 (score VARCHAR, opponent VARCHAR)
|
What was the score when Richmond was the opponent?
|
SELECT venue FROM table_name_62 WHERE score = "18.6 (114) - 21.14 (140)"
|
CREATE TABLE table_name_62 (venue VARCHAR, score VARCHAR)
|
Where was the match with a score of 18.6 (114) - 21.14 (140)?
|
SELECT opponent FROM table_name_7 WHERE competition = "vfl reserves" AND score = "18.6 (114) - 21.14 (140)"
|
CREATE TABLE table_name_7 (opponent VARCHAR, competition VARCHAR, score VARCHAR)
|
At the VFL Reserves, who was the opponent when the score was 18.6 (114) - 21.14 (140)?
|
SELECT venue FROM table_name_51 WHERE score = "4.10 (34) - 8.12 (60)"
|
CREATE TABLE table_name_51 (venue VARCHAR, score VARCHAR)
|
Where was the match with a score of 4.10 (34) - 8.12 (60)?
|
SELECT bbc_two_total_viewing FROM table_name_57 WHERE year = "1999"
|
CREATE TABLE table_name_57 (bbc_two_total_viewing VARCHAR, year VARCHAR)
|
How much is the total BBC 2 viewing in 1999?
|
SELECT bbc_two_rank FROM table_name_53 WHERE year = "2005"
|
CREATE TABLE table_name_53 (bbc_two_rank VARCHAR, year VARCHAR)
|
What was the rank of BBC 2 in 2005?
|
SELECT bbc_two_rank FROM table_name_2 WHERE bbc_one_rank = "1st" AND bbc_one_total_viewing = "9,840,000"
|
CREATE TABLE table_name_2 (bbc_two_rank VARCHAR, bbc_one_rank VARCHAR, bbc_one_total_viewing VARCHAR)
|
What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9,840,000?
|
SELECT year FROM table_name_51 WHERE bbc_two_rank = "13th"
|
CREATE TABLE table_name_51 (year VARCHAR, bbc_two_rank VARCHAR)
|
In what year was BBC 2 13th in rank?
|
SELECT goals FROM table_name_13 WHERE caps > 8 AND player = "stein huysegems"
|
CREATE TABLE table_name_13 (goals VARCHAR, caps VARCHAR, player VARCHAR)
|
How many goals occurred for Stein Huysegems when the caps value is more than 8?
|
SELECT MAX(caps) FROM table_name_50 WHERE player = "glen moss"
|
CREATE TABLE table_name_50 (caps INTEGER, player VARCHAR)
|
What is the largest caps value for Glen Moss?
|
SELECT MIN(year_of_recording) FROM table_name_63 WHERE orchestra = "royal philharmonic orchestra" AND record_company = "decca records"
|
CREATE TABLE table_name_63 (year_of_recording INTEGER, orchestra VARCHAR, record_company VARCHAR)
|
What is the oldest year that the Royal Philharmonic Orchestra released a record with Decca Records?
|
SELECT format FROM table_name_34 WHERE conductor = "erich leinsdorf"
|
CREATE TABLE table_name_34 (format VARCHAR, conductor VARCHAR)
|
What format was conductor Erich Leinsdorf's album released on?
|
SELECT record_company FROM table_name_48 WHERE year_of_recording = 1964 AND format = "cd"
|
CREATE TABLE table_name_48 (record_company VARCHAR, year_of_recording VARCHAR, format VARCHAR)
|
What record company released a CD in 1964?
|
SELECT division FROM table_name_73 WHERE playoffs = "finalist" AND open_cup = "3rd round"
|
CREATE TABLE table_name_73 (division VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
|
What division has finalist playoffs and was 3rd round Open Cup?
|
SELECT year FROM table_name_21 WHERE reg_season = "8th" AND open_cup = "3rd round"
|
CREATE TABLE table_name_21 (year VARCHAR, reg_season VARCHAR, open_cup VARCHAR)
|
What year was the team 8th in the season and made it to the 3rd round in Open Cup?
|
SELECT launch_date_time__utc_ FROM table_name_57 WHERE payload = "gsat-4"
|
CREATE TABLE table_name_57 (launch_date_time__utc_ VARCHAR, payload VARCHAR)
|
Tell me the launch date/time for payload of gsat-4
|
SELECT launch_pad FROM table_name_16 WHERE launch_date_time__utc_ = "25 december 2010 10:34"
|
CREATE TABLE table_name_16 (launch_pad VARCHAR, launch_date_time__utc_ VARCHAR)
|
Tell me the launch pad for 25 december 2010 10:34
|
SELECT name FROM table_name_16 WHERE rank > 48 AND last = 2005
|
CREATE TABLE table_name_16 (name VARCHAR, rank VARCHAR, last VARCHAR)
|
Who had a rank more than 48, and a last in 2005?
|
SELECT name FROM table_name_32 WHERE rank > 17 AND confederation = "uefa" AND caps = 114
|
CREATE TABLE table_name_32 (name VARCHAR, caps VARCHAR, rank VARCHAR, confederation VARCHAR)
|
Which UEFA confederation member had a rank more than 17 and caps of 114?
|
SELECT result FROM table_name_68 WHERE date = "july 16, 2000"
|
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR)
|
Tell me the result of july 16, 2000
|
SELECT MAX(caps) FROM table_name_5 WHERE goals = 0 AND rank = 15
|
CREATE TABLE table_name_5 (caps INTEGER, goals VARCHAR, rank VARCHAR)
|
What is the maximum cap number where 0 goals were scored with a rank of 15?
|
SELECT MIN(guns) FROM table_name_32 WHERE class = "frigate" AND year = "1815"
|
CREATE TABLE table_name_32 (guns INTEGER, class VARCHAR, year VARCHAR)
|
What were the fewest amount of guns possessed by a frigate that served in 1815?
|
SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = "321,000"
|
CREATE TABLE table_name_86 (place INTEGER, units_sold_in_the_uk VARCHAR)
|
Of the games that sold 321,000 units in the UK, what is their average place?
|
SELECT units_sold_in_the_us FROM table_name_72 WHERE units_sold_in_japan = "346,000"
|
CREATE TABLE table_name_72 (units_sold_in_the_us VARCHAR, units_sold_in_japan VARCHAR)
|
How many units were sold in the US of the game that sold 346,000 units in japan?
|
SELECT player FROM table_name_64 WHERE mls_team = "dallas burn"
|
CREATE TABLE table_name_64 (player VARCHAR, mls_team VARCHAR)
|
Tell me the player from dallas burn
|
SELECT SUM(pick__number) FROM table_name_40 WHERE player = "kenny arena"
|
CREATE TABLE table_name_40 (pick__number INTEGER, player VARCHAR)
|
Tell me the sum of pick number for kenny arena
|
SELECT city FROM table_name_7 WHERE host = "northeast louisiana university"
|
CREATE TABLE table_name_7 (city VARCHAR, host VARCHAR)
|
What city is the Northeast Louisiana University located in?
|
SELECT region FROM table_name_16 WHERE city = "philadelphia"
|
CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)
|
What region is the city of Philadelphia located in?
|
SELECT venue FROM table_name_73 WHERE city = "long beach"
|
CREATE TABLE table_name_73 (venue VARCHAR, city VARCHAR)
|
What venue is in Long Beach?
|
SELECT state FROM table_name_76 WHERE region = "mideast" AND city = "knoxville"
|
CREATE TABLE table_name_76 (state VARCHAR, region VARCHAR, city VARCHAR)
|
What state is Knoxville and the mideast region located in?
|
SELECT host FROM table_name_51 WHERE state = "georgia"
|
CREATE TABLE table_name_51 (host VARCHAR, state VARCHAR)
|
What is the host in Georgia?
|
SELECT state FROM table_name_91 WHERE host = "university of tennessee"
|
CREATE TABLE table_name_91 (state VARCHAR, host VARCHAR)
|
What state is the University of Tennessee located in?
|
SELECT date FROM table_name_26 WHERE week > 3 AND result = "w 28-27"
|
CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR)
|
Tell me the date that has a week larger than 3 and a result of w 28-27
|
SELECT SUM(attendance) FROM table_name_64 WHERE result = "w 12-3" AND week > 12
|
CREATE TABLE table_name_64 (attendance INTEGER, result VARCHAR, week VARCHAR)
|
Tell me the sum of attendane for a result of w 12-3 and week more than 12
|
SELECT COUNT(attendance) FROM table_name_3 WHERE result = "l 18-6"
|
CREATE TABLE table_name_3 (attendance VARCHAR, result VARCHAR)
|
Tell me the total number of attendance for result of l 18-6
|
SELECT COUNT(attendance) FROM table_name_12 WHERE week = 16
|
CREATE TABLE table_name_12 (attendance VARCHAR, week VARCHAR)
|
Tell me the total number of attendance for week of 16
|
SELECT SUM(bronze) FROM table_name_37 WHERE total = 4 AND silver < 3
|
CREATE TABLE table_name_37 (bronze INTEGER, total VARCHAR, silver VARCHAR)
|
How many bronzes were held by those with a total of 4 and less than 3 silvers.
|
SELECT SUM(round) FROM table_name_4 WHERE event = "ifl: oakland"
|
CREATE TABLE table_name_4 (round INTEGER, event VARCHAR)
|
How many rounds did the IFL: Oakland event have?
|
SELECT opponent FROM table_name_83 WHERE record = "3-0"
|
CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR)
|
Which opponent has a record of 3-0?
|
SELECT constructor FROM table_name_10 WHERE driver = "david coulthard"
|
CREATE TABLE table_name_10 (constructor VARCHAR, driver VARCHAR)
|
Tell me the constructor for david coulthard
|
SELECT pos FROM table_name_75 WHERE driver = "adrian sutil"
|
CREATE TABLE table_name_75 (pos VARCHAR, driver VARCHAR)
|
Tell me the pos for adrian sutil
|
SELECT part_1 FROM table_name_60 WHERE grid = "1"
|
CREATE TABLE table_name_60 (part_1 VARCHAR, grid VARCHAR)
|
Tell me the part 1 of grid of 1
|
SELECT city_of_license FROM table_name_7 WHERE call_sign = "k215es"
|
CREATE TABLE table_name_7 (city_of_license VARCHAR, call_sign VARCHAR)
|
Name the city of license for call sign of k215es
|
SELECT fcc_info FROM table_name_51 WHERE call_sign = "k208eq"
|
CREATE TABLE table_name_51 (fcc_info VARCHAR, call_sign VARCHAR)
|
Name the FCC info for call sign of k208eq
|
SELECT COUNT(date) FROM table_name_94 WHERE surface = "carpet"
|
CREATE TABLE table_name_94 (date VARCHAR, surface VARCHAR)
|
Tell me the total number of date for carpet
|
SELECT opponent_in_the_final FROM table_name_29 WHERE score_in_the_final = "6–2, 3–6, 4–6"
|
CREATE TABLE table_name_29 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
|
Tell me the opponent for 6–2, 3–6, 4–6
|
SELECT nationality FROM table_name_62 WHERE player = "martin lewis"
|
CREATE TABLE table_name_62 (nationality VARCHAR, player VARCHAR)
|
What is the nationality of Martin Lewis?
|
SELECT opponent FROM table_name_59 WHERE week = 14
|
CREATE TABLE table_name_59 (opponent VARCHAR, week VARCHAR)
|
Tell me the opponent of week 14
|
SELECT AVG(attendance) FROM table_name_58 WHERE week = 11
|
CREATE TABLE table_name_58 (attendance INTEGER, week VARCHAR)
|
Tell me the average attendance for week of 11
|
SELECT opponent FROM table_name_96 WHERE result = "w 33-31"
|
CREATE TABLE table_name_96 (opponent VARCHAR, result VARCHAR)
|
Tell me opponent for result of w 33-31
|
SELECT name FROM table_name_61 WHERE route_of_administration = "oral or iv" AND investigation = "thyroid imaging thyroid metastases imaging"
|
CREATE TABLE table_name_61 (name VARCHAR, route_of_administration VARCHAR, investigation VARCHAR)
|
What Name is administered by oral or iv, and is being investigated for thyroid imaging thyroid metastases imaging?
|
SELECT owner FROM table_name_5 WHERE call_sign = "cjgx"
|
CREATE TABLE table_name_5 (owner VARCHAR, call_sign VARCHAR)
|
Who is the owner with a call sign of cjgx?
|
SELECT owner FROM table_name_78 WHERE branding = "gx94"
|
CREATE TABLE table_name_78 (owner VARCHAR, branding VARCHAR)
|
Who is the owner of the branding gx94?
|
SELECT frequency FROM table_name_28 WHERE call_sign = "cjjc-fm"
|
CREATE TABLE table_name_28 (frequency VARCHAR, call_sign VARCHAR)
|
What is the call frequency sign of cjjc-fm?
|
SELECT owner FROM table_name_48 WHERE branding = "fox fm"
|
CREATE TABLE table_name_48 (owner VARCHAR, branding VARCHAR)
|
Who is the owner with the branding fox fm?
|
SELECT frequency FROM table_name_74 WHERE branding = "cbc radio 2"
|
CREATE TABLE table_name_74 (frequency VARCHAR, branding VARCHAR)
|
What is the branding frequency of cbc radio 2?
|
SELECT location FROM table_name_31 WHERE altitude__metres_ < 6102
|
CREATE TABLE table_name_31 (location VARCHAR, altitude__metres_ INTEGER)
|
Tell me the location for altitude being less thaan 6102
|
SELECT region FROM table_name_97 WHERE altitude__metres_ = 6854
|
CREATE TABLE table_name_97 (region VARCHAR, altitude__metres_ VARCHAR)
|
Say the region for 6854 altitudes
|
SELECT frequency FROM table_name_59 WHERE number = 161
|
CREATE TABLE table_name_59 (frequency VARCHAR, number VARCHAR)
|
What is the frequency of number 161?
|
SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3
|
CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)
|
What is the frequency of number 3 with a bus station origin?
|
SELECT origin FROM table_name_66 WHERE number > 161
|
CREATE TABLE table_name_66 (origin VARCHAR, number INTEGER)
|
What is the origin of the one with a number larger than 161?
|
SELECT origin FROM table_name_15 WHERE final_destination = "brandholmen"
|
CREATE TABLE table_name_15 (origin VARCHAR, final_destination VARCHAR)
|
What is the origin of the one whose final destination is Brandholmen?
|
SELECT MAX(place) FROM table_name_70 WHERE time = "1:19.02.8"
|
CREATE TABLE table_name_70 (place INTEGER, time VARCHAR)
|
What is the highest rank of a rider whose time was 1:19.02.8?
|
SELECT revised FROM table_name_48 WHERE mccune_reischauer = "yŏn (s) ryŏn (n)"
|
CREATE TABLE table_name_48 (revised VARCHAR, mccune_reischauer VARCHAR)
|
Tell me the revised of mccune reischauer of yŏn (s) ryŏn (n)
|
SELECT hanja FROM table_name_77 WHERE hangul = "주"
|
CREATE TABLE table_name_77 (hanja VARCHAR, hangul VARCHAR)
|
Name the hanja for hangul of 주
|
SELECT hanja FROM table_name_85 WHERE revised = "eum"
|
CREATE TABLE table_name_85 (hanja VARCHAR, revised VARCHAR)
|
Tell me the hanja of eum
|
SELECT model FROM table_name_89 WHERE released = 2005
|
CREATE TABLE table_name_89 (model VARCHAR, released VARCHAR)
|
What model was released in 2005?
|
SELECT score FROM table_name_15 WHERE date = "9 may 2001"
|
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR)
|
Tell me the score for 9 may 2001
|
SELECT competition FROM table_name_43 WHERE date = "25 march 2001"
|
CREATE TABLE table_name_43 (competition VARCHAR, date VARCHAR)
|
Tell me the competition for 25 march 2001
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.