answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MIN(points) FROM table_name_15 WHERE year = 1981
CREATE TABLE table_name_15 (points INTEGER, year VARCHAR)
What is the smallest number of points for a 1981 team?
SELECT MIN(wins) FROM table_name_75 WHERE points < 32 AND class = "350cc" AND rank = "8th"
CREATE TABLE table_name_75 (wins INTEGER, rank VARCHAR, points VARCHAR, class VARCHAR)
What is the fewest number of wins for a team ranked 8th with fewer than 32 points in the 350cc class?
SELECT rank FROM table_name_51 WHERE class = "250cc" AND year = 1983
CREATE TABLE table_name_51 (rank VARCHAR, class VARCHAR, year VARCHAR)
What was the rank of the 1983 team in the 250cc class?
SELECT district FROM table_name_61 WHERE incumbent = "joseph t. johnson"
CREATE TABLE table_name_61 (district VARCHAR, incumbent VARCHAR)
Which district has joseph t. johnson as an incumbent?
SELECT result FROM table_name_40 WHERE first_elected = "1904" AND incumbent = "james o'h. patterson"
CREATE TABLE table_name_40 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
What was the result for james o'h. patterson when first elected in 1904?
SELECT party FROM table_name_2 WHERE result = "re-elected" AND district = "south carolina 5"
CREATE TABLE table_name_2 (party VARCHAR, result VARCHAR, district VARCHAR)
Which party was re-elected in south carolina 5 district?
SELECT party FROM table_name_86 WHERE incumbent = "joseph t. johnson"
CREATE TABLE table_name_86 (party VARCHAR, incumbent VARCHAR)
Which party was joseph t. johnson in?
SELECT party FROM table_name_19 WHERE first_elected = "1898"
CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR)
Which party was first elected in 1898?
SELECT AVG(earnings___) AS $__ FROM table_name_49 WHERE player = "greg norman"
CREATE TABLE table_name_49 (earnings___ INTEGER, player VARCHAR)
What is the average earnings made by Greg Norman?
SELECT city FROM table_name_42 WHERE type_of_game = "friendly" AND opponent = "tunisia"
CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
what city has a game of friendly and an opponent of tunisia?
SELECT results¹ FROM table_name_78 WHERE opponent = "spain"
CREATE TABLE table_name_78 (results¹ VARCHAR, opponent VARCHAR)
what are the results of the opponent of spain?
SELECT results¹ FROM table_name_49 WHERE date = "december 19"
CREATE TABLE table_name_49 (results¹ VARCHAR, date VARCHAR)
what results are dated december 19?
SELECT city FROM table_name_41 WHERE results¹ = "4:2"
CREATE TABLE table_name_41 (city VARCHAR, results¹ VARCHAR)
what city has the results of 4:2?
SELECT type_of_game FROM table_name_78 WHERE results¹ = "1:0"
CREATE TABLE table_name_78 (type_of_game VARCHAR, results¹ VARCHAR)
what type of game has the resuts of 1:0?
SELECT AVG(games) FROM table_name_52 WHERE years = "1965–1981" AND ranking > 4
CREATE TABLE table_name_52 (games INTEGER, years VARCHAR, ranking VARCHAR)
What is the average Games for 1965–1981, and a Ranking larger than 4?
SELECT years FROM table_name_93 WHERE games = 550
CREATE TABLE table_name_93 (years VARCHAR, games VARCHAR)
What is the Years when games shows 550?
SELECT nationality FROM table_name_57 WHERE ranking = 4
CREATE TABLE table_name_57 (nationality VARCHAR, ranking VARCHAR)
What is the Nationality that shows 4 as the ranking?
SELECT location FROM table_name_68 WHERE copies_per_particle = "0" AND protein = "nsp3"
CREATE TABLE table_name_68 (location VARCHAR, copies_per_particle VARCHAR, protein VARCHAR)
Which location has a copies per particle of 0 and a protein of nsp3?
SELECT copies_per_particle FROM table_name_46 WHERE protein = "nsp2"
CREATE TABLE table_name_46 (copies_per_particle VARCHAR, protein VARCHAR)
How many copies per particle does the protein nsp2 have?
SELECT MAX(rna_segment__gene_) FROM table_name_20 WHERE protein = "vp2" AND size___s_base_pair__ > 2690
CREATE TABLE table_name_20 (rna_segment__gene_ INTEGER, protein VARCHAR, size___s_base_pair__ VARCHAR)
What is the highest RNA segment having a protein of vp2 and a base pair size over 2690?
SELECT copies_per_particle FROM table_name_88 WHERE location = "nonstructural" AND rna_segment__gene_ > 5 AND size___s_base_pair__ < 751
CREATE TABLE table_name_88 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR, location VARCHAR, rna_segment__gene_ VARCHAR)
What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?
SELECT bronze FROM table_name_90 WHERE location = "hiroshima"
CREATE TABLE table_name_90 (bronze VARCHAR, location VARCHAR)
Who won the bronze medal in Hiroshima?
SELECT silver FROM table_name_5 WHERE bronze = "hong chia-yuh"
CREATE TABLE table_name_5 (silver VARCHAR, bronze VARCHAR)
Who won the silver medal in the games where Hong Chia-yuh took home bronze?
SELECT location FROM table_name_29 WHERE bronze = "michael eric bibat"
CREATE TABLE table_name_29 (location VARCHAR, bronze VARCHAR)
Where did Michael Eric Bibat win bronze?
SELECT gold FROM table_name_76 WHERE silver = "pan cheng-tsung"
CREATE TABLE table_name_76 (gold VARCHAR, silver VARCHAR)
Who won gold in the games where Pan Cheng-Tsung won silver?
SELECT SUM(bronze) FROM table_name_22 WHERE silver = 0 AND gold = 0 AND nation = "denmark" AND total > 1
CREATE TABLE table_name_22 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denmark, and a Total larger than 1?
SELECT MAX(bronze) FROM table_name_75 WHERE nation = "italy"
CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR)
How many Bronzes that has a Nation of italy?
SELECT SUM(silver) FROM table_name_70 WHERE gold < 1 AND rank = "9" AND total < 1
CREATE TABLE table_name_70 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total smaller than 1?
SELECT MAX(bronze) FROM table_name_99 WHERE nation = "spain"
CREATE TABLE table_name_99 (bronze INTEGER, nation VARCHAR)
Which Bronze has a Nation of spain?
SELECT opponent FROM table_name_20 WHERE venue = "jeonju"
CREATE TABLE table_name_20 (opponent VARCHAR, venue VARCHAR)
Who was the opponent at the competition held at Jeonju?
SELECT COUNT(january) FROM table_name_14 WHERE record = "22-15-6"
CREATE TABLE table_name_14 (january VARCHAR, record VARCHAR)
How many Januarys had records of 22-15-6?
SELECT date FROM table_name_69 WHERE event_circuit = "barbagallo raceway"
CREATE TABLE table_name_69 (date VARCHAR, event_circuit VARCHAR)
what is the date of barbagallo raceway?
SELECT city___state FROM table_name_79 WHERE event_circuit = "hidden valley raceway"
CREATE TABLE table_name_79 (city___state VARCHAR, event_circuit VARCHAR)
What city is the hidden valley raceway in?
SELECT score FROM table_name_60 WHERE game__number = 81
CREATE TABLE table_name_60 (score VARCHAR, game__number VARCHAR)
What was the score in game 81?
SELECT record FROM table_name_27 WHERE game__number = 79
CREATE TABLE table_name_27 (record VARCHAR, game__number VARCHAR)
What was the record after game 79?
SELECT home FROM table_name_91 WHERE date = "april 15"
CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR)
Who was the home team on April 15?
SELECT hanyu_pinyin FROM table_name_53 WHERE hanzi = "依兰县"
CREATE TABLE table_name_53 (hanyu_pinyin VARCHAR, hanzi VARCHAR)
What is the Pinyin for 依兰县?
SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²_ = "77"
CREATE TABLE table_name_65 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR)
What is the Pinyin for the item that has a density of 77?
SELECT population__2010_11_01_ FROM table_name_30 WHERE hanzi = "延寿县"
CREATE TABLE table_name_30 (population__2010_11_01_ VARCHAR, hanzi VARCHAR)
What is the population for the area that has a Hanzi of 延寿县?
SELECT population__2010_11_01_ FROM table_name_50 WHERE name = "bayan county"
CREATE TABLE table_name_50 (population__2010_11_01_ VARCHAR, name VARCHAR)
What is the population as of 11-01-2010 for Bayan County?
SELECT hanzi FROM table_name_4 WHERE hanyu_pinyin = "píngfáng qū"
CREATE TABLE table_name_4 (hanzi VARCHAR, hanyu_pinyin VARCHAR)
What is the Hanzi for píngfáng qū?
SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009
CREATE TABLE table_name_32 (slalom VARCHAR, overall VARCHAR, season VARCHAR)
Which Slalom has an overall of 25 in the 2009 season?
SELECT combined FROM table_name_80 WHERE overall = "8"
CREATE TABLE table_name_80 (combined VARCHAR, overall VARCHAR)
Which combined score has an overall of 8?
SELECT super_g FROM table_name_50 WHERE overall = "missed season due to injury"
CREATE TABLE table_name_50 (super_g VARCHAR, overall VARCHAR)
Which Super Ghas a missed season due to injury?
SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30
CREATE TABLE table_name_92 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR)
Name the most events with cuts made more than 6 and top 25 more than 30
SELECT top_10 FROM table_name_53 WHERE top_5 < 1
CREATE TABLE table_name_53 (top_10 VARCHAR, top_5 INTEGER)
Name the top-10 with top-5 less than 1
SELECT AVG(top_25) FROM table_name_31 WHERE events < 0
CREATE TABLE table_name_31 (top_25 INTEGER, events INTEGER)
Name the averae top 25 with events less than 0
SELECT COUNT(top_10) FROM table_name_75 WHERE top_25 < 2 AND top_5 > 0
CREATE TABLE table_name_75 (top_10 VARCHAR, top_25 VARCHAR, top_5 VARCHAR)
Name the total number of top 10 with top 25 less than 2 and top 5 more than 0
SELECT year FROM table_name_22 WHERE gauge = "2 ft 6 in"
CREATE TABLE table_name_22 (year VARCHAR, gauge VARCHAR)
In what Year is the Gauge 2 ft 6 in?
SELECT year FROM table_name_80 WHERE works_no = "2040-2049"
CREATE TABLE table_name_80 (year VARCHAR, works_no VARCHAR)
In what Year is the Works No. 2040-2049?
SELECT year FROM table_name_86 WHERE works_no = "2040-2049"
CREATE TABLE table_name_86 (year VARCHAR, works_no VARCHAR)
In what Year is the Works no. 2040-2049?
SELECT gauge FROM table_name_9 WHERE builder = "beyer, peacock"
CREATE TABLE table_name_9 (gauge VARCHAR, builder VARCHAR)
What is the Gauge of Builder Beyer, Peacock?
SELECT round FROM table_name_18 WHERE record = "5-0"
CREATE TABLE table_name_18 (round VARCHAR, record VARCHAR)
Which round has the record of 5-0?
SELECT method FROM table_name_4 WHERE record = "11-1"
CREATE TABLE table_name_4 (method VARCHAR, record VARCHAR)
Which method has the record of 11-1?
SELECT method FROM table_name_98 WHERE event = "ufc 44"
CREATE TABLE table_name_98 (method VARCHAR, event VARCHAR)
The UFC 44 event has what method?
SELECT event FROM table_name_43 WHERE record = "12-1"
CREATE TABLE table_name_43 (event VARCHAR, record VARCHAR)
Which event has 12-1 as a record?
SELECT round FROM table_name_22 WHERE res = "loss" AND record = "12-3"
CREATE TABLE table_name_22 (round VARCHAR, res VARCHAR, record VARCHAR)
What round was a loss with a record of 12-3?
SELECT method FROM table_name_35 WHERE record = "11-1"
CREATE TABLE table_name_35 (method VARCHAR, record VARCHAR)
The record of 11-1 used what method?
SELECT surface FROM table_name_82 WHERE date = "november 6, 1982"
CREATE TABLE table_name_82 (surface VARCHAR, date VARCHAR)
What surface was the match on November 6, 1982 played on?
SELECT COUNT(placing) FROM table_name_26 WHERE team = "russia"
CREATE TABLE table_name_26 (placing VARCHAR, team VARCHAR)
What place did russia finish in?
SELECT COUNT(wchmp) FROM table_name_35 WHERE race > 42 AND pole > 11
CREATE TABLE table_name_35 (wchmp VARCHAR, race VARCHAR, pole VARCHAR)
What's the WChmp of the race greater than 42 and pole greater than 11?
SELECT MIN(wchmp) FROM table_name_49 WHERE podiums = 26
CREATE TABLE table_name_49 (wchmp INTEGER, podiums VARCHAR)
If podiums are 26, what's the lowest WChmp?
SELECT COUNT(podiums) FROM table_name_93 WHERE class = "total"
CREATE TABLE table_name_93 (podiums VARCHAR, class VARCHAR)
If the class is total, what is the total number of podiums?
SELECT MAX(podiums) FROM table_name_78 WHERE race = 14
CREATE TABLE table_name_78 (podiums INTEGER, race VARCHAR)
During race 14, what's the podiums?
SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga"
CREATE TABLE table_name_95 (call_sign VARCHAR, city_of_license VARCHAR)
What Call sign has a City of license of higgston, ga?
SELECT city_of_license FROM table_name_67 WHERE erp_w = "2,000"
CREATE TABLE table_name_67 (city_of_license VARCHAR, erp_w VARCHAR)
What City of license has a ERP W of 2,000?
SELECT class FROM table_name_84 WHERE city_of_license = "lake oconee, ga"
CREATE TABLE table_name_84 (class VARCHAR, city_of_license VARCHAR)
What is the Class where City of license is lake oconee, ga?
SELECT chassis FROM table_name_3 WHERE year = 2012
CREATE TABLE table_name_3 (chassis VARCHAR, year VARCHAR)
What chassis has 2012 as the year?
SELECT engine FROM table_name_19 WHERE start < 7 AND finish = 23
CREATE TABLE table_name_19 (engine VARCHAR, start VARCHAR, finish VARCHAR)
What engine has a start less than 7, and 23 as a finish?
SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = "honda" AND year = 2011
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)
What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?
SELECT SUM(start) FROM table_name_35 WHERE year < 2012 AND team = "team penske" AND finish > 27
CREATE TABLE table_name_35 (start INTEGER, finish VARCHAR, year VARCHAR, team VARCHAR)
How many starts have a year prior to 2012, and team penske as the team, with a finish greater than 27?
SELECT start FROM table_name_17 WHERE year > 2010 AND team = "chip ganassi racing"
CREATE TABLE table_name_17 (start VARCHAR, year VARCHAR, team VARCHAR)
What start has a year later than 2010, and chip ganassi racing as the team?
SELECT opponents FROM table_name_84 WHERE competition = "football league trophy"
CREATE TABLE table_name_84 (opponents VARCHAR, competition VARCHAR)
Who was the opponent at the Football League Trophy competition?
SELECT opponents FROM table_name_8 WHERE venue = "home" AND competition = "league play offs"
CREATE TABLE table_name_8 (opponents VARCHAR, venue VARCHAR, competition VARCHAR)
What was the opponent at the League Play Offs at home?
SELECT venue FROM table_name_32 WHERE opponents = "queens park rangers"
CREATE TABLE table_name_32 (venue VARCHAR, opponents VARCHAR)
What venue held that game against the Queens Park Rangers?
SELECT opponents FROM table_name_67 WHERE venue = "away" AND score = "5-4"
CREATE TABLE table_name_67 (opponents VARCHAR, venue VARCHAR, score VARCHAR)
Who was the opponent at the away game with a score of 5-4?
SELECT opponents FROM table_name_91 WHERE competition = "league cup" AND score = "3-1"
CREATE TABLE table_name_91 (opponents VARCHAR, competition VARCHAR, score VARCHAR)
Who was the opponent at the League Cup competition with a score of 3-1?
SELECT team_classification FROM table_name_92 WHERE stage = "20"
CREATE TABLE table_name_92 (team_classification VARCHAR, stage VARCHAR)
Name the team classification for stage of 20
SELECT winner FROM table_name_5 WHERE mountains_classification = "franco pellizotti" AND combativity_award = "martijn maaskant"
CREATE TABLE table_name_5 (winner VARCHAR, mountains_classification VARCHAR, combativity_award VARCHAR)
Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant
SELECT general_classification FROM table_name_97 WHERE young_rider_classification = "roman kreuziger" AND points_classification = "fabian cancellara"
CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR)
Name the general classification with roman kreuziger and points classification of fabian cancellara
SELECT combativity_award FROM table_name_13 WHERE winner = "luis león sánchez"
CREATE TABLE table_name_13 (combativity_award VARCHAR, winner VARCHAR)
Name the combativity award with winner of luis león sánchez
SELECT SUM(18 AS _49) FROM table_name_51 WHERE air_date = "june 25, 2009" AND order > 29
CREATE TABLE table_name_51 (air_date VARCHAR, order VARCHAR)
What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?
SELECT COUNT(18 AS _49) FROM table_name_1 WHERE air_date = "july 2, 2009" AND viewers > 3.5
CREATE TABLE table_name_1 (air_date VARCHAR, viewers VARCHAR)
What is the total 18-49 for the episode that aired on July 2, 2009 with more than 3.5 viewers?
SELECT AVG(18 AS _49) FROM table_name_44 WHERE viewers < 3.5 AND order > 35
CREATE TABLE table_name_44 (viewers VARCHAR, order VARCHAR)
What is the average 18-49 for the episode that had an order number higher than 35 and less than 3.5 viewers?
SELECT episode FROM table_name_45 WHERE air_date = "july 23, 2009" AND viewers > 3.31
CREATE TABLE table_name_45 (episode VARCHAR, air_date VARCHAR, viewers VARCHAR)
What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?
SELECT AVG(year) FROM table_name_19 WHERE copies_sold = "1,695,900+" AND oricon_position > 1
CREATE TABLE table_name_19 (year INTEGER, copies_sold VARCHAR, oricon_position VARCHAR)
What year sold 1,695,900+ copies with an Oricon position larger than 1?
SELECT copies_sold FROM table_name_85 WHERE oricon_position > 1 AND year = 1988
CREATE TABLE table_name_85 (copies_sold VARCHAR, oricon_position VARCHAR, year VARCHAR)
How many copies were sold where the position is lager than 1 in 1988?
SELECT winning_score FROM table_name_2 WHERE date = "may 29, 1977"
CREATE TABLE table_name_2 (winning_score VARCHAR, date VARCHAR)
What was the Winning Score on May 29, 1977?
SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan"
CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)
On what Date was Patty Sheehan Runner(s)-up?
SELECT date FROM table_name_64 WHERE runner_s__up = "judy rankin"
CREATE TABLE table_name_64 (date VARCHAR, runner_s__up VARCHAR)
On what Date was Judy Rankin Runner(s)-up?
SELECT date FROM table_name_95 WHERE winning_score = –8(69 - 72 - 70 - 69 = 280)
CREATE TABLE table_name_95 (date VARCHAR, winning_score VARCHAR)
On what Date was the Winning score –8 (69-72-70-69=280)?
SELECT date FROM table_name_6 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "carole charbonnier"
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
SELECT date FROM table_name_64 WHERE home = "toronto"
CREATE TABLE table_name_64 (date VARCHAR, home VARCHAR)
What date did the team play home in Toronto?
SELECT SUM(attendance) FROM table_name_6 WHERE visitor = "cleveland" AND leading_scorer = "larry hughes(33)"
CREATE TABLE table_name_6 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR)
How many people attended the game when Larry Hughes(33) was the leading scorer and cleveland was visiting?
SELECT date FROM table_name_38 WHERE home = "utah"
CREATE TABLE table_name_38 (date VARCHAR, home VARCHAR)
When did they play Utah at home?
SELECT opponent FROM table_name_4 WHERE stadium = "balboa stadium"
CREATE TABLE table_name_4 (opponent VARCHAR, stadium VARCHAR)
What opponent has balboa stadium as the opponent?
SELECT MAX(attendance) FROM table_name_83 WHERE opponent = "oakland raiders" AND week > 9
CREATE TABLE table_name_83 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
What is the highest attendance that has oakland raiders as the opponent, with a week greater than 9?
SELECT headquarters FROM table_name_42 WHERE primary_industry = "conglomerate"
CREATE TABLE table_name_42 (headquarters VARCHAR, primary_industry VARCHAR)
Where is the headquarter of the conglomerate industry?
SELECT date FROM table_name_70 WHERE venue = "hrazdan stadium, yerevan, armenia"
CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR)
What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia?
SELECT bronze FROM table_name_81 WHERE location = "busan"
CREATE TABLE table_name_81 (bronze VARCHAR, location VARCHAR)
Who was the bronze medal when the Asian Games were held in Busan?