question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is Score, when Date is 10 July 2011?
CREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_65 WHERE date = "10 july 2011"
What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2?
CREATE TABLE table_name_83 (attendance INTEGER, location VARCHAR, game VARCHAR)
SELECT SUM(attendance) FROM table_name_83 WHERE location = "oakland-alameda county coliseum" AND game = 2
What is Bob Ostovich's opponents record?
CREATE TABLE table_name_20 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_20 WHERE opponent = "bob ostovich"
In what TV season did the 3rd season air?
CREATE TABLE table_1348989_2 (TV VARCHAR, season VARCHAR)
SELECT TV AS season FROM table_1348989_2 WHERE season = "3rd"
On what year was the local government area with a surface of 4563 square kilometers established?
CREATE TABLE table_23685890_2 (est VARCHAR, land_area__km²_ VARCHAR)
SELECT est FROM table_23685890_2 WHERE land_area__km²_ = "4563"
what is the last title when the titles is more than 12 and the position in 2012 is 7th
CREATE TABLE table_name_91 (last_title VARCHAR, titles VARCHAR, position_in_2012 VARCHAR)
SELECT last_title FROM table_name_91 WHERE titles > 12 AND position_in_2012 = "7th"
Which has a Score of 6–1, 3–0 ret.?
CREATE TABLE table_name_45 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_45 WHERE score = "6–1, 3–0 ret."
What is Score In The Final, when Date is "22 October 1990"?
CREATE TABLE table_name_94 (score_in_the_final VARCHAR, date VARCHAR)
SELECT score_in_the_final FROM table_name_94 WHERE date = "22 october 1990"
What week was the game played on November 12, 1961, with an attendance of 7,859 played?
CREATE TABLE table_name_71 (week INTEGER, date VARCHAR, attendance VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE date = "november 12, 1961" AND attendance < 7 OFFSET 859
what's the land area with seat of rcm being granby
CREATE TABLE table_1011906_1 (land_area VARCHAR, seat_of_rcm VARCHAR)
SELECT land_area FROM table_1011906_1 WHERE seat_of_rcm = "Granby"
WHAT DATE HAD A GAME SMALLER THAN 58, AND FROM BOSTON?
CREATE TABLE table_name_57 (date VARCHAR, game VARCHAR, team VARCHAR)
SELECT date FROM table_name_57 WHERE game < 58 AND team = "boston"
Which song has votes greater than 640 and a draw of 1?
CREATE TABLE table_name_62 (song VARCHAR, votes VARCHAR, draw VARCHAR)
SELECT song FROM table_name_62 WHERE votes > 640 AND draw = 1
What is the home/away of the game at Nickerson Field at July 10?
CREATE TABLE table_name_68 (home_away VARCHAR, field VARCHAR, date VARCHAR)
SELECT home_away FROM table_name_68 WHERE field = "nickerson field" AND date = "july 10"
What was the categoria when E.E.U.U was the country?
CREATE TABLE table_27501971_2 (categoría VARCHAR, country VARCHAR)
SELECT categoría FROM table_27501971_2 WHERE country = "E.E.U.U"
What tournament took place on October 11, 2013?
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "october 11, 2013"
What is the home record for the Auxerre club?
CREATE TABLE table_name_34 (home VARCHAR, club VARCHAR)
SELECT home FROM table_name_34 WHERE club = "auxerre"
What is the least amount of extra points made in by a player?
CREATE TABLE table_14342210_6 (extra_points INTEGER)
SELECT MIN(extra_points) FROM table_14342210_6
What's the highest total of Romania when the bronze was less than 2?
CREATE TABLE table_name_14 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MAX(total) FROM table_name_14 WHERE nation = "romania" AND bronze < 2
What is the total number of To Par, when Money ( $ ) is less than 387, and when Player is "Al Brosch"?
CREATE TABLE table_name_33 (to_par VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT COUNT(to_par) FROM table_name_33 WHERE money___$__ < 387 AND player = "al brosch"
What team was opponen in baltimore, at 2:00pm, on 4/06/08?
CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR, city VARCHAR, time VARCHAR)
SELECT opponent FROM table_name_11 WHERE city = "baltimore" AND time = "2:00pm" AND date = "4/06/08"
What is the average number of gold medals for clubs?
CREATE TABLE club_rank (Gold INTEGER)
SELECT AVG(Gold) FROM club_rank
Which date has an A venue with an Opponent of stoke city?
CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke city"
What's the status of the player with 3041 points?
CREATE TABLE table_27615896_20 (status VARCHAR, points VARCHAR)
SELECT status FROM table_27615896_20 WHERE points = 3041
What are years that Obinna Ekezie played for the Grizzlies?
CREATE TABLE table_name_94 (years_for_grizzlies VARCHAR, player VARCHAR)
SELECT years_for_grizzlies FROM table_name_94 WHERE player = "obinna ekezie"
How many NHL teams are there in the Phoenix, Arizona area?
CREATE TABLE table_1205598_1 (nhl_team_s_ VARCHAR, metropolitan_area VARCHAR)
SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona"
What is the Nation - athlete(s), when the Sport is luge - men's singles, and when the Record is, "track"?
CREATE TABLE table_name_12 (nation___athlete_s_ VARCHAR, sport VARCHAR, record VARCHAR)
SELECT nation___athlete_s_ FROM table_name_12 WHERE sport = "luge - men's singles" AND record = "track"
What is the Raw bandwidth (Mbit/s) for the SAS 300?
CREATE TABLE table_name_8 (raw_bandwidth__mbit_s_ VARCHAR, name VARCHAR)
SELECT raw_bandwidth__mbit_s_ FROM table_name_8 WHERE name = "sas 300"
Name the most overall rank for nl/ua league
CREATE TABLE table_242813_2 (overall_rank INTEGER, league VARCHAR)
SELECT MAX(overall_rank) FROM table_242813_2 WHERE league = "NL/UA"
Who's the player eliminated on episode 8 of Fresh Meat?
CREATE TABLE table_name_59 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR)
SELECT player FROM table_name_59 WHERE original_season = "fresh meat" AND eliminated = "episode 8"
Name the stellar age for f3v
CREATE TABLE table_2296507_1 (stellar_age__myr_ VARCHAR, stellar_classification VARCHAR)
SELECT stellar_age__myr_ FROM table_2296507_1 WHERE stellar_classification = "F3V"
What Level has a Season larger than 2010?
CREATE TABLE table_name_54 (level VARCHAR, season INTEGER)
SELECT level FROM table_name_54 WHERE season > 2010
Show all template type codes and the number of documents using each type.
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
SELECT T1.template_type_code, COUNT(*) FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code
What is Alan Campbell's Country with Notes of FA?
CREATE TABLE table_name_78 (country VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT country FROM table_name_78 WHERE notes = "fa" AND athlete = "alan campbell"
What is the percent of capital for the shareholder that has a s B share of 8256534?
CREATE TABLE table_206419_3 (percent_of_capital VARCHAR, s_b_share VARCHAR)
SELECT percent_of_capital FROM table_206419_3 WHERE s_b_share = 8256534
What is 2009, when 2004 is 2R, and when 1993 is A?
CREATE TABLE table_name_81 (Id VARCHAR)
SELECT 2009 FROM table_name_81 WHERE 2004 = "2r" AND 1993 = "a"
How many people attended the game on january 10 with a Score of 3 – 2?
CREATE TABLE table_name_96 (attendance VARCHAR, score VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_96 WHERE score = "3 – 2" AND date = "january 10"
Who is the January playmate with the November playmate Donna Edmondson?
CREATE TABLE table_name_66 (january VARCHAR, november VARCHAR)
SELECT january FROM table_name_66 WHERE november = "donna edmondson"
Which Region has a Catalog of magik muzik 806-5?
CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_19 WHERE catalog = "magik muzik 806-5"
What is the result of game 5 with Los Angeles as the home team?
CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT result FROM table_name_26 WHERE home_team = "los angeles" AND game = "game 5"
What was marlboro brm's lowest points by using brm p160b?
CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b"
What was the time of the race for Driver Jarno Trulli on a grid smaller than 13?
CREATE TABLE table_name_59 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_59 WHERE grid < 13 AND driver = "jarno trulli"
How many people ha Romanian as their mother tongue in 2006?
CREATE TABLE table_name_12 (population__2006_ INTEGER, mother_tongue VARCHAR)
SELECT MAX(population__2006_) FROM table_name_12 WHERE mother_tongue = "romanian"
What is the System when the Licence is gpl and the Current Version is 1.72?
CREATE TABLE table_name_63 (system VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT system FROM table_name_63 WHERE license = "gpl" AND current_version = "1.72"
What was the GDP (in millions USD) of Hong Kong in 2009?
CREATE TABLE table_1496582_1 (gdp_millions_of_usd__2009_ INTEGER, country___territory VARCHAR)
SELECT MAX(gdp_millions_of_usd__2009_) FROM table_1496582_1 WHERE country___territory = "Hong Kong"
how many times is the jewel malachite?
CREATE TABLE table_26615633_1 (birthday VARCHAR, jewel VARCHAR)
SELECT COUNT(birthday) FROM table_26615633_1 WHERE jewel = "Malachite"
what is the company with the parent company wrightbus?
CREATE TABLE table_250309_1 (company VARCHAR, parent_company VARCHAR)
SELECT company FROM table_250309_1 WHERE parent_company = "Wrightbus"
What is the unanimous result of the player from Michigan Dartmouth?
CREATE TABLE table_name_78 (unanimous VARCHAR, school VARCHAR)
SELECT unanimous FROM table_name_78 WHERE school = "michigan dartmouth"
What is the latest year that data is available for?
CREATE TABLE table_22834834_12 (year INTEGER)
SELECT MAX(year) FROM table_22834834_12
Which position has a player at Arizona state?
CREATE TABLE table_name_95 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_95 WHERE school_club_team = "arizona state"
Which shoulder charge has restricted as the body tackle?
CREATE TABLE table_name_45 (shoulder_charge VARCHAR, body_tackle VARCHAR)
SELECT shoulder_charge FROM table_name_45 WHERE body_tackle = "restricted"
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"
How many different types of rooms are there?
CREATE TABLE room (roomtype VARCHAR)
SELECT COUNT(DISTINCT roomtype) FROM room
When the Winning score is 74-68-67-75=284, what was the Margin of victory?
CREATE TABLE table_name_72 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_72 WHERE winning_score = 74 - 68 - 67 - 75 = 284
What is the record for the Detroit Pistons on March 7?
CREATE TABLE table_name_82 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT record FROM table_name_82 WHERE opponent = "detroit pistons" AND date = "march 7"
Name the M939 series for short wheelbase and M809 series of m817
CREATE TABLE table_name_95 (m939_series VARCHAR, wheelbase VARCHAR, m809_series VARCHAR)
SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817"
When persikos sorong city played in group 11, who played in group 7?
CREATE TABLE table_19523142_5 (group_7 VARCHAR, group_11 VARCHAR)
SELECT group_7 FROM table_19523142_5 WHERE group_11 = "Persikos Sorong City"
When bmw activee is the vehicle type how many clean electric grid california (san francisco) measurements are there?
CREATE TABLE table_24620684_2 (clean_electric_grid_california__san_francisco_ VARCHAR, vehicle VARCHAR)
SELECT COUNT(clean_electric_grid_california__san_francisco_) FROM table_24620684_2 WHERE vehicle = "BMW ActiveE"
What is the district for harry lane englebright?
CREATE TABLE table_1342338_6 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342338_6 WHERE incumbent = "Harry Lane Englebright"
What place did R. Wenzel, who was active after 1934, have?
CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)
SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934
What is the kosal with hatibandha as the sambalpuri cinema?
CREATE TABLE table_name_94 (kosal VARCHAR, sambalpuri_cinema VARCHAR)
SELECT kosal FROM table_name_94 WHERE sambalpuri_cinema = "hatibandha"
Which engine of Rob Walker Racing Team has 47 points and F tyres?
CREATE TABLE table_name_27 (engine VARCHAR, entrant VARCHAR, points VARCHAR, tyres VARCHAR)
SELECT engine FROM table_name_27 WHERE points = "47" AND tyres = "f" AND entrant = "rob walker racing team"
Who was the opponent in the game where 19041 people attended?
CREATE TABLE table_16864968_8 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_16864968_8 WHERE attendance = 19041
How many places did the rank change since 22006 for County Leitrim?
CREATE TABLE table_1940144_1 (change_since_2006 VARCHAR, county VARCHAR)
SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = "county Leitrim"
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?
CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR)
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊"
What is the total number of losses for teams with less than 5 ties and more than 330 goals for?
CREATE TABLE table_name_3 (lost VARCHAR, tied VARCHAR, goals_for VARCHAR)
SELECT COUNT(lost) FROM table_name_3 WHERE tied < 5 AND goals_for > 330
Return the names of cities that have a population between 160000 and 900000 .
CREATE TABLE city (name VARCHAR, population INTEGER)
SELECT name FROM city WHERE population BETWEEN 160000 AND 900000
What was the date of the game that had a result of Army 16, SMU 14?
CREATE TABLE table_28719193_19 (date VARCHAR, matchups_results VARCHAR)
SELECT date FROM table_28719193_19 WHERE matchups_results = "Army 16, SMU 14"
What was the season number for the episode with the series number 61?
CREATE TABLE table_11630008_5 (season__number INTEGER, series__number VARCHAR)
SELECT MAX(season__number) FROM table_11630008_5 WHERE series__number = 61
What is the nomination title used for the original film, Monsieur Hawarden?
CREATE TABLE table_name_18 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_18 WHERE original_title = "monsieur hawarden"
How many Silver medals did the Nation of Croatia receive with a Total medal of more than 1?
CREATE TABLE table_name_3 (silver INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_3 WHERE bronze = 1 AND total > 1 AND nation = "croatia"
What instrumental has tkven-i as the genitive?
CREATE TABLE table_name_42 (instrumental VARCHAR, genitive VARCHAR)
SELECT instrumental FROM table_name_42 WHERE genitive = "tkven-i"
What are the names and location of the wrestlers?
CREATE TABLE wrestler (Name VARCHAR, LOCATION VARCHAR)
SELECT Name, LOCATION FROM wrestler
What is the LOA of Brindabella?
CREATE TABLE table_25595209_1 (loa__metres_ VARCHAR, yacht VARCHAR)
SELECT loa__metres_ FROM table_25595209_1 WHERE yacht = "Brindabella"
Which tournament had 2r in 2010?
CREATE TABLE table_name_60 (tournament VARCHAR)
SELECT tournament FROM table_name_60 WHERE 2010 = "2r"
What average game was played on October 16?
CREATE TABLE table_name_87 (game INTEGER, date VARCHAR)
SELECT AVG(game) FROM table_name_87 WHERE date = "october 16"
What was the terrain for stage 10 of the tour?
CREATE TABLE table_name_69 (terrain VARCHAR, stage VARCHAR)
SELECT terrain FROM table_name_69 WHERE stage = "10"
what is the total number of attendance where the date is december 29?
CREATE TABLE table_17080868_6 (location_attendance VARCHAR, date VARCHAR)
SELECT COUNT(location_attendance) FROM table_17080868_6 WHERE date = "December 29"
How many losing points does Llandudno RFC have?
CREATE TABLE table_14058433_3 (losing_bonus VARCHAR, club VARCHAR)
SELECT losing_bonus FROM table_14058433_3 WHERE club = "Llandudno RFC"
what is the margin of error when the undicided is 8% and other is 4%?
CREATE TABLE table_name_77 (margin_of_error VARCHAR, undecided VARCHAR, other VARCHAR)
SELECT margin_of_error FROM table_name_77 WHERE undecided = "8%" AND other = "4%"
What is Event, when Round is "10"?
CREATE TABLE table_name_62 (event VARCHAR, round VARCHAR)
SELECT event FROM table_name_62 WHERE round = 10
What percentage of people voted for Obama in Burlington?
CREATE TABLE table_20278716_2 (obama__percentage VARCHAR, county VARCHAR)
SELECT obama__percentage FROM table_20278716_2 WHERE county = "Burlington"
How many people were in attendance when the group position was 3rd?
CREATE TABLE table_name_56 (attendance VARCHAR, group_position VARCHAR)
SELECT attendance FROM table_name_56 WHERE group_position = "3rd"
Which round had Michael Schumacher in the pole position, David Coulthard with the fastest lap, and McLaren - Mercedes as the winning constructor?
CREATE TABLE table_1132600_3 (round VARCHAR, winning_constructor VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(round) FROM table_1132600_3 WHERE pole_position = "Michael Schumacher" AND fastest_lap = "David Coulthard" AND winning_constructor = "McLaren - Mercedes"
what is the released when the series is sorted 6y/ai?
CREATE TABLE table_name_68 (released VARCHAR, series_sorted VARCHAR)
SELECT released FROM table_name_68 WHERE series_sorted = "6y/ai"
How much was the prize money for rwe-sporthalle, mülheim ?
CREATE TABLE table_18828487_1 (prize_fund VARCHAR, venue VARCHAR)
SELECT prize_fund FROM table_18828487_1 WHERE venue = "RWE-Sporthalle, Mülheim"
Who was the mountain classification winner in the stage won by Alessandro Ballan?
CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR)
SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = "Alessandro Ballan"
What 1984 has a 1978 of 46–15?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 1984 FROM table_name_87 WHERE 1978 = "46–15"
Who did the Raiders play in week 12?
CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_25 WHERE week = 12
What is the high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
CREATE TABLE table_name_3 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_3 WHERE grid < 4 AND time_retired = "+ 1 lap"
What prefix has Haloalkane as the chemical class?
CREATE TABLE table_name_4 (prefix VARCHAR, chemical_class VARCHAR)
SELECT prefix FROM table_name_4 WHERE chemical_class = "haloalkane"
Tell me the call sign for frequency of 0 97.3 fm
CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR)
SELECT call_sign FROM table_name_67 WHERE frequency = "0 97.3 fm"
What college did the player with a school of crete-monee high school go to?
CREATE TABLE table_name_83 (college VARCHAR, school VARCHAR)
SELECT college FROM table_name_83 WHERE school = "crete-monee high school"
What was the host of Horrid Henry?
CREATE TABLE table_name_74 (host VARCHAR, country VARCHAR)
SELECT host FROM table_name_74 WHERE country = "horrid henry"
What is the highest Super G that had an 11 Downhill and an overall less than 16?
CREATE TABLE table_name_6 (super_g INTEGER, downhill VARCHAR, overall VARCHAR)
SELECT MAX(super_g) FROM table_name_6 WHERE downhill = "11" AND overall < 16
What was the result of the game attended by 54,110?
CREATE TABLE table_name_73 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_73 WHERE attendance = "54,110"
Name the tally with total less than 27 and average more than 3.41
CREATE TABLE table_name_86 (tally VARCHAR, total VARCHAR, average VARCHAR)
SELECT tally FROM table_name_86 WHERE total < 27 AND average > 3.41
How many gymnasts are there?
CREATE TABLE gymnast (Id VARCHAR)
SELECT COUNT(*) FROM gymnast
Which Japanese Title has more than 9 Episodes, and a Romaji Title of haikei, chichiue-sama?
CREATE TABLE table_name_12 (japanese_title VARCHAR, episodes VARCHAR, romaji_title VARCHAR)
SELECT japanese_title FROM table_name_12 WHERE episodes > 9 AND romaji_title = "haikei, chichiue-sama"
What Player was picked after Round 2 with a Pick number larger than 33?
CREATE TABLE table_name_58 (player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT player FROM table_name_58 WHERE pick > 33 AND round > 2
What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?
CREATE TABLE table_name_62 (company VARCHAR, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR, sales__billion_$_ VARCHAR, rank VARCHAR)
SELECT company FROM table_name_62 WHERE sales__billion_$_ > 195.34 AND rank > 7 AND profits__billion_$_ > 11.29 AND market_value__billion_$_ > 198.14