answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT rank FROM table_name_13 WHERE silver = 1 AND gold = 0 AND nation = "austria"
Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?
CREATE TABLE table_name_13 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT played FROM table_name_32 WHERE tries_for = "50"
What is the played for tries for 50?
CREATE TABLE table_name_32 (played VARCHAR, tries_for VARCHAR)
SELECT city FROM table_name_4 WHERE arena = "kara ali acar sport hall"
What city is Kara Ali Acar Sport Hall located in?
CREATE TABLE table_name_4 (city VARCHAR, arena VARCHAR)
SELECT decision FROM table_name_90 WHERE home = "montreal"
What was the decision of the game when Montreal was the home team?
CREATE TABLE table_name_90 (decision VARCHAR, home VARCHAR)
SELECT agg FROM table_name_45 WHERE team__number2 = "okk beograd"
What was the aggregate for a team #2 of Okk Beograd?
CREATE TABLE table_name_45 (agg VARCHAR, team__number2 VARCHAR)
SELECT name FROM table_name_86 WHERE age_as_of_1_february_2014 = "111years, 358days"
Who is 111years, 358days Age as of 1 February 2014?
CREATE TABLE table_name_86 (name VARCHAR, age_as_of_1_february_2014 VARCHAR)
SELECT year FROM table_name_34 WHERE third = "kyle newman"
What year did Kyle Newman place third?
CREATE TABLE table_name_34 (year VARCHAR, third VARCHAR)
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807
what is the name for seasons 1981 and an order more than 807?
CREATE TABLE table_name_49 (name VARCHAR, seasons VARCHAR, order VARCHAR)
SELECT COUNT(rank) FROM table_name_72 WHERE total_points > 194 AND round4 < 64 AND round3 > 51 AND round2 < 66
what is the rank when the total points is more than 194, round4 is less than 64, round3 is more than 51 and round 2 is less than 66?
CREATE TABLE table_name_72 (rank VARCHAR, round2 VARCHAR, round3 VARCHAR, total_points VARCHAR, round4 VARCHAR)
SELECT incumbent FROM table_name_16 WHERE district = "20th"
Who was the incumbent in the 20th district?
CREATE TABLE table_name_16 (incumbent VARCHAR, district VARCHAR)
SELECT home_team FROM table_name_98 WHERE venue = "junction oval"
Who was the home team for the game played at Junction Oval?
CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR)
SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Mrs. Miniver"
In the film Mrs. Miniver, what is the actresses name?
CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT date FROM table_name_15 WHERE home_team = "essendon"
When did Essendon play at home?
CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR)
SELECT country FROM table_name_46 WHERE score = 74 - 72 - 71 - 67 = 284
What country has a 74-72-71-67=284 score?
CREATE TABLE table_name_46 (country VARCHAR, score VARCHAR)
SELECT partner FROM table_name_69 WHERE date = "june 17, 2012"
What was the Partner on June 17, 2012?
CREATE TABLE table_name_69 (partner VARCHAR, date VARCHAR)
SELECT engine_s_ FROM table_name_68 WHERE tyres = "f" AND year = 1971
What is the Engine(s) that has f Tyres in 1971?
CREATE TABLE table_name_68 (engine_s_ VARCHAR, tyres VARCHAR, year VARCHAR)
SELECT round FROM table_name_46 WHERE score < 21.5
Which round is a lower score than 21.5?
CREATE TABLE table_name_46 (round VARCHAR, score INTEGER)
SELECT name, distance FROM Aircraft WHERE aid = 12
What is the name and distance for aircraft with id 12?
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR, aid VARCHAR)
SELECT score FROM table_name_77 WHERE country = "england" AND year > 1971
Which Score has a Country of england, and a Year larger than 1971?
CREATE TABLE table_name_77 (score VARCHAR, country VARCHAR, year VARCHAR)
SELECT language FROM table_name_46 WHERE film = "marion bridge"
What language is the film Marion Bridge?
CREATE TABLE table_name_46 (language VARCHAR, film VARCHAR)
SELECT MIN(lane) FROM table_name_17 WHERE time = "2:07.57" AND rank > 1
What is the lowest lane of a swimmer with a time of 2:07.57 and a rank larger than 1?
CREATE TABLE table_name_17 (lane INTEGER, time VARCHAR, rank VARCHAR)
SELECT position FROM table_name_94 WHERE player = "steve nemeth"
Which Position has a Player of steve nemeth?
CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR)
SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra"
What is the local name given to the city of Canberra?
CREATE TABLE table_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)
SELECT record FROM table_name_33 WHERE date > 27 AND opponent = "st. louis blues"
What was the record for the date above 27 and an opponent of the St. Louis Blues?
CREATE TABLE table_name_33 (record VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_22 WHERE date = "april 8"
Can you tell me the Score that has the Date of april 8?
CREATE TABLE table_name_22 (score VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_41 WHERE high_rebounds = "boozer (13)"
For boozer (13) what is the high assists and high rebounds?
CREATE TABLE table_name_41 (high_assists VARCHAR, high_rebounds VARCHAR)
SELECT opponent FROM table_name_58 WHERE time = "4:17"
Who was the opponent in the match that lasted 4:17?
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
SELECT LOCATION, COUNT(*) FROM railway GROUP BY LOCATION
Show different locations of railways along with the corresponding number of railways at each location.
CREATE TABLE railway (LOCATION VARCHAR)
SELECT place FROM table_name_53 WHERE player = "heath slocum"
what is the place for Heath Slocum?
CREATE TABLE table_name_53 (place VARCHAR, player VARCHAR)
SELECT name FROM table_29871617_1 WHERE family_name = "IL-1F2"
What are the names listed in the family il-1f2?
CREATE TABLE table_29871617_1 (name VARCHAR, family_name VARCHAR)
SELECT away_team FROM table_name_69 WHERE home_team = "essendon"
Name the away team for essendon
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR)
SELECT number_ & _name FROM table_name_10 WHERE description = "lms fowler class 3f 0-6-0t"
What's the number & name for a description of lms fowler class 3f 0-6-0t?
CREATE TABLE table_name_10 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10
What was the score of the match played on 14 October 1998, resulting in more than 10 goals?
CREATE TABLE table_name_59 (score VARCHAR, date VARCHAR, goal VARCHAR)
SELECT song_choice FROM table_21501518_1 WHERE original_artist = "Garth Brooks"
Whats the song of name with an original artist Garth Brooks
CREATE TABLE table_21501518_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT segment_a FROM table_15187735_13 WHERE episode = 162
Name the segment a for 162
CREATE TABLE table_15187735_13 (segment_a VARCHAR, episode VARCHAR)
SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 1
What is the least rank with more than 16 sets won and less than 1 loss?
CREATE TABLE table_name_47 (rank INTEGER, sets_won VARCHAR, loss VARCHAR)
SELECT MIN(rank) FROM table_name_65 WHERE wins > 2 AND player = "don january" AND events > 17
What is the rank for don january with over 2 wins and over 17 events?
CREATE TABLE table_name_65 (rank INTEGER, events VARCHAR, wins VARCHAR, player VARCHAR)
SELECT 2007 FROM table_name_38 WHERE 2009 = "1r"
What is the 2007 value with a 1r in 2009?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT MAX(points) FROM table_name_36 WHERE difference = "8" AND position < 4
What are the highest points that have a difference of 8, with a position less than 4?
CREATE TABLE table_name_36 (points INTEGER, difference VARCHAR, position VARCHAR)
SELECT dname FROM department ORDER BY mgr_start_date
List all department names ordered by their starting date.
CREATE TABLE department (dname VARCHAR, mgr_start_date VARCHAR)
SELECT venue FROM table_name_53 WHERE score = "4-0" AND competition = "friendly"
What is the venue for the friendly competition and score of 4-0?
CREATE TABLE table_name_53 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT written_by FROM table_25716399_1 WHERE no_in_season = 14
Who was the writer for season 14?
CREATE TABLE table_25716399_1 (written_by VARCHAR, no_in_season VARCHAR)
SELECT AVG(Profits_billion) FROM Companies
What are the average profits of companies?
CREATE TABLE Companies (Profits_billion INTEGER)
SELECT venue FROM table_name_33 WHERE home_team = "geelong"
Which venue's home team is geelong?
CREATE TABLE table_name_33 (venue VARCHAR, home_team VARCHAR)
SELECT ifop_5_11_09 FROM table_name_18 WHERE ifop_1_9_09 = "5%"
Name the lfop for 5/11/09 with lfop 1/9/09 of 5%
CREATE TABLE table_name_18 (ifop_5_11_09 VARCHAR, ifop_1_9_09 VARCHAR)
SELECT home_team AS score FROM table_name_64 WHERE home_team = "north melbourne"
What is north melbourne's home team score?
CREATE TABLE table_name_64 (home_team VARCHAR)
SELECT chinese_title FROM table_name_60 WHERE hk_viewers = "2.07 million" AND premiere = 32
What is the Chinese Title Premiering 32 with 2.07 million HK viewers?
CREATE TABLE table_name_60 (chinese_title VARCHAR, hk_viewers VARCHAR, premiere VARCHAR)
SELECT main_use FROM table_name_77 WHERE year < 2004 AND town = "redfield, arkansas"
What is the main use of the structure that was in redfield, arkansas before 2004?
CREATE TABLE table_name_77 (main_use VARCHAR, year VARCHAR, town VARCHAR)
SELECT week_2 FROM table_name_91 WHERE week_1 = "mandy ashford"
What kind of Week 2 that has a Week 1 of mandy ashford?
CREATE TABLE table_name_91 (week_2 VARCHAR, week_1 VARCHAR)
SELECT MAX(population_per_km²__2009_) FROM table_name_33 WHERE province = "western province" AND area__km²_ > 5 OFFSET 475
What is the highest Population per km² (2009) that is in western province, with an Area (km²) larger than 5,475?
CREATE TABLE table_name_33 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR)
SELECT MIN(total) FROM table_name_30 WHERE rank < 2 AND bronze > 0
what is the lowest total when the rank is less than 2 and bronze is more than 0?
CREATE TABLE table_name_30 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT southbridge FROM table_name_56 WHERE cpu_support = "athlon, athlonxp, duron( socketa ), alpha21264"
What is the Southbridge when the CPU support was athlon, athlonxp, duron( socketa ), alpha21264?
CREATE TABLE table_name_56 (southbridge VARCHAR, cpu_support VARCHAR)
SELECT MAX(game) FROM table_27755784_10
What is the highest game number?
CREATE TABLE table_27755784_10 (game INTEGER)
SELECT best FROM table_name_4 WHERE team = "conquest racing" AND qual_1 = "1:34.748"
Who from Conquest Racing had the best time of 1:34.748 in Qual 1?
CREATE TABLE table_name_4 (best VARCHAR, team VARCHAR, qual_1 VARCHAR)
SELECT MAX(position) FROM table_name_92 WHERE points = "50+12" AND draws < 10
Which position has 50+12 points and fewer than 10 draws?
CREATE TABLE table_name_92 (position INTEGER, points VARCHAR, draws VARCHAR)
SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%"
What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?
CREATE TABLE table_23680576_2 (nov_2008 VARCHAR, aug_2008 VARCHAR)
SELECT opponent FROM table_name_70 WHERE result = "w 17-0"
Which opponent has w 17-0 as the result?
CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR)
SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34
How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)
SELECT T1.Name FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID WHERE Year_of_Founded > 2008
Please show the name of the conductor that has conducted orchestras founded after 2008.
CREATE TABLE orchestra (Conductor_ID VARCHAR); CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR)
SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND draw < 6
what the most lost for Alianza with a draw less than 6?
CREATE TABLE table_name_26 (lost INTEGER, team VARCHAR, draw VARCHAR)
SELECT MAX(lost) FROM table_name_57 WHERE tied > 42 AND years < 132 AND pct < 0.5729000000000001
What is the highest number lost when the number tied is more than 42, the years are less than 132, and the PCT is less than 0.5729000000000001?
CREATE TABLE table_name_57 (lost INTEGER, pct VARCHAR, tied VARCHAR, years VARCHAR)
SELECT SUM(yards_per_attempt) FROM table_name_17 WHERE net_yards > 631
How many yards per attempt have net yards greater than 631?
CREATE TABLE table_name_17 (yards_per_attempt INTEGER, net_yards INTEGER)
SELECT name FROM procedures ORDER BY cost LIMIT 3
Find the three most expensive procedures.
CREATE TABLE procedures (name VARCHAR, cost VARCHAR)
SELECT in_ames FROM table_10429820_13 WHERE "since_beginning_of_big_12" = "since_beginning_of_big_12"
When the value of "since beginning of big 12" is synonymous with its' category, what are the in Ames values?
CREATE TABLE table_10429820_13 (in_ames VARCHAR)
SELECT year_location FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
Where was the tour when jing junhong li jiawei played womens doubles?
CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)
SELECT set_3 FROM table_name_27 WHERE total = "98 - 92"
What is the Set 3 when the Total was 98 - 92?
CREATE TABLE table_name_27 (set_3 VARCHAR, total VARCHAR)
SELECT tie_no FROM table_name_52 WHERE home_team = "derby county"
Which tie number had a home team of Derby County?
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_63 WHERE year > 2011 AND president = "herman van rompuy (2nd term)" AND date = "28–29 june" AND type = "scheduled"
What is the Location with a Year larger than 2011, and a President with herman van rompuy (2nd term), and a Date of 28–29 june, and a Type with scheduled?
CREATE TABLE table_name_63 (location VARCHAR, type VARCHAR, date VARCHAR, year VARCHAR, president VARCHAR)
SELECT 2010 FROM table_27146868_1 WHERE 2003 = "5.6"
What is 2010 when 2003 is 5.6?
CREATE TABLE table_27146868_1 (Id VARCHAR)
SELECT leading_scorer FROM table_name_35 WHERE visitor = "trail blazers"
Who was the leading scorer that was a visitor of the Trail Blazers?
CREATE TABLE table_name_35 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT AVG(events) FROM table_name_27 WHERE player = "miller barber"
Name the average events for miller barber
CREATE TABLE table_name_27 (events INTEGER, player VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE position = "tight end"
What is the total round of the tight end position player?
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)
SELECT candidates FROM table_1341577_36 WHERE incumbent = "Ralph Regula"
Who are all the candidates who ran in the district where Ralph Regula is the incumbent?
CREATE TABLE table_1341577_36 (candidates VARCHAR, incumbent VARCHAR)
SELECT type FROM table_name_59 WHERE ride_name = "rameses revenge"
What type of ride is Rameses Revenge?
CREATE TABLE table_name_59 (type VARCHAR, ride_name VARCHAR)
SELECT college_junior_club_team FROM table_name_79 WHERE round = 4
Can you tell me the College/Junior/Club Team that has the Round of 4?
CREATE TABLE table_name_79 (college_junior_club_team VARCHAR, round VARCHAR)
SELECT nhl_team FROM table_1013129_11 WHERE college_junior_club_team = "TPS (Finland)"
What teams do the players from TPS (Finland) play for?
CREATE TABLE table_1013129_11 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT venue FROM table_name_36 WHERE date = "2002-03-07"
Where was the game held that was played on 2002-03-07?
CREATE TABLE table_name_36 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_67 WHERE results¹ = "3:0"
What day were the results 3:0?
CREATE TABLE table_name_67 (date VARCHAR, results¹ VARCHAR)
SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977
Where was the title released in 1977?
CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR)
SELECT owner FROM table_name_53 WHERE horse_name = "icabad crane"
Who is the owner of Icabad Crane?
CREATE TABLE table_name_53 (owner VARCHAR, horse_name VARCHAR)
SELECT loss FROM table_name_59 WHERE record = "3-10"
Who loss the game when the record was 3-10?
CREATE TABLE table_name_59 (loss VARCHAR, record VARCHAR)
SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1
Show the date of the transcript which shows the least number of results, also list the id.
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
SELECT current_streak FROM table_name_27 WHERE last_5_meetings = "osu, 4-1"
what is the current streak when the last 5 meetings is osu, 4-1?
CREATE TABLE table_name_27 (current_streak VARCHAR, last_5_meetings VARCHAR)
SELECT record FROM table_name_4 WHERE team = "indiana"
What is the Record for the Team of Indiana?
CREATE TABLE table_name_4 (record VARCHAR, team VARCHAR)
SELECT elevation FROM table_name_1 WHERE route = 62
What is the Elevation of the mountain on Route 62?
CREATE TABLE table_name_1 (elevation VARCHAR, route VARCHAR)
SELECT pick__number FROM table_10975034_5 WHERE college = "Regina"
What is the pick number of regina?
CREATE TABLE table_10975034_5 (pick__number VARCHAR, college VARCHAR)
SELECT MAX(year) FROM table_name_59 WHERE rank < 28 AND accolade = "the 100 greatest metal albums of the decade"
What is the highest Year, when Rank is less than 28, and when Accolade is "The 100 greatest metal albums of the decade"?
CREATE TABLE table_name_59 (year INTEGER, rank VARCHAR, accolade VARCHAR)
SELECT record FROM table_name_65 WHERE date = "august 31"
Name the record for august 31
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3"
What is the average First Elected, when District is "Massachusetts 3"?
CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR)
SELECT molecular_target FROM table_name_10 WHERE marine_organism_α = "bacterium"
What is the molecular target of bacterium?
CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_α VARCHAR)
SELECT SUM(attendance) FROM table_name_34 WHERE opponent = "phillies" AND record = "30-33"
Which Attendance has an Opponent of phillies, and a Record of 30-33?
CREATE TABLE table_name_34 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT circuit FROM table_name_76 WHERE fastest_lap = "unknown" AND date = "july 19"
What circut has an unknown fastest lap on July 19?
CREATE TABLE table_name_76 (circuit VARCHAR, fastest_lap VARCHAR, date VARCHAR)
SELECT MIN(innings) FROM table_27922491_8 WHERE average = "30.03"
How many innings for the player with an average of 30.03?
CREATE TABLE table_27922491_8 (innings INTEGER, average VARCHAR)
SELECT enrollment__2005_ FROM table_2076490_1 WHERE type = "Baccalaureate college" AND school = "Granite State College"
What was the enrollment (2005) for baccalaureate colleges , for Granite State College?
CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, type VARCHAR, school VARCHAR)
SELECT Participant_ID, Participant_Type_Code, Participant_Details FROM Participants
What are all the the participant ids, type code and details?
CREATE TABLE Participants (Participant_ID VARCHAR, Participant_Type_Code VARCHAR, Participant_Details VARCHAR)
SELECT AVG(league_goals) FROM table_name_80 WHERE fa_cup_apps = "2" AND total_goals < 0
Which League Goals have FA Cup Apps of 2, and Total Goals smaller than 0?
CREATE TABLE table_name_80 (league_goals INTEGER, fa_cup_apps VARCHAR, total_goals VARCHAR)
SELECT teams FROM table_name_27 WHERE home = "1-0" AND season = "1988-89"
What teams has a home of 1-0, in the season 1988-89?
CREATE TABLE table_name_27 (teams VARCHAR, home VARCHAR, season VARCHAR)
SELECT content FROM table_name_58 WHERE television_service = "vesti"
What is the content of the Television service of Vesti?
CREATE TABLE table_name_58 (content VARCHAR, television_service VARCHAR)
SELECT to_par FROM table_name_59 WHERE score = 69 - 70 = 139
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 prize FROM table_name_37 WHERE runner_up = "simon ehne" AND winner = "david tighe"
What is Prize, when Runner-Up is "Simon Ehne", and when Winner is "David Tighe"?
CREATE TABLE table_name_37 (prize VARCHAR, runner_up VARCHAR, winner VARCHAR)