answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT result FROM table_name_19 WHERE competition = "2007 afc asian cup"
What is the result of the 2007 AFC asian cup?
CREATE TABLE table_name_19 (result VARCHAR, competition VARCHAR)
SELECT rank_points FROM table_name_85 WHERE event = "wc rio de janeiro" AND total = "16"
The event WC Rio De Janeiro with a total of 16 has what as rank points?
CREATE TABLE table_name_85 (rank_points VARCHAR, event VARCHAR, total VARCHAR)
SELECT draw FROM table_name_57 WHERE match = "8" AND team = "lpż gdańsk"
What was the draw for Lpż Gdańsk with a match of 8?
CREATE TABLE table_name_57 (draw VARCHAR, match VARCHAR, team VARCHAR)
SELECT AVG(rank) FROM table_name_67 WHERE date = "february 11, 2012" AND attendance < 18 OFFSET 735
What's the rank for February 11, 2012 with less than 18,735 in attendance?
CREATE TABLE table_name_67 (rank INTEGER, date VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_60 WHERE winner = "keith clearwater (1)"
What is the score from the winner Keith Clearwater (1)?
CREATE TABLE table_name_60 (score VARCHAR, winner VARCHAR)
SELECT test_career FROM table_name_98 WHERE player = "mushfiqur rahim"
When was Mushfiqur Rahim's test career?
CREATE TABLE table_name_98 (test_career VARCHAR, player VARCHAR)
SELECT indianapolis_concerts FROM table_17085724_1 WHERE brighton_cast = "Paul Baker"
Name the indianapolis concerts for paul baker
CREATE TABLE table_17085724_1 (indianapolis_concerts VARCHAR, brighton_cast VARCHAR)
SELECT COUNT(written_by) FROM table_18268826_1 WHERE us_viewers__million_ = "3.24"
How many episodes by different writers were seen by 3.24 million people in the US?
CREATE TABLE table_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT incumbent FROM table_1341865_20 WHERE district = "Louisiana 7"
Who was the winner in the Louisiana 7 district?
CREATE TABLE table_1341865_20 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_84 WHERE opponent_in_the_final = "wen-hsin hsu"
What date did Namigata play against Wen-Hsin Hsu in the finals?
CREATE TABLE table_name_84 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch")
How many countries speak both English and Dutch?
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
SELECT original_air_date FROM table_18712423_3 WHERE directed_by = "Ian Barry" AND written_by = "Philip Dalkin"
What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?
CREATE TABLE table_18712423_3 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT initial_release_date FROM table_12744399_1 WHERE developer = "Microvision"
When was the game developed by Microvision released?
CREATE TABLE table_12744399_1 (initial_release_date VARCHAR, developer VARCHAR)
SELECT median_age__in_2006_ FROM table_1174162_1 WHERE area__km²_ = "1.7"
What is the median age where the area is 1.7?
CREATE TABLE table_1174162_1 (median_age__in_2006_ VARCHAR, area__km²_ VARCHAR)
SELECT MIN(pos) FROM table_19412902_2 WHERE points__total_500_ = 279
At what position is the association with 279 points?
CREATE TABLE table_19412902_2 (pos INTEGER, points__total_500_ VARCHAR)
SELECT engine FROM table_name_76 WHERE year = "1999"
What engine was used in 1999?
CREATE TABLE table_name_76 (engine VARCHAR, year VARCHAR)
SELECT 2 AS nd_leg FROM table_name_50 WHERE team_1 = "ermis aradippou"
What is the 2nd leg when Ermis Aradippou is the first team?
CREATE TABLE table_name_50 (team_1 VARCHAR)
SELECT coach FROM table_name_6 WHERE location = "port pirie"
Who is the coach of the team from Port Pirie?
CREATE TABLE table_name_6 (coach VARCHAR, location VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE date_in_service = "2005"
Who was the turbine manufacturer of the wind farm that started service on 2005?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, date_in_service VARCHAR)
SELECT ryuji_hijikata FROM table_name_72 WHERE block_a = "ryuji hijikata"
Tell me the Ryuji Hijikata for Block A of Ryuji Hijikata
CREATE TABLE table_name_72 (ryuji_hijikata VARCHAR, block_a VARCHAR)
SELECT MIN(total) FROM table_19439864_2
What is the lowest total?
CREATE TABLE table_19439864_2 (total INTEGER)
SELECT rd FROM table_1132568_3 WHERE fastest_lap = "Michael Schumacher" AND constructor = "Ferrari" AND pole_position = "Michael Schumacher"
What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?
CREATE TABLE table_1132568_3 (rd VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
SELECT date FROM table_name_20 WHERE winner = "km (mi)"
What was the date with a winner of km (mi)?
CREATE TABLE table_name_20 (date VARCHAR, winner VARCHAR)
SELECT yam_[y_] FROM table_name_48 WHERE soybean__green__[f_] = "0" AND potato_[d_] = "0.01"
What is the yam amount with amount of soybean 0 and potato of 0.01?
CREATE TABLE table_name_48 (yam_ VARCHAR, y_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
SELECT incumbent FROM table_19753079_36 WHERE district = "North Carolina 9"
Name the incumbent for north carolina 9
CREATE TABLE table_19753079_36 (incumbent VARCHAR, district VARCHAR)
SELECT MIN(wins) FROM table_name_99 WHERE season < 1920 AND losses < 14
Which Wins is the lowest one that has a Season smaller than 1920, and Losses smaller than 14?
CREATE TABLE table_name_99 (wins INTEGER, season VARCHAR, losses VARCHAR)
SELECT 2012 FROM table_name_55 WHERE tournament = "french open"
What is 2012, when Tournament is "French Open"?
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT score FROM table_name_54 WHERE runner_up = "richard krajicek"
what is the score when the runner-up is richard krajicek?
CREATE TABLE table_name_54 (score VARCHAR, runner_up VARCHAR)
SELECT record FROM table_22871316_6 WHERE high_points = "Carlos Delfino (17)"
What's the record of the game in which Carlos Delfino (17) did the most high points?
CREATE TABLE table_22871316_6 (record VARCHAR, high_points VARCHAR)
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north melbourne"
What was the home team score at North Melbourne's away game?
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR)
SELECT movie_album FROM table_2528382_1 WHERE song = "Dil De De Nahin Nahin Dil Le Le"
In which album can Dil De De Nahin Nahin Dil Le Le be found?
CREATE TABLE table_2528382_1 (movie_album VARCHAR, song VARCHAR)
SELECT performance FROM table_name_39 WHERE test_standard = "bs en779" AND particulate_size_approaching_100_percentage_retention = ">2µm" AND class = "f6"
Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2µm, and a Class of f6?
CREATE TABLE table_name_39 (performance VARCHAR, class VARCHAR, test_standard VARCHAR, particulate_size_approaching_100_percentage_retention VARCHAR)
SELECT water_park FROM table_name_72 WHERE rank = 20
what is the water park with the rank 20?
CREATE TABLE table_name_72 (water_park VARCHAR, rank VARCHAR)
SELECT COUNT(loses) FROM table_16034882_2 WHERE goals_scored = 37
How many games were lost when the goals scored was 37?
CREATE TABLE table_16034882_2 (loses VARCHAR, goals_scored VARCHAR)
SELECT MAX(bronze) FROM table_name_89 WHERE rank > 5 AND nation = "chinese taipei" AND total < 1
Which is the highest bronze at Chinese Taipei when the rank was higher than 5 and total was smaller than 1?
CREATE TABLE table_name_89 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "mcg"
What was the date of the game at MCG?
CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_1 WHERE visitor = "bulls"
When has a Visitor of bulls?
CREATE TABLE table_name_1 (date VARCHAR, visitor VARCHAR)
SELECT archive FROM table_2112766_1 WHERE run_time = "24:34"
how many archive were when run time is 24:34
CREATE TABLE table_2112766_1 (archive VARCHAR, run_time VARCHAR)
SELECT premiers FROM table_name_16 WHERE points = 38 AND score = "38-0"
What is the premier team that has 38 points and won with a score of 38-0?
CREATE TABLE table_name_16 (premiers VARCHAR, points VARCHAR, score VARCHAR)
SELECT moving_from FROM table_name_64 WHERE country = "esp" AND transfer_fee = "youth system"
What is moving from esp with transfer fee of youth system?
CREATE TABLE table_name_64 (moving_from VARCHAR, country VARCHAR, transfer_fee VARCHAR)
SELECT season FROM table_name_57 WHERE name = "tony boy espinosa"
What is Season, when Name is Tony Boy Espinosa?
CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR)
SELECT state FROM table_name_66 WHERE royal_house = "ying"
Which state has a royal house of Ying?
CREATE TABLE table_name_66 (state VARCHAR, royal_house VARCHAR)
SELECT margin_of_victory FROM table_name_93 WHERE tournament = "women's kemper open"
What is Margin of Victory, when Tournament is "Women's Kemper Open"?
CREATE TABLE table_name_93 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT COUNT(attendance) FROM table_name_16 WHERE result = "l 24-20" AND week < 5
What is the total attendance in a week less than 5 when the result was l 24-20?
CREATE TABLE table_name_16 (attendance VARCHAR, result VARCHAR, week VARCHAR)
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926
What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?
CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR)
SELECT school FROM table_11044765_1 WHERE mascot = "Raiders"
Which school has the Raiders as their mascot?
CREATE TABLE table_11044765_1 (school VARCHAR, mascot VARCHAR)
SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63
what is the total number of played when the goals for is more than 34 and goals against is more than 63?
CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
SELECT MAX(goals_for) FROM table_name_2 WHERE team = "cheadle town" AND drawn > 7
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?
CREATE TABLE table_name_2 (goals_for INTEGER, team VARCHAR, drawn VARCHAR)
SELECT notes FROM table_242785_3 WHERE date_founded__founder = "57 BC Caesar"
What are the notes during 57 bc caesar?
CREATE TABLE table_242785_3 (notes VARCHAR, date_founded__founder VARCHAR)
SELECT COUNT(november) FROM table_name_50 WHERE game > 14 AND opponent = "minnesota wild"
How many Novembers have a Game larger than 14, and an Opponent of minnesota wild?
CREATE TABLE table_name_50 (november VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT COUNT(till_mathura) FROM table_19787093_1 WHERE till_agra = 500
How many have the Till Agra of 500?
CREATE TABLE table_19787093_1 (till_mathura VARCHAR, till_agra VARCHAR)
SELECT SUM(fac___lc_apps) FROM table_name_11 WHERE pl_apps < 25 AND UEfa_yc < 0
What is the sum of the FAC/LC apps with less than 25 PC apps and a UEFA YC less than 0?
CREATE TABLE table_name_11 (fac___lc_apps INTEGER, pl_apps VARCHAR, UEfa_yc VARCHAR)
SELECT location FROM table_11044765_1 WHERE mascot = "Miners"
What city and state are the miners located in?
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)
SELECT no_of_sikhs FROM table_11800185_1 WHERE country = "Japan"
What is the number of sikhs in Japan?
CREATE TABLE table_11800185_1 (no_of_sikhs VARCHAR, country VARCHAR)
SELECT date FROM table_13258806_2 WHERE record = "0-1"
When was the record of 0-1 set?
CREATE TABLE table_13258806_2 (date VARCHAR, record VARCHAR)
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
In the games at corio oval, what was the highest crowd?
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
SELECT birthdate FROM table_name_29 WHERE name = "leon tuck"
What is the Birthdate of leon tuck?
CREATE TABLE table_name_29 (birthdate VARCHAR, name VARCHAR)
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
Who was the previous champion of the title won on July 7, 2010?
CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_7 WHERE population__2002_ = 14250
What is the population (1991) where population (2002) was 14250?
CREATE TABLE table_2562572_7 (population__1991_ VARCHAR, population__2002_ VARCHAR)
SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8
Name the highest total for the tournament more than 0 and regular season after 8
CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR)
SELECT original_air_date FROM table_26914076_3 WHERE directed_by = "Rob Bailey"
What is the date the episode directed by rob bailey aired?
CREATE TABLE table_26914076_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT AVG(top_10) FROM table_name_68 WHERE starts = 2 AND winnings = "$135,984" AND avg_finish > 43
What is the average top 10 score for 2 starts, winnings of $135,984 and an average finish more than 43?
CREATE TABLE table_name_68 (top_10 INTEGER, avg_finish VARCHAR, starts VARCHAR, winnings VARCHAR)
SELECT level FROM table_name_26 WHERE leading_scorer_1 = "tom greaves 8"
Which Level has a Leading scorer 1 of tom greaves 8?
CREATE TABLE table_name_26 (level VARCHAR, leading_scorer_1 VARCHAR)
SELECT SUM(attendance) FROM table_name_49 WHERE location = "ebbets field" AND time = "2:56" AND game > 6
Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance?
CREATE TABLE table_name_49 (attendance INTEGER, game VARCHAR, location VARCHAR, time VARCHAR)
SELECT team FROM table_name_1 WHERE circuit = "phillip island grand prix circuit"
What is Team, when Circuit is Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_1 (team VARCHAR, circuit VARCHAR)
SELECT series_ep FROM table_15187735_17 WHERE segment_a = "Rolled Wafers"
are rolled wafers in many episodes
CREATE TABLE table_15187735_17 (series_ep VARCHAR, segment_a VARCHAR)
SELECT AVG(points) FROM table_name_36 WHERE played = 9 AND name = "ev pegnitz" AND position > 1
what is the average points when played is 9, name is ev pegnitz and position is larger than 1?
CREATE TABLE table_name_36 (points INTEGER, position VARCHAR, played VARCHAR, name VARCHAR)
SELECT game_site FROM table_24481478_1 WHERE attendance = 29753
At which location did 29753 fans show up to watch the game?
CREATE TABLE table_24481478_1 (game_site VARCHAR, attendance VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE game = "the elder scrolls v: skyrim"
What is the lowest year for the game called The Elder Scrolls v: Skyrim?
CREATE TABLE table_name_99 (year INTEGER, game VARCHAR)
SELECT nation FROM table_name_38 WHERE bronze > 3 AND gold = 0 AND total = 9
What nation had more than 3 bronze, 0 gold, and a total of 9?
CREATE TABLE table_name_38 (nation VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT first_air_date FROM table_28980706_4 WHERE rating__18_49_ = "4.5"
When 4.5 is the rating (18-49) what is the air date?
CREATE TABLE table_28980706_4 (first_air_date VARCHAR, rating__18_49_ VARCHAR)
SELECT SUM(channel) FROM table_name_65 WHERE network = "qubo"
What is the sum of channels for qubo network?
CREATE TABLE table_name_65 (channel INTEGER, network VARCHAR)
SELECT format FROM table_1000181_1 WHERE state_territory = "South Australia"
What is the format for South Australia?
CREATE TABLE table_1000181_1 (format VARCHAR, state_territory VARCHAR)
SELECT results FROM table_1341423_36 WHERE district = "Oklahoma 3"
What was the results for the district oklahoma 3?
CREATE TABLE table_1341423_36 (results VARCHAR, district VARCHAR)
SELECT COUNT(season) FROM table_25563779_4 WHERE national_trophy_rookie = "Simone Iaquinta"
If the national trophy/rookie is Simone Iaquinta, what is the season total number?
CREATE TABLE table_25563779_4 (season VARCHAR, national_trophy_rookie VARCHAR)
SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers"
What is the average attendance when the opponent is telford tigers?
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR)
SELECT MIN(rank) FROM table_name_22 WHERE time = "1:47.70"
Who placed highest with a time of 1:47.70?
CREATE TABLE table_name_22 (rank INTEGER, time VARCHAR)
SELECT city FROM table_name_52 WHERE colony_name = "northeastern crescent colony"
Which City has a Colony Name of northeastern crescent colony?
CREATE TABLE table_name_52 (city VARCHAR, colony_name VARCHAR)
SELECT player FROM table_name_15 WHERE goals = "143"
What player scored 143 goals?
CREATE TABLE table_name_15 (player VARCHAR, goals VARCHAR)
SELECT surface FROM table_name_91 WHERE date = "may 10, 2009"
What was the surface for the May 10, 2009 tournament?
CREATE TABLE table_name_91 (surface VARCHAR, date VARCHAR)
SELECT result FROM table_26842217_4 WHERE visiting_team = "Tennessee Tech"
What were the results of the tennessee tech as a visiting team?
CREATE TABLE table_26842217_4 (result VARCHAR, visiting_team VARCHAR)
SELECT losing_bonus FROM table_name_12 WHERE try_bonus = "3" AND tries_for = "47"
What was the losing bonus for the team with a try bonus of 3 and 47 tries for?
CREATE TABLE table_name_12 (losing_bonus VARCHAR, try_bonus VARCHAR, tries_for VARCHAR)
SELECT MIN(erp_w) FROM table_name_66 WHERE city_of_license = "allentown, pennsylvania"
What is the smallest ERP for allentown, pennsylvania?
CREATE TABLE table_name_66 (erp_w INTEGER, city_of_license VARCHAR)
SELECT COUNT(italian) FROM table_25401_15 WHERE conservative_central_italian_1 = "unu"
How many entries for Italian correspond to the Conservative Central Italian of Unu?
CREATE TABLE table_25401_15 (italian VARCHAR, conservative_central_italian_1 VARCHAR)
SELECT goals FROM table_1218784_1 WHERE season = "2005-06"
How many goals were scored in the 2005-06 season?
CREATE TABLE table_1218784_1 (goals VARCHAR, season VARCHAR)
SELECT StuID FROM Student WHERE age = (SELECT MAX(age) FROM Student)
Show the student id of the oldest student.
CREATE TABLE Student (StuID VARCHAR, age INTEGER)
SELECT record FROM table_name_38 WHERE date = "november 12"
What was the team's record on November 12?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT model FROM table_name_82 WHERE number_built < 6.526 AND chassis_code = "w109.015"
What model has a number built smaller than 6.526, and the Chassis code w109.015?
CREATE TABLE table_name_82 (model VARCHAR, number_built VARCHAR, chassis_code VARCHAR)
SELECT record FROM table_name_16 WHERE score = "113–103"
What was the Record during the game with a Score of 113–103?
CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR)
SELECT COUNT(silver) FROM table_name_66 WHERE total = 76
Who has a total number of 76 silver medals?
CREATE TABLE table_name_66 (silver VARCHAR, total VARCHAR)
SELECT SUM(attendance) FROM table_name_59 WHERE home = "montreal" AND date = "march 24"
What was the Attendance when the Home team was Montreal, on the Date of March 24?
CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR)
SELECT MIN(mintage) FROM table_name_49 WHERE year < 2005
What is the lowest mintage in a year earlier than 2005?
CREATE TABLE table_name_49 (mintage INTEGER, year INTEGER)
SELECT COUNT(opponents) FROM table_20928682_1 WHERE record = "1-0-0"
After how many opponents was the overall record 1-0-0?
CREATE TABLE table_20928682_1 (opponents VARCHAR, record VARCHAR)
SELECT set_2 FROM table_name_70 WHERE set_1 = "19–25"
What is the score for set 2 when the score of set 1 is 19–25?
CREATE TABLE table_name_70 (set_2 VARCHAR, set_1 VARCHAR)
SELECT class FROM table_name_24 WHERE tyres = "g" AND year > 1988
Which class more recent than 1988 has G tyres?
CREATE TABLE table_name_24 (class VARCHAR, tyres VARCHAR, year VARCHAR)
SELECT SUM(fastest_laps) FROM table_name_2 WHERE poles = 0 AND podiums = 0 AND seasons = "1995"
What's the fastest laps during the 1995 season having poles & podiums at 0?
CREATE TABLE table_name_2 (fastest_laps INTEGER, seasons VARCHAR, poles VARCHAR, podiums VARCHAR)
SELECT SUM(against) FROM table_name_86 WHERE opposing_team = "cuyo selection"
Sum of cuyo selection as the opposing team?
CREATE TABLE table_name_86 (against INTEGER, opposing_team VARCHAR)
SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta"
How many laps did Ricardo Zonta drive with a grid less than 14?
CREATE TABLE table_name_15 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT crowd FROM table_name_28 WHERE home_team = "footscray"
What is the size of the crowd for the home team of Footscray?
CREATE TABLE table_name_28 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(year) FROM table_name_7 WHERE composer = "mejo joseph"
What year was the composition by Mejo Joseph?
CREATE TABLE table_name_7 (year VARCHAR, composer VARCHAR)