question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the finished for exited day 13
CREATE TABLE table_14345690_4 (finished VARCHAR, exited VARCHAR)
SELECT finished FROM table_14345690_4 WHERE exited = "Day 13"
What is the sum of the yr plyf of coach ed robinson, who has a G plyf of 0?
CREATE TABLE table_name_6 (yr_plyf INTEGER, g_plyf VARCHAR, coach VARCHAR)
SELECT SUM(yr_plyf) FROM table_name_6 WHERE g_plyf = 0 AND coach = "ed robinson"
Who was the home team with a score of 101-93?
CREATE TABLE table_name_92 (home_team VARCHAR, score VARCHAR)
SELECT home_team FROM table_name_92 WHERE score = "101-93"
Which location has a copies per particle of 0 and a protein of nsp3?
CREATE TABLE table_name_68 (location VARCHAR, copies_per_particle VARCHAR, protein VARCHAR)
SELECT location FROM table_name_68 WHERE copies_per_particle = "0" AND protein = "nsp3"
Find the name, checking balance and saving balance of all accounts in the bank.
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid
Find the total account balance of each customer from Utah or Texas.
CREATE TABLE customer (acc_bal INTEGER, state VARCHAR)
SELECT SUM(acc_bal) FROM customer WHERE state = 'Utah' OR state = 'Texas'
Which college has the player Rushel Shell?
CREATE TABLE table_11677691_5 (college VARCHAR, player VARCHAR)
SELECT college FROM table_11677691_5 WHERE player = "Rushel Shell"
Who in series 9 corresponds to Peter Jones in series 2?
CREATE TABLE table_name_55 (series_9 VARCHAR, series_2 VARCHAR)
SELECT series_9 FROM table_name_55 WHERE series_2 = "peter jones"
What is points when try diff is +23?
CREATE TABLE table_name_7 (points_for VARCHAR, try_diff VARCHAR)
SELECT points_for FROM table_name_7 WHERE try_diff = "+23"
What is JCTV's digital channel?
CREATE TABLE table_1404984_1 (digital_channel VARCHAR, network VARCHAR)
SELECT digital_channel FROM table_1404984_1 WHERE network = "JCTV"
Find the names of products that were bought by at least two distinct customers.
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE customer_orders (order_id VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR)
SELECT DISTINCT T3.product_name FROM customer_orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id JOIN products AS T3 ON T2.product_id = T3.product_id GROUP BY T3.product_id HAVING COUNT(DISTINCT T1.customer_id) >= 2
Find all airlines that have fewer than 200 flights.
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200
What is the number of reports for the italian grand prix?
CREATE TABLE table_1140078_2 (report VARCHAR, race VARCHAR)
SELECT COUNT(report) FROM table_1140078_2 WHERE race = "Italian Grand Prix"
What is the cardinalatial title when the elevated is September 18, 1294, and elector is Bérard De Got?
CREATE TABLE table_name_36 (cardinalatial_title VARCHAR, elevated VARCHAR, elector VARCHAR)
SELECT cardinalatial_title FROM table_name_36 WHERE elevated = "september 18, 1294" AND elector = "bérard de got"
What is the aircraft for 21 crews?
CREATE TABLE table_23508196_5 (type_of_aircraft VARCHAR, number_of_crews VARCHAR)
SELECT type_of_aircraft FROM table_23508196_5 WHERE number_of_crews = "21"
What class year was the player who played for Buffalo from?
CREATE TABLE table_22982552_9 (class_year INTEGER, teams VARCHAR)
SELECT MIN(class_year) FROM table_22982552_9 WHERE teams = "Buffalo"
In what Event did Dorcus Inzikuru compete?
CREATE TABLE table_name_86 (event VARCHAR, name VARCHAR)
SELECT event FROM table_name_86 WHERE name = "dorcus inzikuru"
Where is the school whose students are nicknamed falcons located?
CREATE TABLE table_1974545_2 (location VARCHAR, nickname VARCHAR)
SELECT location FROM table_1974545_2 WHERE nickname = "Falcons"
Which Round has a School/Club Team of cal-poly slo, and a Pick smaller than 238?
CREATE TABLE table_name_67 (round INTEGER, school_club_team VARCHAR, pick VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE school_club_team = "cal-poly slo" AND pick < 238
Running back Aaron Green went to Nebraska and what high school?
CREATE TABLE table_11677691_3 (school VARCHAR, position VARCHAR, college VARCHAR)
SELECT school FROM table_11677691_3 WHERE position = "Running back" AND college = "Nebraska"
How many people attended the game against the cincinnati bengals?
CREATE TABLE table_name_15 (attendance VARCHAR, opponent VARCHAR)
SELECT COUNT(attendance) FROM table_name_15 WHERE opponent = "cincinnati bengals"
How many average laps did brm complete in grids larger than 12?
CREATE TABLE table_name_70 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE constructor = "brm" AND grid = 12
What's the quantity preserved when the fleet number was 700?
CREATE TABLE table_name_57 (quantity_preserved VARCHAR, fleet_number_s_ VARCHAR)
SELECT quantity_preserved FROM table_name_57 WHERE fleet_number_s_ = "700"
What is the nationality of Gavin Rae?
CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR)
SELECT nat FROM table_name_9 WHERE name = "gavin rae"
How many assists were there when the total points was 2?
CREATE TABLE table_name_36 (assists VARCHAR, total_points VARCHAR)
SELECT assists FROM table_name_36 WHERE total_points = "2"
Which Sport had an Event of men's 400 m hurdles?
CREATE TABLE table_name_21 (sport VARCHAR, event VARCHAR)
SELECT sport FROM table_name_21 WHERE event = "men's 400 m hurdles"
What is the official name of the municipality whose name in Spanish is Vitoria?
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_spanish VARCHAR)
SELECT official_name FROM table_300283_1 WHERE name_in_spanish = "Vitoria"
Which club was founded after 1998?
CREATE TABLE table_name_49 (club VARCHAR, founded INTEGER)
SELECT club FROM table_name_49 WHERE founded > 1998
How many high schoolers are there in grade 9 or 10?
CREATE TABLE Highschooler (grade VARCHAR)
SELECT COUNT(*) FROM Highschooler WHERE grade = 9 OR grade = 10
Name the example when the environment is #_x
CREATE TABLE table_name_46 (example VARCHAR, environment VARCHAR)
SELECT example FROM table_name_46 WHERE environment = "#_x"
What was the Surface when the Score was 6–4, 2–6, 3–6?
CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_17 WHERE score = "6–4, 2–6, 3–6"
If the overall viewers were 1.83 millions, what was the overall market share?
CREATE TABLE table_2639433_4 (market_share__overall_ VARCHAR, viewers__in_millions_overall_ VARCHAR)
SELECT market_share__overall_ FROM table_2639433_4 WHERE viewers__in_millions_overall_ = "1.83"
What was the most recent year for Dean Van Lines?
CREATE TABLE table_name_41 (year INTEGER, entrant VARCHAR)
SELECT MAX(year) FROM table_name_41 WHERE entrant = "dean van lines"
Find the names of all reviewers who rated Gone with the Wind.
CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'
Which fielding team had 1st wicket?
CREATE TABLE table_name_61 (fielding_team VARCHAR, wicket VARCHAR)
SELECT fielding_team FROM table_name_61 WHERE wicket = "1st"
Name the high rebounds for record 7-1
CREATE TABLE table_18894744_5 (high_rebounds VARCHAR, record VARCHAR)
SELECT high_rebounds FROM table_18894744_5 WHERE record = "7-1"
What qual had a finish of 16 in 1968?
CREATE TABLE table_name_64 (qual VARCHAR, finish VARCHAR, year VARCHAR)
SELECT qual FROM table_name_64 WHERE finish = "16" AND year = "1968"
Name the total number of open cup for 1996
CREATE TABLE table_2365150_1 (open_cup VARCHAR, year VARCHAR)
SELECT COUNT(open_cup) FROM table_2365150_1 WHERE year = 1996
How many addresses are there in country USA?
CREATE TABLE addresses (country VARCHAR)
SELECT COUNT(*) FROM addresses WHERE country = 'USA'
Name the number of semi final results for 12 performance order
CREATE TABLE table_26267849_11 (semi_finals_result VARCHAR, performance_order VARCHAR)
SELECT COUNT(semi_finals_result) FROM table_26267849_11 WHERE performance_order = 12
What was the Engine, when the Chassis was Bugatti T51, and when the Entrant was a Private Entry?
CREATE TABLE table_name_1 (engine VARCHAR, chassis VARCHAR, entrant VARCHAR)
SELECT engine FROM table_name_1 WHERE chassis = "bugatti t51" AND entrant = "private entry"
What was the place when the score was 68-75-68=211?
CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_28 WHERE score = 68 - 75 - 68 = 211
What is the name of episode number 77 in the series?
CREATE TABLE table_2409041_5 (title VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_2409041_5 WHERE no_in_series = 77
Where was the friendly competition on 17 December 1967 played at?
CREATE TABLE table_name_72 (venue VARCHAR, competition VARCHAR, date VARCHAR)
SELECT venue FROM table_name_72 WHERE competition = "friendly" AND date = "17 december 1967"
When dxcc-tv is the call sign how many station types are there?
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR)
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DXCC-TV"
What position had a debut in round 6?
CREATE TABLE table_name_66 (position VARCHAR, debut VARCHAR)
SELECT position FROM table_name_66 WHERE debut = "round 6"
How many were penanced when the number with known sentences was 71 (1600–1773)?
CREATE TABLE table_name_3 (penanced VARCHAR, number_of_autos_da_fé_with_known_sentences VARCHAR)
SELECT penanced FROM table_name_3 WHERE number_of_autos_da_fé_with_known_sentences = "71 (1600–1773)"
What is the name of the available rock single/pack by REO Speedwagon?
CREATE TABLE table_name_30 (single___pack_name VARCHAR, genre VARCHAR, artist VARCHAR)
SELECT single___pack_name FROM table_name_30 WHERE genre = "rock" AND artist = "reo speedwagon"
What is the 2009 estimate population of the region with Manaus as the largest city?
CREATE TABLE table_name_79 (population__2009_estimate_ VARCHAR, largest_city VARCHAR)
SELECT population__2009_estimate_ FROM table_name_79 WHERE largest_city = "manaus"
Which Record has a Date of 3 march 2013?
CREATE TABLE table_name_71 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_71 WHERE date = "3 march 2013"
Who wrote the episode in the series 46b?
CREATE TABLE table_2701851_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_2701851_5 WHERE no_in_series = "46b"
Where was the game played on may 20?
CREATE TABLE table_13710464_1 (location VARCHAR, date VARCHAR)
SELECT location FROM table_13710464_1 WHERE date = "May 20"
Who had the fastest lap(s) when stefan wilson had the pole?
CREATE TABLE table_29690363_3 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT fastest_lap FROM table_29690363_3 WHERE pole_position = "Stefan Wilson"
What circut has an unknown fastest lap on July 19?
CREATE TABLE table_name_76 (circuit VARCHAR, fastest_lap VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_76 WHERE fastest_lap = "unknown" AND date = "july 19"
How many elections are there?
CREATE TABLE election (Id VARCHAR)
SELECT COUNT(*) FROM election
What's the Bulgarian word for september?
CREATE TABLE table_name_56 (bulgarian_name VARCHAR, english_name VARCHAR)
SELECT bulgarian_name FROM table_name_56 WHERE english_name = "september"
Name the Years of schools with a Roll Larger than 23 and a Decile greater than 5.
CREATE TABLE table_name_27 (years VARCHAR, roll VARCHAR, decile VARCHAR)
SELECT years FROM table_name_27 WHERE roll > 23 AND decile > 5
What is the home team of the UEFA cup in the 2000-2001 season with a second round?
CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round"
What is the to par of the match with a winning score 69-67-72-64=272?
CREATE TABLE table_name_25 (to_par VARCHAR, winning_score VARCHAR)
SELECT to_par FROM table_name_25 WHERE winning_score = 69 - 67 - 72 - 64 = 272
What is the total draw count with 52 goals and less than 15 losses?
CREATE TABLE table_name_38 (draws INTEGER, goals_against VARCHAR, losses VARCHAR)
SELECT SUM(draws) FROM table_name_38 WHERE goals_against = 52 AND losses < 15
In which tournament was Gil Morgan the runner-up?
CREATE TABLE table_name_64 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_64 WHERE runner_s__up = "gil morgan"
How many rounds did Patrick Tambay record the fastest lap?
CREATE TABLE table_1140073_2 (rnd VARCHAR, fastest_lap VARCHAR)
SELECT COUNT(rnd) FROM table_1140073_2 WHERE fastest_lap = "Patrick Tambay"
What's the tie number of Chelsea when they were home?
CREATE TABLE table_name_96 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_96 WHERE home_team = "chelsea"
Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45?
CREATE TABLE table_name_32 (run_4 INTEGER, run_1 VARCHAR, run_3 VARCHAR)
SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45
Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2?
CREATE TABLE table_29296103_10 (tournament VARCHAR, week_of VARCHAR, champion VARCHAR)
SELECT tournament FROM table_29296103_10 WHERE week_of = "24 October" AND champion = "Matt Doyle 1–6, 6–1, 6–2"
Which model number has socket μpga2 bga2 mmc-2?
CREATE TABLE table_name_46 (model_number VARCHAR, socket VARCHAR)
SELECT model_number FROM table_name_46 WHERE socket = "μpga2 bga2 mmc-2"
How many winners have a runner-up of A. Karthikeyan?
CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR)
SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan"
How many games in 1885 postseason resulted in ties (that is, the value of "ties" is '1')?
CREATE TABLE postseason (YEAR VARCHAR, ties VARCHAR)
SELECT COUNT(*) FROM postseason WHERE YEAR = 1885 AND ties = 1
what are all the win/loss where season is 2009
CREATE TABLE table_1165048_1 (win_loss VARCHAR, season VARCHAR)
SELECT win_loss FROM table_1165048_1 WHERE season = 2009
Billy Ray Brown plays for what country?
CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_9 WHERE player = "billy ray brown"
What's the crowd population of the home team located in Richmond?
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_5 WHERE home_team = "richmond"
What's the report in King Baudouin Stadium Brussels, Belgium?
CREATE TABLE table_name_31 (report VARCHAR, venue VARCHAR)
SELECT report FROM table_name_31 WHERE venue = "king baudouin stadium brussels, belgium"
What is To par, when Player is "Greg Turner"?
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_72 WHERE player = "greg turner"
When Yaroslav Popovych won most corageous, who won the mountains classification?
CREATE TABLE table_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR)
SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = "Yaroslav Popovych"
Was the rosehill venue a win or loss?
CREATE TABLE table_1360997_2 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_1360997_2 WHERE venue = "Rosehill"
what is the maximum number of pinorinol in wheat bran?
CREATE TABLE table_1831262_2 (pinoresinol INTEGER, foodstuff VARCHAR)
SELECT MAX(pinoresinol) FROM table_1831262_2 WHERE foodstuff = "Wheat bran"
What is the lowest week number where they played against the Detroit Lions?
CREATE TABLE table_name_94 (week INTEGER, opponent VARCHAR)
SELECT MIN(week) FROM table_name_94 WHERE opponent = "detroit lions"
What is Graham Gooch's nationality?
CREATE TABLE table_name_87 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_87 WHERE player = "graham gooch"
What competition had more than 40 assists?
CREATE TABLE table_name_19 (competition VARCHAR, assists INTEGER)
SELECT competition FROM table_name_19 WHERE assists > 40
On what date was the game played at home against the opponent Siena?
CREATE TABLE table_name_58 (date VARCHAR, opponent VARCHAR, ground VARCHAR)
SELECT date FROM table_name_58 WHERE opponent = "siena" AND ground = "home"
What seasons had a ranking of #47?
CREATE TABLE table_175980_2 (season VARCHAR, ranking VARCHAR)
SELECT season FROM table_175980_2 WHERE ranking = "#47"
What is the name of the person with a qual 1 time of 1:16.850?
CREATE TABLE table_name_2 (name VARCHAR, qual_1 VARCHAR)
SELECT name FROM table_name_2 WHERE qual_1 = "1:16.850"
Which Power has a CBLI Identifier?
CREATE TABLE table_name_40 (power VARCHAR, identifier VARCHAR)
SELECT power FROM table_name_40 WHERE identifier = "cbli"
What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?
CREATE TABLE table_18461045_1 (kentucky VARCHAR, illinois VARCHAR)
SELECT kentucky FROM table_18461045_1 WHERE illinois = "Rock Falls LL Rock Falls"
What were the highest losses for a byes larger than 2?
CREATE TABLE table_name_99 (losses INTEGER, byes INTEGER)
SELECT MAX(losses) FROM table_name_99 WHERE byes > 2
When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in?
CREATE TABLE table_name_42 (date VARCHAR, opposing_teams VARCHAR, status VARCHAR, venue VARCHAR)
SELECT date FROM table_name_42 WHERE status = "five nations" AND venue = "twickenham , london" AND opposing_teams = "ireland"
What is the minimum D (max) when the Morse Taper number is less than 0?
CREATE TABLE table_name_47 (d__max_ INTEGER, morse_taper_number INTEGER)
SELECT MIN(d__max_) FROM table_name_47 WHERE morse_taper_number < 0
Which Record label has an Album of tera roop?
CREATE TABLE table_name_84 (record_label VARCHAR, album VARCHAR)
SELECT record_label FROM table_name_84 WHERE album = "tera roop"
Which NFL Recap had a Record of 1–3?
CREATE TABLE table_name_1 (nfl_recap VARCHAR, record VARCHAR)
SELECT nfl_recap FROM table_name_1 WHERE record = "1–3"
What is the venue where Collingwood played as the away team?
CREATE TABLE table_name_26 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_26 WHERE away_team = "collingwood"
What is the location with enrollment of 316 and county is 68 Randolph?
CREATE TABLE table_name_21 (location VARCHAR, _number___county VARCHAR, enrollment VARCHAR)
SELECT location FROM table_name_21 WHERE _number___county = "68 randolph" AND enrollment = 316
What Year had a Result of 34-25?
CREATE TABLE table_name_44 (year INTEGER, result VARCHAR)
SELECT AVG(year) FROM table_name_44 WHERE result = "34-25"
What is Rank, when Event is "LAPT3 Punta Del Este"?
CREATE TABLE table_name_65 (rank VARCHAR, event VARCHAR)
SELECT rank FROM table_name_65 WHERE event = "lapt3 punta del este"
What country has a silver medal in the boxing, heavyweight event?
CREATE TABLE table_name_77 (country VARCHAR, medal VARCHAR, event VARCHAR)
SELECT country FROM table_name_77 WHERE medal = "silver" AND event = "boxing, heavyweight"
What is the English title for season 6?
CREATE TABLE table_name_91 (title__english_ VARCHAR, number_of_season VARCHAR)
SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6
How many years had ozone awards?
CREATE TABLE table_name_43 (year INTEGER, award VARCHAR)
SELECT SUM(year) FROM table_name_43 WHERE award = "ozone awards"
Name the length for stage of ss6
CREATE TABLE table_name_41 (length VARCHAR, stage VARCHAR)
SELECT length FROM table_name_41 WHERE stage = "ss6"
What was Melbourne's score as the home team?
CREATE TABLE table_name_91 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_91 WHERE home_team = "melbourne"
What team is from the Russian Major League?
CREATE TABLE table_name_21 (position VARCHAR, league_from VARCHAR)
SELECT position FROM table_name_21 WHERE league_from = "russian major league"
What is the lowest population that has Big Hole Tract 8 (south) as the official name, with an area km 2 greater than 27.82?
CREATE TABLE table_name_50 (population INTEGER, official_name VARCHAR, area_km_2 VARCHAR)
SELECT MIN(population) FROM table_name_50 WHERE official_name = "big hole tract 8 (south)" AND area_km_2 > 27.82