question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the season # for the production code 3.89?
CREATE TABLE table_29391888_1 (season__number VARCHAR, production_code VARCHAR)
SELECT season__number FROM table_29391888_1 WHERE production_code = "3.89"
What is every affiliation for the Tottenham constituency?
CREATE TABLE table_25818630_1 (affiliation VARCHAR, constituency VARCHAR)
SELECT affiliation FROM table_25818630_1 WHERE constituency = "Tottenham"
What Game has a Location of Philadelphia Spectrum and a Date of April 1?
CREATE TABLE table_name_80 (game VARCHAR, location VARCHAR, date VARCHAR)
SELECT game FROM table_name_80 WHERE location = "philadelphia spectrum" AND date = "april 1"
What was the Opponent in the Tarragona Tournament?
CREATE TABLE table_name_9 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_9 WHERE tournament = "tarragona"
What is the highest game with the score l 96–103 (ot)?
CREATE TABLE table_27756314_10 (game INTEGER, score VARCHAR)
SELECT MAX(game) FROM table_27756314_10 WHERE score = "L 96–103 (OT)"
Tell me the total number of Laps for Qual being larger than 142.81 with Grid of 12
CREATE TABLE table_name_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = 12
Who was the winning driver of the Argentine Grand Prix?
CREATE TABLE table_name_96 (winning_driver VARCHAR, race VARCHAR)
SELECT winning_driver FROM table_name_96 WHERE race = "argentine grand prix"
What was the time for the match with away team Convoy Sun Hei Team A?
CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR)
SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"
What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?
CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT SUM(reg_gp) FROM table_name_28 WHERE player = "peter andersson" AND pick__number < 143
What is Method, when Location is "Tokyo , Japan", and when Event is "Rings: Millennium Combine 2"?
CREATE TABLE table_name_38 (method VARCHAR, location VARCHAR, event VARCHAR)
SELECT method FROM table_name_38 WHERE location = "tokyo , japan" AND event = "rings: millennium combine 2"
What is the oklahoma has Bush from Nebraska in year 2004?
CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"
What was the pick# for Lorenzo Freeman as defensive tackle?
CREATE TABLE table_name_97 (pick__number VARCHAR, position VARCHAR, player VARCHAR)
SELECT pick__number FROM table_name_97 WHERE position = "defensive tackle" AND player = "lorenzo freeman"
Name the location on june 10
CREATE TABLE table_11965481_13 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_11965481_13 WHERE date = "June 10"
What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR, pick VARCHAR, name VARCHAR)
SELECT MIN(round) FROM table_name_9 WHERE pick > 7 AND name = "bob caldwell" AND overall > 162
What is the Chord with a Major that is third of e?
CREATE TABLE table_name_69 (chord VARCHAR, major_third VARCHAR)
SELECT chord FROM table_name_69 WHERE major_third = "e"
Which Team has a Winner of 1?
CREATE TABLE table_name_6 (team VARCHAR, winner VARCHAR)
SELECT team FROM table_name_6 WHERE winner = "1"
Which city is Alianza?
CREATE TABLE table_name_62 (city VARCHAR, name VARCHAR)
SELECT city FROM table_name_62 WHERE name = "alianza"
What years have 9 (0) as the finals and 133 (1) as the A-League?
CREATE TABLE table_name_12 (years VARCHAR, finals VARCHAR, a_league VARCHAR)
SELECT years FROM table_name_12 WHERE finals = "9 (0)" AND a_league = "133 (1)"
Which round has a time of 3:01?
CREATE TABLE table_name_43 (round VARCHAR, time VARCHAR)
SELECT round FROM table_name_43 WHERE time = "3:01"
Which Rank is the Country of soviet union with a Total smaller than 19?
CREATE TABLE table_name_94 (rank INTEGER, country VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_94 WHERE country = "soviet union" AND total < 19
Name the runner-up for margin of victory of 3 strokes
CREATE TABLE table_name_37 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT runner_s__up FROM table_name_37 WHERE margin_of_victory = "3 strokes"
Which team was 3:47.761 on day 2?
CREATE TABLE table_name_78 (team VARCHAR, day_2 VARCHAR)
SELECT team FROM table_name_78 WHERE day_2 = "3:47.761"
What school or team does Al Jefferson play for?
CREATE TABLE table_11545282_10 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_11545282_10 WHERE player = "Al Jefferson"
What was the streak on March 27?
CREATE TABLE table_name_81 (streak VARCHAR, date VARCHAR)
SELECT streak FROM table_name_81 WHERE date = "march 27"
What was the score of the game against the phoenix suns?
CREATE TABLE table_name_18 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_18 WHERE opponent = "phoenix suns"
What City had Results¹ of 1:2?
CREATE TABLE table_name_39 (city VARCHAR, results¹ VARCHAR)
SELECT city FROM table_name_39 WHERE results¹ = "1:2"
On waht date did Antoinette Jeanne Yvonne Boegner get married?
CREATE TABLE table_name_28 (marriage VARCHAR, spouse VARCHAR)
SELECT marriage FROM table_name_28 WHERE spouse = "antoinette jeanne yvonne boegner"
What is the highest number of goals Eisbären Berlin had along with 13 points and 10 assists?
CREATE TABLE table_name_4 (goals INTEGER, club VARCHAR, points VARCHAR, assists VARCHAR)
SELECT MAX(goals) FROM table_name_4 WHERE points = 13 AND assists = 10 AND club = "eisbären berlin"
Find the number of dog pets that are raised by female students (with sex F).
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (stuid VARCHAR, sex VARCHAR)
SELECT COUNT(*) FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T2.petid = T3.petid WHERE T1.sex = 'F' AND T3.pettype = 'dog'
What is the platform of the game built in 2006?
CREATE TABLE table_name_53 (platform_s_ VARCHAR, year VARCHAR)
SELECT platform_s_ FROM table_name_53 WHERE year = "2006"
What is the independent regional force when alliance is (r) iván norambuena ( udi )?
CREATE TABLE table_2651755_1 (independent_regional_force VARCHAR, alliance VARCHAR)
SELECT independent_regional_force FROM table_2651755_1 WHERE alliance = "(R) Iván Norambuena ( UDI )"
Which united states player finished with a place of t10?
CREATE TABLE table_name_2 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT player FROM table_name_2 WHERE country = "united states" AND place = "t10"
What is the Singapore Gross with a Title that is 2000?
CREATE TABLE table_name_74 (singapore_gross VARCHAR, title VARCHAR)
SELECT singapore_gross FROM table_name_74 WHERE title = "2000"
Who was the Radio Edit Version remixed by?
CREATE TABLE table_name_70 (remixed_by VARCHAR, version VARCHAR)
SELECT remixed_by FROM table_name_70 WHERE version = "radio edit"
Which Team Name has Poles of 0, and a Final Placing of 29th?
CREATE TABLE table_name_25 (team_name VARCHAR, poles VARCHAR, final_placing VARCHAR)
SELECT team_name FROM table_name_25 WHERE poles = "0" AND final_placing = "29th"
What president was elected in 2010?
CREATE TABLE table_name_69 (president VARCHAR, elected VARCHAR)
SELECT president FROM table_name_69 WHERE elected = 2010
What is College, when Pick is 20?
CREATE TABLE table_name_18 (college VARCHAR, pick VARCHAR)
SELECT college FROM table_name_18 WHERE pick = 20
What is Winner, when College is "Kentucky"?
CREATE TABLE table_name_16 (winner VARCHAR, college VARCHAR)
SELECT winner FROM table_name_16 WHERE college = "kentucky"
What kind of Modern equivalent that has a Pre-1009 province of sakbang -do, and a Province of Silla of sakju?
CREATE TABLE table_name_15 (modern_equivalent VARCHAR, pre_1009_province VARCHAR, province_of_silla VARCHAR)
SELECT modern_equivalent FROM table_name_15 WHERE pre_1009_province = "sakbang -do" AND province_of_silla = "sakju"
In how many different years was the warship that weights 1130 tons built?
CREATE TABLE table_23614702_1 (built_year VARCHAR, tons___lton__ VARCHAR)
SELECT COUNT(built_year) FROM table_23614702_1 WHERE tons___lton__ = 1130
What score did Dixon give to the song "samba / young hearts run free", which was in second place?
CREATE TABLE table_1014319_1 (dixon VARCHAR, dance_song VARCHAR, result VARCHAR)
SELECT dixon FROM table_1014319_1 WHERE dance_song = "Samba / Young Hearts Run Free" AND result = "Second place"
What is the rank for the Mixed Team nation with a total of less than 13?
CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_74 WHERE total < 13 AND nation = "mixed team"
Where is Dwain Chambers from
CREATE TABLE table_1231316_4 (location VARCHAR, athlete VARCHAR)
SELECT location FROM table_1231316_4 WHERE athlete = "Dwain Chambers"
What was the final score for the game that was contested on February 1, 2009?
CREATE TABLE table_10548224_1 (final_score VARCHAR, date_contested VARCHAR)
SELECT final_score FROM table_10548224_1 WHERE date_contested = "February 1, 2009"
Name the most numbers dam and gnis query link for borough or census area for fairbanks north star
CREATE TABLE table_18760137_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR)
SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_18760137_2 WHERE borough_or_census_area = "Fairbanks North Star"
What is the time of the honda cbr1000rr bike, which has less than 25 laps?
CREATE TABLE table_name_49 (time VARCHAR, laps VARCHAR, bike VARCHAR)
SELECT time FROM table_name_49 WHERE laps < 25 AND bike = "honda cbr1000rr"
What was the score in the final played with Fred McNair as partner?
CREATE TABLE table_2820584_3 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT score_in_the_final FROM table_2820584_3 WHERE partner = "Fred McNair"
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR)
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%"
Who had a score of 70-69-70=209?
CREATE TABLE table_name_50 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_50 WHERE score = 70 - 69 - 70 = 209
What is the English word that is abbreviated พ.ย.?
CREATE TABLE table_name_23 (english_name VARCHAR, abbr VARCHAR)
SELECT english_name FROM table_name_23 WHERE abbr = "พ.ย."
The Catalog of ilps 9153 is from what region?
CREATE TABLE table_name_85 (region VARCHAR, catalog VARCHAR)
SELECT region FROM table_name_85 WHERE catalog = "ilps 9153"
How many points did Linda Martin have?
CREATE TABLE table_name_89 (points VARCHAR, artist VARCHAR)
SELECT COUNT(points) FROM table_name_89 WHERE artist = "linda martin"
What is the Film/Show, when the Year is 2010?
CREATE TABLE table_name_19 (film_show VARCHAR, year VARCHAR)
SELECT film_show FROM table_name_19 WHERE year = 2010
What is the nickname of the boy who weighed 810g (26.0 oz.) at birth?
CREATE TABLE table_name_64 (nickname VARCHAR, gender VARCHAR, weight_at_birth VARCHAR)
SELECT nickname FROM table_name_64 WHERE gender = "boy" AND weight_at_birth = "810g (26.0 oz.)"
What is the locomotive with a standard gauge and a serial number of 83-1015?
CREATE TABLE table_name_74 (locomotive VARCHAR, gauge VARCHAR, serial_no VARCHAR)
SELECT locomotive FROM table_name_74 WHERE gauge = "standard" AND serial_no = "83-1015"
How many performances are there?
CREATE TABLE performance (Id VARCHAR)
SELECT COUNT(*) FROM performance
What race has a finish time of 10?
CREATE TABLE table_name_78 (start VARCHAR, finish VARCHAR)
SELECT start FROM table_name_78 WHERE finish = "10"
Who was the writer for the song 4:29 in length?
CREATE TABLE table_14778650_1 (writer VARCHAR, length VARCHAR)
SELECT writer FROM table_14778650_1 WHERE length = "4:29"
which election had seat no 1 filled by jacques lachapelle but seat no 5 was filled by g. sanscartier
CREATE TABLE table_2231241_1 (election VARCHAR, seat_no_1 VARCHAR, seat_no_5 VARCHAR)
SELECT election FROM table_2231241_1 WHERE seat_no_1 = "Jacques Lachapelle" AND seat_no_5 = "G. Sanscartier"
What is the first game number that had attendance of 56,505?
CREATE TABLE table_name_98 (game INTEGER, attendance VARCHAR)
SELECT MIN(game) FROM table_name_98 WHERE attendance = 56 OFFSET 505
What is the sum of the erp w of the k222al call sign?
CREATE TABLE table_name_5 (erp_w INTEGER, call_sign VARCHAR)
SELECT SUM(erp_w) FROM table_name_5 WHERE call_sign = "k222al"
What's the report about townsville crocodiles as an away team?
CREATE TABLE table_name_35 (report VARCHAR, away_team VARCHAR)
SELECT report FROM table_name_35 WHERE away_team = "townsville crocodiles"
Show all locations with only 1 station.
CREATE TABLE station (LOCATION VARCHAR)
SELECT LOCATION FROM station GROUP BY LOCATION HAVING COUNT(*) = 1
How many points were there scored on October 27?
CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27"
How many times this institution was founded that was nicknamed Beavers?
CREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR)
SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = "Beavers"
If the proteam is Jacksonville bulls, what is the position?
CREATE TABLE table_27132791_3 (position VARCHAR, pro_team VARCHAR)
SELECT position FROM table_27132791_3 WHERE pro_team = "Jacksonville Bulls"
In the year (ceremony) 1998 (71st), what are all the main languages?
CREATE TABLE table_26385848_1 (main_language_s_ VARCHAR, year__ceremony_ VARCHAR)
SELECT main_language_s_ FROM table_26385848_1 WHERE year__ceremony_ = "1998 (71st)"
what is the play-off in group stage 4 and clubs is 12
CREATE TABLE table_19412902_1 (play_off VARCHAR, group_stage VARCHAR, clubs VARCHAR)
SELECT play_off FROM table_19412902_1 WHERE group_stage = 4 AND clubs = 12
Show all calendar dates and day Numbers.
CREATE TABLE Ref_calendar (calendar_date VARCHAR, day_Number VARCHAR)
SELECT calendar_date, day_Number FROM Ref_calendar
What is the country of player ed sneed with a to par of +3?
CREATE TABLE table_name_15 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_15 WHERE to_par = "+3" AND player = "ed sneed"
what is the surface for the week of october 25?
CREATE TABLE table_name_51 (surface VARCHAR, week VARCHAR)
SELECT surface FROM table_name_51 WHERE week = "october 25"
Who is week 3 if week 2 is Nikki Fiction?
CREATE TABLE table_name_64 (week_3 VARCHAR, week_2 VARCHAR)
SELECT week_3 FROM table_name_64 WHERE week_2 = "nikki fiction"
It has fa cup goals larger than 0 and total goals of 0, what is the average total apps?
CREATE TABLE table_name_41 (total_apps INTEGER, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT AVG(total_apps) FROM table_name_41 WHERE total_goals = 0 AND fa_cup_goals > 0
What competition was contested at stavanger?
CREATE TABLE table_name_77 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_77 WHERE venue = "stavanger"
What is the average sales for the company with market value of 204.9bil and profits under 20.6bil?
CREATE TABLE table_name_18 (sales__billion_ INTEGER, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)
SELECT AVG(sales__billion_) AS $_ FROM table_name_18 WHERE market_value__billion_$_ = 204.9 AND profits__billion_$_ < 20.6
What chassis has smaller than 9 points by Equipe Rosier?
CREATE TABLE table_name_92 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)
SELECT chassis FROM table_name_92 WHERE points < 9 AND entrant = "equipe rosier"
What is the lowest points for a time/retired of +30.7 secs, and laps smaller than 165?
CREATE TABLE table_name_70 (points INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(points) FROM table_name_70 WHERE time_retired = "+30.7 secs" AND laps < 165
Avg/G that has a Att-Cmp-Int of 1–1–0, and an Effic larger than 394 is what total?
CREATE TABLE table_name_62 (avg_g VARCHAR, att_cmp_int VARCHAR, effic VARCHAR)
SELECT COUNT(avg_g) FROM table_name_62 WHERE att_cmp_int = "1–1–0" AND effic > 394
What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098?
CREATE TABLE table_name_88 (born_in_other_eu_state__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_88 WHERE born_in_a_non_eu_state__millions_ = 31.368 AND total_population__millions_ > 501.098
What is the highest numbered pick from round 7?
CREATE TABLE table_name_67 (pick INTEGER, round VARCHAR)
SELECT MAX(pick) FROM table_name_67 WHERE round = 7
Who was played against with a result of 3–6, 2–6?
CREATE TABLE table_name_99 (against VARCHAR, result VARCHAR)
SELECT against FROM table_name_99 WHERE result = "3–6, 2–6"
Name the average decile for state authority and area of fernridge
CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR)
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge"
On what date were sheets issued in Tallahassee, Florida?
CREATE TABLE table_name_40 (date_of_issue VARCHAR, place_of_issue VARCHAR)
SELECT date_of_issue FROM table_name_40 WHERE place_of_issue = "tallahassee, florida"
Who sponsors driver neil bonnett?
CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR)
SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett"
What was the score in the Tournament of Frankfurt?
CREATE TABLE table_name_66 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_66 WHERE tournament = "frankfurt"
What is the external weapon with a ramhead cart?
CREATE TABLE table_name_59 (external_weapon VARCHAR, cart VARCHAR)
SELECT external_weapon FROM table_name_59 WHERE cart = "ramhead cart"
What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3?
CREATE TABLE table_name_52 (rank INTEGER, heat VARCHAR, nationality VARCHAR, lane VARCHAR)
SELECT SUM(rank) FROM table_name_52 WHERE nationality = "japan" AND lane < 7 AND heat < 3
Name the score when the decision is dipietro and the visitor is philadelphia
CREATE TABLE table_name_76 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_76 WHERE decision = "dipietro" AND visitor = "philadelphia"
what are the film names with the co-singer vinod rathod?
CREATE TABLE table_11827596_2 (film_name VARCHAR, co_singer VARCHAR)
SELECT film_name FROM table_11827596_2 WHERE co_singer = "Vinod Rathod"
Name the studio for john scott
CREATE TABLE table_name_74 (studio VARCHAR, role VARCHAR)
SELECT studio FROM table_name_74 WHERE role = "john scott"
How much money did Ben Crenshaw earn?
CREATE TABLE table_name_58 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_58 WHERE player = "ben crenshaw"
The golfer who won in 1993 had what total has his total?
CREATE TABLE table_name_97 (total INTEGER, year_s__won VARCHAR)
SELECT SUM(total) FROM table_name_97 WHERE year_s__won = "1993"
What was the broadcast date of episodes that were watched by 23.2 million viewers?
CREATE TABLE table_27714985_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_27714985_1 WHERE us_viewers__millions_ = "23.2"
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?
CREATE TABLE table_name_27 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1
How many matches did Carlos Kameni play in, who had an average larger than 1.27?
CREATE TABLE table_name_58 (matches INTEGER, goalkeeper VARCHAR, average VARCHAR)
SELECT SUM(matches) FROM table_name_58 WHERE goalkeeper = "carlos kameni" AND average > 1.27
What's the population that has a median family income of $50,553?
CREATE TABLE table_name_1 (population VARCHAR, median_family_income VARCHAR)
SELECT COUNT(population) FROM table_name_1 WHERE median_family_income = "$50,553"
Show the countries that have both managers of age above 50 and managers of age below 46.
CREATE TABLE manager (Country VARCHAR, Age INTEGER)
SELECT Country FROM manager WHERE Age > 50 INTERSECT SELECT Country FROM manager WHERE Age < 46
Name the last for softball before 2000
CREATE TABLE table_name_95 (last VARCHAR, year VARCHAR, sport VARCHAR)
SELECT last FROM table_name_95 WHERE year < 2000 AND sport = "softball"
Which Position has a Pick of 11 (via calgary)?
CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR)
SELECT position FROM table_name_8 WHERE pick = "11 (via calgary)"
Which Affected area codes have an Effective date of august 30, 2014?
CREATE TABLE table_name_95 (affected_area_codes VARCHAR, effective_date VARCHAR)
SELECT affected_area_codes FROM table_name_95 WHERE effective_date = "august 30, 2014"