question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
what is the result for the world group, semifinals after the year 1997?
CREATE TABLE table_name_19 (result VARCHAR, year VARCHAR, competition VARCHAR)
SELECT result FROM table_name_19 WHERE year > 1997 AND competition = "world group, semifinals"
How many 'United Airlines' flights go to Airport 'ASY'?
CREATE TABLE FLIGHTS (Airline VARCHAR, DestAirport VARCHAR); CREATE TABLE AIRLINES (uid VARCHAR, Airline VARCHAR)
SELECT COUNT(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline = T1.uid WHERE T1.Airline = "United Airlines" AND T2.DestAirport = "ASY"
What ist he matches where the player is ms dhoni?
CREATE TABLE table_24039597_26 (matches VARCHAR, player VARCHAR)
SELECT matches FROM table_24039597_26 WHERE player = "MS Dhoni"
What was the Goal Difference for Postion 22?
CREATE TABLE table_name_61 (goal_difference VARCHAR, position VARCHAR)
SELECT goal_difference FROM table_name_61 WHERE position = 22
Who lost 2 and had a position bigger than 1?
CREATE TABLE table_name_75 (name VARCHAR, lost VARCHAR, position VARCHAR)
SELECT name FROM table_name_75 WHERE lost = 2 AND position > 1
What candidate has a result of being re-elected in the Texas 7 District?
CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR)
SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 7"
Which Round has an Opponent of jorge magalhaes?
CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR)
SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes"
In what Year is Keith Smith's Cross Code Debut RL Test v Wales?
CREATE TABLE table_name_73 (year VARCHAR, cross_code_debut VARCHAR, player VARCHAR)
SELECT year FROM table_name_73 WHERE cross_code_debut = "rl test v wales" AND player = "keith smith"
Name the score in the final for january 12, 2013
CREATE TABLE table_name_63 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_63 WHERE date = "january 12, 2013"
When has a Venue of Adelaide Oval?
CREATE TABLE table_name_94 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_94 WHERE venue = "adelaide oval"
What was the result on October 20, 2002?
CREATE TABLE table_name_87 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_87 WHERE date = "october 20, 2002"
When did the w 20-19 happen?
CREATE TABLE table_name_72 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_72 WHERE result = "w 20-19"
What's the lowest number of cuts made while the win was less than 0?
CREATE TABLE table_name_65 (cuts_made INTEGER, wins INTEGER)
SELECT MIN(cuts_made) FROM table_name_65 WHERE wins < 0
Which segment c's segment b is refrigerators?
CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR)
SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators"
What is the average Games, when Player is Robert Hock, and when Goals is less than 24?
CREATE TABLE table_name_19 (games INTEGER, player VARCHAR, goals VARCHAR)
SELECT AVG(games) FROM table_name_19 WHERE player = "robert hock" AND goals < 24
What is the longitude for the Township that has a ANSI code less than 1036534, a water (sqmi) of 0, and a GEO ID greater than 3809959540?
CREATE TABLE table_name_20 (longitude VARCHAR, geo_id VARCHAR, ansi_code VARCHAR, water__sqmi_ VARCHAR)
SELECT COUNT(longitude) FROM table_name_20 WHERE ansi_code < 1036534 AND water__sqmi_ = 0 AND geo_id > 3809959540
How many episodes were written only by William N. Fordes?
CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR)
SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = "William N. Fordes"
What date was Bury the home team?
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "bury"
What is the smallest number for 102 when Friendly of friendly, and an Austria of greece?
CREATE TABLE table_name_78 (austria VARCHAR)
SELECT MIN(102) FROM table_name_78 WHERE "friendly" = "friendly" AND austria = "greece"
What mintage earlier than the year 2006 has the butterfly great spangled fritillary.
CREATE TABLE table_name_15 (mintage VARCHAR, year VARCHAR, butterfly VARCHAR)
SELECT mintage FROM table_name_15 WHERE year < 2006 AND butterfly = "great spangled fritillary"
How many high assists were on November 27?
CREATE TABLE table_name_10 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_10 WHERE date = "november 27"
What are the memories and carriers of phones?
CREATE TABLE phone (Memory_in_G VARCHAR, Carrier VARCHAR)
SELECT Memory_in_G, Carrier FROM phone
What is the sum of draws for El Zamalek wins under 36, total over 2, and Al Ahly wins over 37?
CREATE TABLE table_name_27 (draws INTEGER, al_ahly_wins VARCHAR, el_zamalek_wins VARCHAR, total VARCHAR)
SELECT SUM(draws) FROM table_name_27 WHERE el_zamalek_wins < 36 AND total > 2 AND al_ahly_wins > 37
What is Place, when Country is "United States", and when Player is "Lee Trevino"?
CREATE TABLE table_name_41 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT place FROM table_name_41 WHERE country = "united states" AND player = "lee trevino"
What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"?
CREATE TABLE table_name_42 (season VARCHAR, goals VARCHAR, team VARCHAR)
SELECT season FROM table_name_42 WHERE goals < 6 AND team = "tarbiat yazd"
What is the total number of Silver for the Nation with more than 1 Bronze and a Rank less than 5?
CREATE TABLE table_name_26 (silver VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT COUNT(silver) FROM table_name_26 WHERE bronze > 1 AND rank < 5
What date was the Tyre d and Bruce Mclaren won?
CREATE TABLE table_name_61 (date VARCHAR, tyre VARCHAR, winning_driver VARCHAR)
SELECT date FROM table_name_61 WHERE tyre = "d" AND winning_driver = "bruce mclaren"
Which Relation has a Year larger than 2000, and a Length of 8 x 20 mins?
CREATE TABLE table_name_12 (relation VARCHAR, year VARCHAR, length VARCHAR)
SELECT relation FROM table_name_12 WHERE year > 2000 AND length = "8 x 20 mins"
During what conference is North Carolina listed as the tournament winner?
CREATE TABLE table_28365816_2 (conference VARCHAR, tournament_winner VARCHAR)
SELECT conference FROM table_28365816_2 WHERE tournament_winner = "North Carolina"
Which player had a total of 295?
CREATE TABLE table_name_22 (player VARCHAR, total VARCHAR)
SELECT player FROM table_name_22 WHERE total = 295
What are the imperial size for the unit that has a ratio of 1/20?
CREATE TABLE table_name_11 (imperial VARCHAR, ratio VARCHAR)
SELECT imperial FROM table_name_11 WHERE ratio = "1/20"
What is the to par for the 68-72-73=213 score?
CREATE TABLE table_name_73 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_73 WHERE score = 68 - 72 - 73 = 213
What it the international designation for the kosmos 2379 satellite?
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, satellite VARCHAR)
SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379"
Who wrote the episodes watched by 1.816 million people in Canada?
CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.816"
What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?
CREATE TABLE table_name_97 (chuck_devore VARCHAR, other VARCHAR)
SELECT chuck_devore FROM table_name_97 WHERE other = "4%"
What is the Home team on April 4?
CREATE TABLE table_name_61 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_61 WHERE date = "april 4"
What is the attendance for the game against the Kansas City Chiefs earlier than week 13?
CREATE TABLE table_name_32 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_32 WHERE opponent = "kansas city chiefs" AND week < 13
How many runtimes does episode 53 have?
CREATE TABLE table_26032940_2 (network_tv_run_time VARCHAR, episode__number VARCHAR)
SELECT COUNT(network_tv_run_time) FROM table_26032940_2 WHERE episode__number = 53
What is the To par of the Player with a Score of 69-70=139?
CREATE TABLE table_name_59 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_59 WHERE score = 69 - 70 = 139
What date was M. Grabovski the first start of the game?
CREATE TABLE table_27537518_7 (date VARCHAR, first_star VARCHAR)
SELECT date FROM table_27537518_7 WHERE first_star = "M. Grabovski"
WHAT YEAR HAS A TO PAR SMALLER THAN 16, TOTAL 151?
CREATE TABLE table_name_86 (year_s__won VARCHAR, to_par VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_86 WHERE to_par < 16 AND total = 151
Which tier of the tournament has Mont de Marson in it?
CREATE TABLE table_name_61 (tier VARCHAR, tournament VARCHAR)
SELECT tier FROM table_name_61 WHERE tournament = "mont de marson"
What player that has a Position of df, and Loaned to is Stoke City?
CREATE TABLE table_name_89 (player VARCHAR, position VARCHAR, loaned_to VARCHAR)
SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city"
How many draw is in a place that is less than 1?
CREATE TABLE table_name_67 (draw VARCHAR, place INTEGER)
SELECT COUNT(draw) FROM table_name_67 WHERE place < 1
What is the color of the planet venus?
CREATE TABLE table_180802_3 (color VARCHAR, planet VARCHAR)
SELECT color FROM table_180802_3 WHERE planet = "Venus"
How many attended the game with a Record of 21โ€“22โ€“2?
CREATE TABLE table_name_23 (attendance VARCHAR, record VARCHAR)
SELECT COUNT(attendance) FROM table_name_23 WHERE record = "21โ€“22โ€“2"
What is the Score1 of Match 42?
CREATE TABLE table_name_9 (score1 VARCHAR, match VARCHAR)
SELECT score1 FROM table_name_9 WHERE match = 42
Name the classification for 9, 9, 8, 9
CREATE TABLE table_21829580_1 (classification__judges_ VARCHAR, detailed_grades VARCHAR)
SELECT classification__judges_ FROM table_21829580_1 WHERE detailed_grades = "9, 9, 8, 9"
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR)
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli"
what are the notes for date (from) 12 august 1897?
CREATE TABLE table_12562214_1 (notes VARCHAR, date__from_ VARCHAR)
SELECT notes FROM table_12562214_1 WHERE date__from_ = "12 August 1897"
How many total games associated with the Pac-12 of california and 117 years?
CREATE TABLE table_name_84 (total_games VARCHAR, years VARCHAR, pac_12 VARCHAR)
SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california"
What is the Away team when the FootyTAB winner was st. george?
CREATE TABLE table_name_13 (away_team VARCHAR, footytab_winner VARCHAR)
SELECT away_team FROM table_name_13 WHERE footytab_winner = "st. george"
What points average has a played greater than 20?
CREATE TABLE table_name_31 (points INTEGER, played INTEGER)
SELECT AVG(points) FROM table_name_31 WHERE played > 20
Name the result for mississippi 2
CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342149_24 WHERE district = "Mississippi 2"
Name the crew chief for ricky craven
CREATE TABLE table_2187178_1 (crew_chief VARCHAR, driver_s_ VARCHAR)
SELECT crew_chief FROM table_2187178_1 WHERE driver_s_ = "Ricky Craven"
what is the least lost when the place is higher than 4, goals scored is 12 and points is more than 4?
CREATE TABLE table_name_72 (lost INTEGER, points VARCHAR, place VARCHAR, goals_scored VARCHAR)
SELECT MIN(lost) FROM table_name_72 WHERE place > 4 AND goals_scored = 12 AND points > 4
find the number of distinct country codes of all players.
CREATE TABLE players (country_code VARCHAR)
SELECT COUNT(DISTINCT country_code) FROM players
Name the score for bucks with timberwolves
CREATE TABLE table_name_56 (score VARCHAR, visitor VARCHAR, home VARCHAR)
SELECT score FROM table_name_56 WHERE visitor = "bucks" AND home = "timberwolves"
What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?
CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10
What is the set 1 score when the total is 85โ€“101?
CREATE TABLE table_name_92 (set_1 VARCHAR, total VARCHAR)
SELECT set_1 FROM table_name_92 WHERE total = "85โ€“101"
Which Tournament has a Winning score of e (72-69-71-68=280)?
CREATE TABLE table_name_15 (tournament VARCHAR, winning_score VARCHAR)
SELECT tournament FROM table_name_15 WHERE winning_score = E(72 - 69 - 71 - 68 = 280)
Tell me the year with Laps less than 197 and start of 2
CREATE TABLE table_name_96 (year VARCHAR, laps VARCHAR, start VARCHAR)
SELECT year FROM table_name_96 WHERE laps < 197 AND start = "2"
What is the Time with a Score that is 46-82?
CREATE TABLE table_name_17 (time VARCHAR, score VARCHAR)
SELECT time FROM table_name_17 WHERE score = "46-82"
Name the total number of record for 27
CREATE TABLE table_15869204_5 (record VARCHAR, game VARCHAR)
SELECT COUNT(record) FROM table_15869204_5 WHERE game = 27
What was the production cost for the film directed by 2004?
CREATE TABLE table_name_39 (production_cost VARCHAR, director VARCHAR)
SELECT production_cost FROM table_name_39 WHERE director = "2004"
What is the Court Rank of Son of Norihiro's Lineage?
CREATE TABLE table_name_6 (court_rank VARCHAR, lineage VARCHAR)
SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro"
What country scored 71-69=140?
CREATE TABLE table_name_30 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_30 WHERE score = 71 - 69 = 140
Which Tournament is in 1993 with a Score in the final of 6โ€“2, 2โ€“6, 7โ€“5?
CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = "6โ€“2, 2โ€“6, 7โ€“5"
What is the Record for week 12?
CREATE TABLE table_name_95 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_95 WHERE week = 12
What is the smallest game had a location of Madison Square Garden with a score of 109-99?
CREATE TABLE table_name_3 (game INTEGER, location_attendance VARCHAR, score VARCHAR)
SELECT MIN(game) FROM table_name_3 WHERE location_attendance = "madison square garden" AND score = "109-99"
Which average Against has a Difference of 10, and a Lost smaller than 2?
CREATE TABLE table_name_24 (against INTEGER, difference VARCHAR, lost VARCHAR)
SELECT AVG(against) FROM table_name_24 WHERE difference = "10" AND lost < 2
How many attempts did Charley Johnson have?
CREATE TABLE table_20906175_3 (attempts VARCHAR, name VARCHAR)
SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = "Charley Johnson"
What status has 10 as the population?
CREATE TABLE table_name_10 (status VARCHAR, population VARCHAR)
SELECT status FROM table_name_10 WHERE population = 10
Which Aspect has a Programming of latv?
CREATE TABLE table_name_18 (aspect VARCHAR, programming VARCHAR)
SELECT aspect FROM table_name_18 WHERE programming = "latv"
What was the end date when Alex Bodry was the minister?
CREATE TABLE table_name_11 (end_date VARCHAR, minister VARCHAR)
SELECT end_date FROM table_name_11 WHERE minister = "alex bodry"
Which team is John Williams a rider for?
CREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR)
SELECT team FROM table_name_7 WHERE rider = "john williams"
Which award description has a year later than 1994 with a date of December 6?
CREATE TABLE table_name_84 (award_description_s_ VARCHAR, year VARCHAR, date VARCHAR)
SELECT award_description_s_ FROM table_name_84 WHERE year > 1994 AND date = "december 6"
Who won the 250cc in 1927?
CREATE TABLE table_name_31 (year VARCHAR)
SELECT 250 AS _cc FROM table_name_31 WHERE year = "1927"
What is the least amount of total medals won?
CREATE TABLE table_22355_23 (total_min_2_medals_ INTEGER)
SELECT MIN(total_min_2_medals_) FROM table_22355_23
What University has the acrronym of USF
CREATE TABLE table_1160660_1 (university_name VARCHAR, acronym VARCHAR)
SELECT university_name FROM table_1160660_1 WHERE acronym = "USF"
What is the average against that has a drawn less than 7, points greater than 22, and 19 for the played?
CREATE TABLE table_name_66 (against INTEGER, played VARCHAR, drawn VARCHAR, points VARCHAR)
SELECT AVG(against) FROM table_name_66 WHERE drawn < 7 AND points > 22 AND played = 19
how many studios have the catalog number "cal03 / 0091037137333"?
CREATE TABLE table_11222744_3 (studio VARCHAR, catalog_number VARCHAR)
SELECT COUNT(studio) FROM table_11222744_3 WHERE catalog_number = "CAL03 / 0091037137333"
During what year was Representative Spencer Bachus first elected?
CREATE TABLE table_1805191_2 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1805191_2 WHERE incumbent = "Spencer Bachus"
Which City has a Date on october 26, 2007
CREATE TABLE table_name_70 (city VARCHAR, date VARCHAR)
SELECT city FROM table_name_70 WHERE date = "october 26, 2007"
What School has Colors of navy blue orange?
CREATE TABLE table_name_17 (school VARCHAR, colors VARCHAR)
SELECT school FROM table_name_17 WHERE colors = "navy blue orange"
What is Country, when Total is greater than 283, and when Year(s) Won is "1989"?
CREATE TABLE table_name_90 (country VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = "1989"
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010"
What is the mascot for the school in 32 Hendricks County?
CREATE TABLE table_name_11 (mascot VARCHAR, county VARCHAR)
SELECT mascot FROM table_name_11 WHERE county = "32 hendricks"
What is the largest ethnic group (2002) when cyrillic name is ะฑั€ะตัั‚ะฐั‡?
CREATE TABLE table_2562572_52 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_52 WHERE cyrillic_name = "ะ‘ั€ะตัั‚ะฐั‡"
what's the score in canada with place of t8?
CREATE TABLE table_name_83 (score VARCHAR, country VARCHAR, place VARCHAR)
SELECT score FROM table_name_83 WHERE country = "canada" AND place = "t8"
What is the Name of the Mill Built in 1802?
CREATE TABLE table_name_73 (name_of_mill VARCHAR, built VARCHAR)
SELECT name_of_mill FROM table_name_73 WHERE built = "1802"
How many vacancies happened on 25 May?
CREATE TABLE table_17327458_1 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = "25 May"
What meet had a 400m individual medley meet?
CREATE TABLE table_name_56 (meet VARCHAR, event VARCHAR)
SELECT meet FROM table_name_56 WHERE event = "400m individual medley"
How many times did they play the pittsburgh penguins?
CREATE TABLE table_27501030_8 (march VARCHAR, opponent VARCHAR)
SELECT COUNT(march) FROM table_27501030_8 WHERE opponent = "Pittsburgh Penguins"
What was Arnold Palmer's score in the tournamnet?
CREATE TABLE table_name_5 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_5 WHERE player = "arnold palmer"
How many original titles were listed as "If the Sun Never Returns"?
CREATE TABLE table_22034853_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(original_title) FROM table_22034853_1 WHERE film_title_used_in_nomination = "If the Sun Never Returns"
The game on September 2, 1979 was during which week of the season?
CREATE TABLE table_name_89 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_name_89 WHERE date = "september 2, 1979"
List all countries of markets in ascending alphabetical order.
CREATE TABLE market (Country VARCHAR)
SELECT Country FROM market ORDER BY Country
What award has breakthrough performance as the category?
CREATE TABLE table_name_52 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_52 WHERE category = "breakthrough performance"
Name the least births for conversion being 26,333
CREATE TABLE table_28137918_5 (births INTEGER, conversions VARCHAR)
SELECT MIN(births) FROM table_28137918_5 WHERE conversions = "26,333"