question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the score of the game when the team was 1-2?
CREATE TABLE table_13557843_3 (score VARCHAR, record VARCHAR)
SELECT score FROM table_13557843_3 WHERE record = "1-2"
what is the highest wickets when the matches is less than 5, player is jim laker and average is more than 52.44?
CREATE TABLE table_name_89 (wickets INTEGER, average VARCHAR, matches VARCHAR, player VARCHAR)
SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = "jim laker" AND average > 52.44
What is the aggregate for the first round for K.S.V. Waregem?
CREATE TABLE table_name_54 (aggregate VARCHAR, round VARCHAR, club VARCHAR)
SELECT aggregate FROM table_name_54 WHERE round = "first round" AND club = "k.s.v. waregem"
What were the number of laps led by the driver with a finish position of 14?
CREATE TABLE table_name_38 (laps VARCHAR, fin_pos VARCHAR)
SELECT laps AS Led FROM table_name_38 WHERE fin_pos = "14"
Name the deployable military 2011 for denmark
CREATE TABLE table_17971449_2 (deployable_military__2011 VARCHAR, _thousands_ VARCHAR, country VARCHAR)
SELECT deployable_military__2011, _thousands_ FROM table_17971449_2 WHERE country = "Denmark"
Who was the match against when on a clay surface during round 2r?
CREATE TABLE table_name_19 (against VARCHAR, round VARCHAR, surface VARCHAR)
SELECT against FROM table_name_19 WHERE round = "2r" AND surface = "clay"
Which Total has a Date of 1602, and Greater Doubles smaller than 16?
CREATE TABLE table_name_72 (total INTEGER, date VARCHAR, greater_doubles VARCHAR)
SELECT MAX(total) FROM table_name_72 WHERE date = 1602 AND greater_doubles < 16
What is the highest round of pick 3?
CREATE TABLE table_name_42 (round INTEGER, pick VARCHAR)
SELECT MAX(round) FROM table_name_42 WHERE pick = 3
What is the id of the order which has the most items?
CREATE TABLE orders (order_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR)
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY COUNT(*) DESC LIMIT 1
Which Bronze has a Year smaller than 1994, and a Silver of south korea?
CREATE TABLE table_name_45 (bronze VARCHAR, year VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_45 WHERE year < 1994 AND silver = "south korea"
Who played in the Toronto Raptors from 1995-96?
CREATE TABLE table_10015132_14 (player VARCHAR, years_in_toronto VARCHAR)
SELECT player FROM table_10015132_14 WHERE years_in_toronto = "1995-96"
What is the number of laps for the honda vehicle, with a grid of 13?
CREATE TABLE table_name_17 (laps VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "13"
How many grids for heinz-harald frentzen with 61 laps?
CREATE TABLE table_name_12 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_12 WHERE laps = 61 AND driver = "heinz-harald frentzen"
What is the player number for the player from Centenary?
CREATE TABLE table_name_66 (no_s_ VARCHAR, school_club_team_country VARCHAR)
SELECT no_s_ FROM table_name_66 WHERE school_club_team_country = "centenary"
What is the Attendance when the Result is l0-13?
CREATE TABLE table_name_59 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_59 WHERE result = "l0-13"
What is the hardness for the alloy that is liquid at 243 degrees C?
CREATE TABLE table_name_45 (hardness VARCHAR, liquid_at__°c_ VARCHAR)
SELECT hardness FROM table_name_45 WHERE liquid_at__°c_ = "243"
What was the Score that has an Attendance of 39,446?
CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_3 WHERE attendance = "39,446"
What is the record of the opponent that has a bye?
CREATE TABLE table_name_35 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_35 WHERE opponent = "bye"
What team was Temple playing on January 19?
CREATE TABLE table_29556461_7 (team VARCHAR, date VARCHAR)
SELECT team FROM table_29556461_7 WHERE date = "January 19"
What is the height of Patrick Femerling, of the Alba Berlin club?
CREATE TABLE table_name_36 (height VARCHAR, current_club VARCHAR, player VARCHAR)
SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling"
What's the Student Body with an Affiliation of Roman Catholic and has an Enrollment of 502?
CREATE TABLE table_name_27 (student_body VARCHAR, affiliation VARCHAR, enrollment VARCHAR)
SELECT student_body FROM table_name_27 WHERE affiliation = "roman catholic" AND enrollment = 502
Which Emission (in nanometers) that has a molar mass of 1078 g/mol?
CREATE TABLE table_name_86 (emit__nm_ VARCHAR, mass__g_mol_ VARCHAR)
SELECT emit__nm_ FROM table_name_86 WHERE mass__g_mol_ = "1078"
Who is the Director of the Original title of The Crying Game?
CREATE TABLE table_name_59 (director VARCHAR, original_title VARCHAR)
SELECT director FROM table_name_59 WHERE original_title = "the crying game"
Designation of pc800 has which highest Bus width (bits)?
CREATE TABLE table_name_51 (bus_width__bits_ INTEGER, designation VARCHAR)
SELECT MAX(bus_width__bits_) FROM table_name_51 WHERE designation = "pc800"
What was the AB team's position in table?
CREATE TABLE table_27782699_3 (position_in_table VARCHAR, team VARCHAR)
SELECT position_in_table FROM table_27782699_3 WHERE team = "AB"
What day was the ground subiaco?
CREATE TABLE table_name_8 (date VARCHAR, ground VARCHAR)
SELECT date FROM table_name_8 WHERE ground = "subiaco"
Which yard has a Completion of 64.9%?
CREATE TABLE table_name_26 (yards VARCHAR, completion__percentage VARCHAR)
SELECT yards FROM table_name_26 WHERE completion__percentage = "64.9%"
In Round 6, who is the winning team?
CREATE TABLE table_26267607_2 (winning_team VARCHAR, round VARCHAR)
SELECT winning_team FROM table_26267607_2 WHERE round = "6"
What was the internet explorer % when firefox was 24.98%?
CREATE TABLE table_name_47 (internet_explorer VARCHAR, firefox VARCHAR)
SELECT internet_explorer FROM table_name_47 WHERE firefox = "24.98%"
How many judges were there when the result is safe with a vote percentage of 10.7%?
CREATE TABLE table_26375386_20 (judges INTEGER, result VARCHAR, vote_percentage VARCHAR)
SELECT MIN(judges) FROM table_26375386_20 WHERE result = "Safe" AND vote_percentage = "10.7%"
Find name of the services that has never been used.
CREATE TABLE services (service_name VARCHAR); CREATE TABLE party_services (service_id VARCHAR); CREATE TABLE services (service_name VARCHAR, service_id VARCHAR)
SELECT service_name FROM services EXCEPT SELECT t1.service_name FROM services AS t1 JOIN party_services AS t2 ON t1.service_id = t2.service_id
Which ceremony has the best lyricist category?
CREATE TABLE table_name_67 (ceremony VARCHAR, category VARCHAR)
SELECT ceremony FROM table_name_67 WHERE category = "best lyricist"
What is the Opponent on December 3, 1979?
CREATE TABLE table_name_25 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_25 WHERE date = "december 3, 1979"
Find the country of the airlines whose name starts with 'Orbit'.
CREATE TABLE airlines (country VARCHAR, name VARCHAR)
SELECT country FROM airlines WHERE name LIKE 'Orbit%'
Which United States player has a To par of 14?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_2 WHERE country = "united states" AND to_par = 14
What position is the player from Chapel Hill, NC?
CREATE TABLE table_20785990_2 (position VARCHAR, home_town VARCHAR)
SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC"
What is the Ben-Tahir with a 3269 Doucet?
CREATE TABLE table_name_92 (ben_tahir VARCHAR, doucet VARCHAR)
SELECT ben_tahir FROM table_name_92 WHERE doucet = "3269"
What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
CREATE TABLE table_name_75 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 23
What's the total number of songs originally performed by Anna Nalick?
CREATE TABLE table_12310814_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT COUNT(song_choice) FROM table_12310814_1 WHERE original_artist = "Anna Nalick"
What was the fastest lap for Grand Prix dutch tt?
CREATE TABLE table_name_56 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT fastest_lap FROM table_name_56 WHERE grand_prix = "dutch tt"
How many silvers did Turkey get?
CREATE TABLE table_name_78 (silver VARCHAR, nation VARCHAR)
SELECT silver FROM table_name_78 WHERE nation = "turkey"
What is the away side's score when richmond is at home?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_3 WHERE home_team = "richmond"
What is Tries Against, when Tries For is 20?
CREATE TABLE table_name_22 (tries_against VARCHAR, tries_for VARCHAR)
SELECT tries_against FROM table_name_22 WHERE tries_for = "20"
Who is the Winner, when the City is Berlin?
CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR)
SELECT winner FROM table_name_19 WHERE city = "berlin"
What is the number of Not Outs when there were more than 327 runs and 24 innings, and an average of 29.54
CREATE TABLE table_name_41 (not_outs VARCHAR, average VARCHAR, runs VARCHAR, innings VARCHAR)
SELECT not_outs FROM table_name_41 WHERE runs > 327 AND innings > 24 AND average = 29.54
How many women has reached the title of Miss International representing the country ranked as number 1?
CREATE TABLE table_29942205_1 (miss_international INTEGER, rank VARCHAR)
SELECT MIN(miss_international) FROM table_29942205_1 WHERE rank = 1
Where is Fred Couples from?
CREATE TABLE table_name_71 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_71 WHERE player = "fred couples"
When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious Party?
CREATE TABLE table_name_37 (term_end VARCHAR, party VARCHAR, minister VARCHAR)
SELECT term_end FROM table_name_37 WHERE party = "national religious party" AND minister = "shlomo-yisrael ben-meir"
What is the minimum enrollment of the cyclones?
CREATE TABLE table_20190834_1 (enrollment INTEGER, team_name VARCHAR)
SELECT MIN(enrollment) FROM table_20190834_1 WHERE team_name = "Cyclones"
Which Week has a TV Time of cbs 1:00pm, and an Attendance of 72,714?
CREATE TABLE table_name_44 (week VARCHAR, tv_time VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_44 WHERE tv_time = "cbs 1:00pm" AND attendance = "72,714"
Which Nationality has a Player of rudy poeschek?
CREATE TABLE table_name_51 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_51 WHERE player = "rudy poeschek"
Who was the away team at Junction Oval?
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_63 WHERE venue = "junction oval"
what is the maximum tonnage where date entered service is 25 march 1986
CREATE TABLE table_11662133_3 (tonnage INTEGER, date_entered_service VARCHAR)
SELECT MAX(tonnage) FROM table_11662133_3 WHERE date_entered_service = "25 March 1986"
What is the title of the episode that was directed by Roy Dupuis?
CREATE TABLE table_name_38 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_name_38 WHERE directed_by = "roy dupuis"
The To par of +14 was won in what year(s)?
CREATE TABLE table_name_17 (year_s__won VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_17 WHERE to_par = "+14"
Name the segment d for combination locks
CREATE TABLE table_15187735_3 (segment_d VARCHAR, segment_a VARCHAR)
SELECT segment_d FROM table_15187735_3 WHERE segment_a = "Combination Locks"
Who was the winner at the tournament in Hamburg?
CREATE TABLE table_name_11 (winner VARCHAR, tournament VARCHAR)
SELECT winner FROM table_name_11 WHERE tournament = "hamburg"
What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion?
CREATE TABLE table_1682026_3 (assets__billion_$_ VARCHAR, headquarters VARCHAR, profits__billion_$_ VARCHAR)
SELECT assets__billion_$_ FROM table_1682026_3 WHERE headquarters = "China" AND profits__billion_$_ = "21.2"
What is the Date, when the Winner is Aaron Gustavson?
CREATE TABLE table_name_79 (date VARCHAR, winner VARCHAR)
SELECT date FROM table_name_79 WHERE winner = "aaron gustavson"
Who was Andrew and Georgies guest when Jamie and Johns guest was Jessica Ennis?
CREATE TABLE table_29141354_2 (andrew_and_georgies_guest VARCHAR, jamie_and_johns_guest VARCHAR)
SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Jessica Ennis"
What is the ISBN of the book with a first edition in May 2011?
CREATE TABLE table_name_42 (isbn VARCHAR, first_edition VARCHAR)
SELECT isbn FROM table_name_42 WHERE first_edition = "may 2011"
How many titles have a production code of 211?
CREATE TABLE table_16581695_3 (title VARCHAR, production_code VARCHAR)
SELECT COUNT(title) FROM table_16581695_3 WHERE production_code = 211
Where was the tour when jing junhong li jiawei played womens doubles?
CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)
SELECT year_location FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"
How many districts does gary condit represent?
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = "Gary Condit"
Which month had a sort value under 39 and 2 deaths?
CREATE TABLE table_name_73 (month VARCHAR, sort_restore VARCHAR, deaths VARCHAR)
SELECT month FROM table_name_73 WHERE sort_restore < 39 AND deaths = "2"
What type of aircraft was the plane with a tail number of ya-bao?
CREATE TABLE table_name_75 (aircraft VARCHAR, tail_number VARCHAR)
SELECT aircraft FROM table_name_75 WHERE tail_number = "ya-bao"
what is he name of the county where the 2nd division and the 41st regiment was
CREATE TABLE table_29458735_5 (county VARCHAR, division VARCHAR, regiment VARCHAR)
SELECT county FROM table_29458735_5 WHERE division = "2nd division" AND regiment = "41st regiment"
What is the lowest number drawn with less than 2 lost?
CREATE TABLE table_name_36 (drawn INTEGER, lost INTEGER)
SELECT MIN(drawn) FROM table_name_36 WHERE lost < 2
Which province is Pamplona located in?
CREATE TABLE table_name_11 (province VARCHAR, city VARCHAR)
SELECT province FROM table_name_11 WHERE city = "pamplona"
how many times is the home team wollongong hawks?
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks"
What is the largest crowd for a Melbourne away team?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_35 WHERE away_team = "melbourne"
What date final has 1982 as the year?
CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
SELECT date_final FROM table_name_59 WHERE year = "1982"
What religion has a para of 56.5%?
CREATE TABLE table_name_65 (religion VARCHAR, para VARCHAR)
SELECT religion FROM table_name_65 WHERE para = "56.5%"
How many gold are a rank 1 and larger than 16?
CREATE TABLE table_name_56 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT COUNT(gold) FROM table_name_56 WHERE rank = "1" AND total > 16
What surface was the April 24, 2003 match played on?
CREATE TABLE table_name_88 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_88 WHERE date = "april 24, 2003"
What's the largest crowd that attended a game at junction oval?
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_36 WHERE venue = "junction oval"
Tell me the lowest Bronze for gold of 3 in the winter for cross-country skiing and silver less than 0
CREATE TABLE table_name_56 (bronze INTEGER, silver VARCHAR, sport VARCHAR, gold VARCHAR, games VARCHAR)
SELECT MIN(bronze) FROM table_name_56 WHERE gold = 3 AND games = "winter" AND sport = "cross-country skiing" AND silver < 0
What was the rating in Brisbane the week it was 276000 in Melbourne?
CREATE TABLE table_24291077_8 (brisbane INTEGER, melbourne VARCHAR)
SELECT MAX(brisbane) FROM table_24291077_8 WHERE melbourne = 276000
What is the percentage of La Canada Flintridge when Tujunga is 7%?
CREATE TABLE table_name_58 (la_cañada_flintridge VARCHAR, tujunga VARCHAR)
SELECT la_cañada_flintridge FROM table_name_58 WHERE tujunga = "7%"
What is the capacity number for Yunost?
CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR)
SELECT COUNT(capacity) FROM table_name_27 WHERE venue = "yunost"
What is the tie number when Wigan Athletic is the home team?
CREATE TABLE table_name_21 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_21 WHERE home_team = "wigan athletic"
Who's the Republican ticket with a Communist ticket of (none), and a Socialist ticket of joseph g. glass?
CREATE TABLE table_name_8 (republican_ticket VARCHAR, communist_ticket VARCHAR, socialist_ticket VARCHAR)
SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass"
What NHL team drafted Rob Palmer?
CREATE TABLE table_1473672_6 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1473672_6 WHERE player = "Rob Palmer"
What Nickname has a Location of Southern River?
CREATE TABLE table_name_82 (nickname VARCHAR, location VARCHAR)
SELECT nickname FROM table_name_82 WHERE location = "southern river"
What is the last match with a vacancy date of round 2 and Ney Franco as outgoing manager?
CREATE TABLE table_name_26 (last_match VARCHAR, date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT last_match FROM table_name_26 WHERE date_of_vacancy = "round 2" AND outgoing_manager = "ney franco"
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?
CREATE TABLE table_name_62 (enrollment INTEGER, founded VARCHAR, location VARCHAR, affiliation VARCHAR)
SELECT SUM(enrollment) FROM table_name_62 WHERE location = "buffalo, new york" AND affiliation = "public" AND founded > 1846
How many hometowns are there when Charis Prep was the previous school?
CREATE TABLE table_29970488_2 (hometown VARCHAR, previous_school VARCHAR)
SELECT COUNT(hometown) FROM table_29970488_2 WHERE previous_school = "Charis Prep"
What is the July temperature where the annual precipitation is 514mm (20.2in)?
CREATE TABLE table_name_23 (july VARCHAR, annual_precipitation VARCHAR)
SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)"
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?
CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR)
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75
If the team is Worcestershire and the Matched had were 5, what is the highest score?
CREATE TABLE table_27268238_4 (highest_score VARCHAR, matches VARCHAR, team VARCHAR)
SELECT highest_score FROM table_27268238_4 WHERE matches = 5 AND team = "Worcestershire"
What is the date for the game where Platense was the home side?
CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_99 WHERE home = "platense"
What is the lowest played number when points are larger than 32, and a wins are larger than 18?
CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, wins VARCHAR)
SELECT MIN(played) FROM table_name_52 WHERE points > 32 AND wins > 18
What is the name of the home captain when the result was Aus by 32 runs?
CREATE TABLE table_name_55 (home_captain VARCHAR, result VARCHAR)
SELECT home_captain FROM table_name_55 WHERE result = "aus by 32 runs"
What is the sum of participants in 2013 for Russia when there were 5 in 2010 and less than 4 in 2012?
CREATE TABLE table_name_99 (country VARCHAR)
SELECT SUM(2013) FROM table_name_99 WHERE 2010 = 5 AND country = "russia" AND 2012 < 4
If the amount of viewers is 2.48 million, what is the original air date?
CREATE TABLE table_24639086_3 (original_air_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT original_air_date FROM table_24639086_3 WHERE viewers__in_millions_ = "2.48"
What is 2009, when Tournament is "Year-End Ranking"?
CREATE TABLE table_name_77 (tournament VARCHAR)
SELECT 2009 FROM table_name_77 WHERE tournament = "year-end ranking"
What Runners-up have a Venue in Broadwood Stadium?
CREATE TABLE table_name_75 (runners_up VARCHAR, venue VARCHAR)
SELECT runners_up FROM table_name_75 WHERE venue = "broadwood stadium"
Find the names and number of works of the three artists who have produced the most songs.
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3
What is the geo code of the township with ANSI code 1759243?
CREATE TABLE table_18600760_9 (geo_id VARCHAR, ansi_code VARCHAR)
SELECT geo_id FROM table_18600760_9 WHERE ansi_code = 1759243
Name the country for athlete of ziedonis zaļkalns
CREATE TABLE table_name_72 (country VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_72 WHERE athlete = "ziedonis zaļkalns"