question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What event did Sjerstin Vermeulen receive a 66.452 result?
CREATE TABLE table_name_57 (event VARCHAR, athlete VARCHAR, result VARCHAR)
SELECT event FROM table_name_57 WHERE athlete = "sjerstin vermeulen" AND result = "66.452"
What is the simplified Chinese name for the 9th album?
CREATE TABLE table_name_21 (chinese__simplified_ VARCHAR, album_number VARCHAR)
SELECT chinese__simplified_ FROM table_name_21 WHERE album_number = "9th"
What is the prisoner's name that is currently 29 years old?
CREATE TABLE table_name_35 (name VARCHAR, current_age VARCHAR)
SELECT name FROM table_name_35 WHERE current_age = 29
What's the Class for the city the license plate was issued in great barrington, massachusetts?
CREATE TABLE table_name_16 (class VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_16 WHERE city_of_license = "great barrington, massachusetts"
What is the location of the game that was friendly and resulted in 2-3?
CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR)
SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3"
What is Result, when Date is 11 August 1992?
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_26 WHERE date = "11 august 1992"
What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains?
CREATE TABLE table_name_72 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR)
SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = "mühlig-hofmann mountains" AND rank < 10
Tell me the average top 10 for cuts made less than 10, wins less than 1 and top 25 of 5
CREATE TABLE table_name_42 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR, top_25 VARCHAR)
SELECT AVG(top_10) FROM table_name_42 WHERE wins < 1 AND top_25 = 5 AND cuts_made < 10
what is the name of award when the name of film is sana keithel?
CREATE TABLE table_25926120_7 (name_of_award VARCHAR, name_of_film VARCHAR)
SELECT name_of_award FROM table_25926120_7 WHERE name_of_film = "Sana Keithel"
List the medicine name and trade name which can both interact as 'inhibitor' and 'activitor' with enzymes.
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR)
SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor'
What is the compound name listed where marine organism α is worm
CREATE TABLE table_12715053_1 (compound_name VARCHAR, marine_organism_α VARCHAR)
SELECT compound_name FROM table_12715053_1 WHERE marine_organism_α = "Worm"
Compute the average price of all products with manufacturer code equal to 2.
CREATE TABLE products (price INTEGER, Manufacturer VARCHAR)
SELECT AVG(price) FROM products WHERE Manufacturer = 2
Find the first name of students who are living in the Smith Hall.
CREATE TABLE student (fname VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, dorm_name VARCHAR)
SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.dorm_name = 'Smith Hall'
Name the record when attendance 42827
CREATE TABLE table_14945881_1 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_14945881_1 WHERE attendance = 42827
What 1997 has grand slams for the 1999?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams"
What are the modern equivalents for the province of "hanju"?
CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, province VARCHAR)
SELECT modern_equivalent FROM table_160510_1 WHERE province = "Hanju"
What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances?
CREATE TABLE table_274117_5 (seasons_by_team VARCHAR, position VARCHAR, number VARCHAR)
SELECT seasons_by_team FROM table_274117_5 WHERE position = "OL" AND number = 11
What is the name of the stadium in Brisbane?
CREATE TABLE table_name_17 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_17 WHERE city = "brisbane"
Which pinyin have a population of 374047?
CREATE TABLE table_1204998_2 (pinyin VARCHAR, population VARCHAR)
SELECT pinyin FROM table_1204998_2 WHERE population = 374047
How many acres is the townland of Maddenstown Middle?
CREATE TABLE table_28802165_1 (s_acre VARCHAR, townland VARCHAR)
SELECT s_acre FROM table_28802165_1 WHERE townland = "Maddenstown Middle"
What is the average election for vicenza province with the liga veneta party?
CREATE TABLE table_name_31 (election INTEGER, party VARCHAR, province VARCHAR)
SELECT AVG(election) FROM table_name_31 WHERE party = "liga veneta" AND province = "vicenza"
What country was the film made in that was made after 2011?
CREATE TABLE table_name_10 (country VARCHAR, year INTEGER)
SELECT country FROM table_name_10 WHERE year > 2011
What is the highest value for multi lane if category wise is major district roads?
CREATE TABLE table_28723146_2 (multi_lane INTEGER, category_wise VARCHAR)
SELECT MAX(multi_lane) FROM table_28723146_2 WHERE category_wise = "Major district roads"
Name the competition for november 19, 2008
CREATE TABLE table_name_82 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_82 WHERE date = "november 19, 2008"
What is the total number scored for the team that had 19 points and a position larger than 4?
CREATE TABLE table_name_48 (scored VARCHAR, position VARCHAR, points VARCHAR)
SELECT COUNT(scored) FROM table_name_48 WHERE position > 4 AND points = 19
What was the outcome of the election in Pennsylvania 6 district?
CREATE TABLE table_1341640_39 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341640_39 WHERE district = "Pennsylvania 6"
what is the highest longitude for county mountrail and the water (sqmi) is less than 0.075?
CREATE TABLE table_name_38 (longitude INTEGER, county VARCHAR, water__sqmi_ VARCHAR)
SELECT MAX(longitude) FROM table_name_38 WHERE county = "mountrail" AND water__sqmi_ < 0.075
Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%?
CREATE TABLE table_name_86 (liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR, seats_won VARCHAR, seats_in_house VARCHAR)
SELECT liberal_leader FROM table_name_86 WHERE seats_won < 100 AND seats_in_house = 215 AND _percentage_of_popular_vote = "43.1%"
What is the name of the episode that aired originally on October 18, 1991?
CREATE TABLE table_2468961_2 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_2468961_2 WHERE original_air_date = "October 18, 1991"
if the best run was 138, what is the amount of games lost?
CREATE TABLE table_27533947_1 (games_lost VARCHAR, best_run VARCHAR)
SELECT games_lost FROM table_27533947_1 WHERE best_run = 138
When michael van stayen is the points classification what is the team classification?
CREATE TABLE table_28298471_14 (team_classification VARCHAR, points_classification VARCHAR)
SELECT team_classification FROM table_28298471_14 WHERE points_classification = "Michael Van Stayen"
How many points when Bill Benson was the winner?
CREATE TABLE table_name_95 (points VARCHAR, winner VARCHAR)
SELECT points FROM table_name_95 WHERE winner = "bill benson"
Which Partner is on 22 april 2002?
CREATE TABLE table_name_35 (partner VARCHAR, date VARCHAR)
SELECT partner FROM table_name_35 WHERE date = "22 april 2002"
Where is shabazz muhammad from?
CREATE TABLE table_name_58 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_58 WHERE player = "shabazz muhammad"
Where did the game on March 11 take place and how many people attended?
CREATE TABLE table_name_68 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_68 WHERE date = "march 11"
Where did Japan place?
CREATE TABLE table_name_19 (place VARCHAR, country VARCHAR)
SELECT place FROM table_name_19 WHERE country = "japan"
What was the score of Game 13?
CREATE TABLE table_name_32 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_32 WHERE game = "13"
What is the smallest converted value at number 19?
CREATE TABLE table_1895522_2 (converted INTEGER, number VARCHAR)
SELECT MIN(converted) FROM table_1895522_2 WHERE number = "19"
What are the races that johnny rutherford has won?
CREATE TABLE table_10706879_3 (name VARCHAR, winning_driver VARCHAR)
SELECT name FROM table_10706879_3 WHERE winning_driver = "Johnny Rutherford"
What was the Queens number when Brooklyn was 201,866?
CREATE TABLE table_name_57 (queens VARCHAR, brooklyn VARCHAR)
SELECT queens FROM table_name_57 WHERE brooklyn = "201,866"
What is Result, when Year is 1948, and when Date is November 7?
CREATE TABLE table_name_31 (result VARCHAR, year VARCHAR, date VARCHAR)
SELECT result FROM table_name_31 WHERE year = 1948 AND date = "november 7"
Find the room number of the rooms which can sit 50 to 100 students and their buildings.
CREATE TABLE classroom (building VARCHAR, room_number VARCHAR, capacity INTEGER)
SELECT building, room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
What loan expires date has a Date of 29 december 2003?
CREATE TABLE table_name_6 (loan_expires VARCHAR, date VARCHAR)
SELECT loan_expires FROM table_name_6 WHERE date = "29 december 2003"
What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3?
CREATE TABLE table_name_52 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_52 WHERE nation = "sweden" AND bronze < 3
In what week was the Result L 15-13?
CREATE TABLE table_name_91 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-13"
What is the date of successors formal installation when the reason for change is resigned december 4, 1819?
CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, reason_for_change VARCHAR)
SELECT date_of_successors_formal_installation FROM table_225099_3 WHERE reason_for_change = "Resigned December 4, 1819"
What club had 404 points against?
CREATE TABLE table_13741576_6 (club VARCHAR, points_against VARCHAR)
SELECT club FROM table_13741576_6 WHERE points_against = "404"
What is the Lok Sabha for Dravida Munnetra Kazhagam, in 1999-04?
CREATE TABLE table_name_13 (lok_sabha VARCHAR, party_affiliation VARCHAR, duration VARCHAR)
SELECT lok_sabha FROM table_name_13 WHERE party_affiliation = "dravida munnetra kazhagam" AND duration = "1999-04"
Who has the Winning score of –10 (66-71-62-71=270) ?
CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR)
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270)
How much Hyndburn has a Fylde larger than 3?
CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER)
SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3
What was the results of the 71st Academy Awards show?
CREATE TABLE table_name_66 (results VARCHAR, awards_show VARCHAR)
SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards"
What is the highest laps of the year when the rank was 14?
CREATE TABLE table_name_73 (laps INTEGER, rank VARCHAR)
SELECT MAX(laps) FROM table_name_73 WHERE rank = "14"
What are the first name, last name, and gender of all the good customers? Order by their last name.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, gender_mf VARCHAR, good_or_bad_customer VARCHAR)
SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name
Which School/Club Team has a Years in Orlando of 1997–1998?
CREATE TABLE table_name_92 (school_club_team VARCHAR, years_in_orlando VARCHAR)
SELECT school_club_team FROM table_name_92 WHERE years_in_orlando = "1997–1998"
How many airlines are there?
CREATE TABLE airlines (Id VARCHAR)
SELECT COUNT(*) FROM airlines
What is the total number of second place finishes when the city & nation was Chicago, USA?
CREATE TABLE table_2146364_2 (second_place VARCHAR, city_ VARCHAR, _nation VARCHAR)
SELECT COUNT(second_place) FROM table_2146364_2 WHERE city_ & _nation = "Chicago, USA"
What is the maximum starts that result in an average finish of 16.5?
CREATE TABLE table_1875157_2 (starts INTEGER, avg_finish VARCHAR)
SELECT MAX(starts) FROM table_1875157_2 WHERE avg_finish = "16.5"
Who won the Paris-Roubaix in 2006?
CREATE TABLE table_name_33 (paris_roubaix___fra__ VARCHAR, year VARCHAR)
SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006
how many persons got the third position whan sanyo electric tokushima got the fourth position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, fourth_place VARCHAR)
SELECT COUNT(third_place) FROM table_21632864_1 WHERE fourth_place = "Sanyo Electric Tokushima"
Who was the other team on march 27?
CREATE TABLE table_27712702_11 (team VARCHAR, date VARCHAR)
SELECT team FROM table_27712702_11 WHERE date = "March 27"
What is the unit for a submarine type ship from Norway?
CREATE TABLE table_name_74 (unit VARCHAR, type VARCHAR, origin VARCHAR)
SELECT unit FROM table_name_74 WHERE type = "submarine" AND origin = "norway"
What was the score of the game against the San Diego Chargers?
CREATE TABLE table_name_50 (week INTEGER, opponent VARCHAR)
SELECT SUM(week) FROM table_name_50 WHERE opponent = "san diego chargers"
How many tries for did the club with a 3 losing bonus and 45 points have?
CREATE TABLE table_name_12 (tries_for VARCHAR, losing_bonus VARCHAR, points VARCHAR)
SELECT tries_for FROM table_name_12 WHERE losing_bonus = "3" AND points = "45"
What is the average Qiangshu lower than rank 4 and less than 9.22 Jianshu?
CREATE TABLE table_name_45 (qiangshu INTEGER, rank VARCHAR, jianshu VARCHAR)
SELECT AVG(qiangshu) FROM table_name_45 WHERE rank > 4 AND jianshu < 9.22
What position in the Vancouver Canucks has a Pick # of 101?
CREATE TABLE table_name_43 (position VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_43 WHERE nhl_team = "vancouver canucks" AND pick__number = "101"
When the game was played at Mile High Stadium before week 9, what was the result?
CREATE TABLE table_name_87 (result VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT result FROM table_name_87 WHERE week < 9 AND game_site = "mile high stadium"
What are the game modes for the game released in 2007?
CREATE TABLE table_1616608_2 (game_modes VARCHAR, released_date VARCHAR)
SELECT game_modes FROM table_1616608_2 WHERE released_date = "2007"
Who did team phoenix visit in their home?
CREATE TABLE table_name_32 (home VARCHAR, visitor VARCHAR)
SELECT home FROM table_name_32 WHERE visitor = "phoenix"
Can you tell me the Position that has the Driver of bib stillwell?
CREATE TABLE table_name_41 (position VARCHAR, driver VARCHAR)
SELECT position FROM table_name_41 WHERE driver = "bib stillwell"
Where was the FC match with a score of 12 played?
CREATE TABLE table_name_45 (location VARCHAR, fc_matches VARCHAR)
SELECT location FROM table_name_45 WHERE fc_matches = "12"
On what Date was The Open Championship in Japan?
CREATE TABLE table_name_99 (date VARCHAR, major VARCHAR, country VARCHAR)
SELECT date FROM table_name_99 WHERE major = "the open championship" AND country = "japan"
What is the Cavaliers Record in the game with a Score of 98-99?
CREATE TABLE table_name_59 (record VARCHAR, score VARCHAR)
SELECT record FROM table_name_59 WHERE score = "98-99"
Which type of record has result/games of b.c. 16 @ edmonton 22?
CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR)
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "B.C. 16 @ Edmonton 22"
How many air dates are there for production code 206?
CREATE TABLE table_11630008_4 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(original_air_date) FROM table_11630008_4 WHERE production_code = 206
Name the pole positon for korean grand prix
CREATE TABLE table_name_28 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT pole_position FROM table_name_28 WHERE grand_prix = "korean grand prix"
Which Year(s) of manufacture has a Quantity of 2, and a Type of b n2t?
CREATE TABLE table_name_13 (year_s__of_manufacture VARCHAR, quantity VARCHAR, type VARCHAR)
SELECT year_s__of_manufacture FROM table_name_13 WHERE quantity = 2 AND type = "b n2t"
Who was the home team of the game where Footscray is the away team?
CREATE TABLE table_name_52 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_52 WHERE away_team = "footscray"
What date did the prime minister who entered office on 7 December 1916 leave office?
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR)
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916"
What year had Nintendo EAD, Monolith Soft as developers?
CREATE TABLE table_name_36 (year INTEGER, developer_s_ VARCHAR)
SELECT SUM(year) FROM table_name_36 WHERE developer_s_ = "nintendo ead, monolith soft"
How many people were in attendance at Hawthorn's home match?
CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_60 WHERE home_team = "hawthorn"
What is Year(s) Won, when Total is "145", and when Country is "United States"?
CREATE TABLE table_name_40 (year_s__won VARCHAR, total VARCHAR, country VARCHAR)
SELECT year_s__won FROM table_name_40 WHERE total = 145 AND country = "united states"
Which station has programming of Me-TV?
CREATE TABLE table_name_78 (station VARCHAR, programming VARCHAR)
SELECT station FROM table_name_78 WHERE programming = "me-tv"
Name the country moving to chelsea
CREATE TABLE table_name_24 (country VARCHAR, moving_to VARCHAR)
SELECT country FROM table_name_24 WHERE moving_to = "chelsea"
Who directed the episode that is written by Eli Attie and production code is 2t5018?
CREATE TABLE table_29152820_1 (directed_by VARCHAR, written_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018"
What is 1992, when 1999 is "Year-End Championship"?
CREATE TABLE table_name_74 (Id VARCHAR)
SELECT 1992 FROM table_name_74 WHERE 1999 = "year-end championship"
What was the value in 2009 when 2005 was A for the Australian Open?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT 2009 FROM table_name_5 WHERE 2005 = "a" AND tournament = "australian open"
Name the accession number for sequence similarity being 54
CREATE TABLE table_27155678_2 (accession_number VARCHAR, sequence_similarity VARCHAR)
SELECT accession_number FROM table_27155678_2 WHERE sequence_similarity = 54
What were the starts when the points dropped 18?
CREATE TABLE table_24937583_1 (races__starts_ VARCHAR, points__dropped_points_ VARCHAR)
SELECT races__starts_ FROM table_24937583_1 WHERE points__dropped_points_ = "18"
what's the turbo where trim is 2.0 20v
CREATE TABLE table_11167610_1 (turbo VARCHAR, trim VARCHAR)
SELECT turbo FROM table_11167610_1 WHERE trim = "2.0 20v"
In the Class T, what is the total of the 1958 UTA?
CREATE TABLE t (Id VARCHAR)
SELECT COUNT(1958 AS _uta) FROM "t" AS able_name_49 WHERE class = "t"
What is the highest goals for the position after 10, a goal difference less than -24, and played more than 30 times?
CREATE TABLE table_name_46 (goals_for INTEGER, played VARCHAR, position VARCHAR, goal_difference VARCHAR)
SELECT MAX(goals_for) FROM table_name_46 WHERE position > 10 AND goal_difference < -24 AND played > 30
Which country has assets of x, an inception of 2007, and an abbreviation of adic?
CREATE TABLE table_name_24 (country VARCHAR, abbreviation VARCHAR, assets_us$billion VARCHAR, inception VARCHAR)
SELECT country FROM table_name_24 WHERE assets_us$billion = "x" AND inception = "2007" AND abbreviation = "adic"
How many different types of settlements does Nova Pazova fall into?
CREATE TABLE table_2562572_53 (type VARCHAR, settlement VARCHAR)
SELECT COUNT(type) FROM table_2562572_53 WHERE settlement = "Nova Pazova"
Which capitals have an area of exactly 377930 square km?
CREATE TABLE table_19605700_1 (capital VARCHAR, area_km² VARCHAR)
SELECT capital FROM table_19605700_1 WHERE area_km² = 377930
Who was the top picki n the draft?
CREATE TABLE table_10360656_1 (choice INTEGER)
SELECT MIN(choice) FROM table_10360656_1
What's the score of Lee Janzen in T4 place?
CREATE TABLE table_name_94 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT score FROM table_name_94 WHERE place = "t4" AND player = "lee janzen"
Which Score has a Losing Team of sydney roosters, and a Total of 88?
CREATE TABLE table_name_77 (score VARCHAR, losing_team VARCHAR, total VARCHAR)
SELECT score FROM table_name_77 WHERE losing_team = "sydney roosters" AND total = 88
Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?
CREATE TABLE table_name_14 (years_as_tallest VARCHAR, height_metres___ft VARCHAR)
SELECT years_as_tallest FROM table_name_14 WHERE height_metres___ft = "01.0 27 / 90"
What was the outcome in the championship where the final score was 6–7(1), 2–6, 6–4, 7–5, 6–7(2)?
CREATE TABLE table_2362486_1 (outcome VARCHAR, score_in_the_final VARCHAR)
SELECT outcome FROM table_2362486_1 WHERE score_in_the_final = "6–7(1), 2–6, 6–4, 7–5, 6–7(2)"
Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a General election smaller than 1992?
CREATE TABLE table_name_6 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR)
SELECT MIN(seats) FROM table_name_6 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election < 1992