question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the rank for the 3 silver medals?
CREATE TABLE table_name_13 (rank VARCHAR, silver VARCHAR)
SELECT rank FROM table_name_13 WHERE silver = 3
What district has Dan Crane as incumbent?
CREATE TABLE table_1341598_14 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_14 WHERE incumbent = "Dan Crane"
What is independence community college's newest campus?
CREATE TABLE table_name_37 (founded INTEGER, institution VARCHAR)
SELECT MIN(founded) FROM table_name_37 WHERE institution = "independence community college"
What is the score for the game against Malacca at the Klfa Stadium, Cheras?
CREATE TABLE table_name_96 (score VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT score FROM table_name_96 WHERE opponent = "malacca" AND venue = "klfa stadium, cheras"
What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?
CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR)
SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = "224.0.0.0"
When 0.6–1.4 is the b r (t) what is the h ci (ka/m)?
CREATE TABLE table_2282444_1 (h_ci__ka_m_ VARCHAR, b_r__t_ VARCHAR)
SELECT h_ci__ka_m_ FROM table_2282444_1 WHERE b_r__t_ = "0.6–1.4"
What is the highest attendance of the game with eastwood town as the away team?
CREATE TABLE table_name_46 (attendance INTEGER, away_team VARCHAR)
SELECT MAX(attendance) FROM table_name_46 WHERE away_team = "eastwood town"
What was tied at 15 played?
CREATE TABLE table_name_50 (tied VARCHAR, played VARCHAR)
SELECT tied FROM table_name_50 WHERE played = "15"
Who loss the 24-28 game?
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28"
What is the number of league goals for players with 10 league matches and a TeBe career of 2003?
CREATE TABLE table_28730459_3 (league_goals VARCHAR, league_matches VARCHAR, tebe_career VARCHAR)
SELECT league_goals FROM table_28730459_3 WHERE league_matches = 10 AND tebe_career = "2003"
Which pick's round was 5 when Kellen Davis was a player?
CREATE TABLE table_name_40 (pick VARCHAR, round VARCHAR, player VARCHAR)
SELECT pick FROM table_name_40 WHERE round = "5" AND player = "kellen davis"
What is the s B share for Handelsbanken funds incl XACT?
CREATE TABLE table_206419_3 (s_b_share VARCHAR, shareholder VARCHAR)
SELECT s_b_share FROM table_206419_3 WHERE shareholder = "Handelsbanken funds incl XACT"
Which Place is the highest one that has a Draw larger than 1, and 49 Points?
CREATE TABLE table_name_3 (place INTEGER, draw VARCHAR, points VARCHAR)
SELECT MAX(place) FROM table_name_3 WHERE draw > 1 AND points = 49
On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?
CREATE TABLE table_name_45 (date VARCHAR, winner VARCHAR, competition_round VARCHAR, venue VARCHAR, season VARCHAR)
SELECT date FROM table_name_45 WHERE venue = "estadio alejandro villanueva" AND season > 2003 AND competition_round = "torneo apertura" AND winner = "universitario"
Which IHSAA Class has a Mascot of eagles, and a City of evansville?
CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR)
SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagles" AND city = "evansville"
What is City of Sandefjord in Norway's IATA?
CREATE TABLE table_name_12 (iata VARCHAR, country VARCHAR, city VARCHAR)
SELECT iata FROM table_name_12 WHERE country = "norway" AND city = "sandefjord"
What is High Rebounds, when Date is "March 12"?
CREATE TABLE table_name_8 (high_rebounds VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_name_8 WHERE date = "march 12"
What is Date, when Event is Billabong Pro?
CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR)
SELECT date FROM table_name_34 WHERE event = "billabong pro"
Name the record for 1997
CREATE TABLE table_name_78 (record VARCHAR, year VARCHAR)
SELECT record FROM table_name_78 WHERE year = "1997"
What nationality has a lane less than 6, with 1 as the rank?
CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1
What is the total number of bronze that has less than 2 gold, and more than 1 silver?
CREATE TABLE table_name_97 (bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT COUNT(bronze) FROM table_name_97 WHERE gold < 2 AND silver > 1
What is the type of Kuang-Hsing?
CREATE TABLE table_name_71 (type VARCHAR, name__wade_giles_ VARCHAR)
SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing"
How many episodes had a production code of 5m13?
CREATE TABLE table_20967430_4 (ep VARCHAR, prod_code VARCHAR)
SELECT COUNT(ep) FROM table_20967430_4 WHERE prod_code = "5M13"
What is the attendance of the game against the houston oilers?
CREATE TABLE table_name_6 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_6 WHERE opponent = "houston oilers"
What Chassis has g Tyres before 1987?
CREATE TABLE table_name_26 (chassis VARCHAR, tyres VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_26 WHERE tyres = "g" AND year < 1987
Name of xue hanqin has what highest term ending?
CREATE TABLE table_name_89 (term_ending INTEGER, name VARCHAR)
SELECT MAX(term_ending) FROM table_name_89 WHERE name = "xue hanqin"
Who is the courtside reporter for the year 2009-10?
CREATE TABLE table_14902507_2 (courtside_reporter VARCHAR, year VARCHAR)
SELECT courtside_reporter FROM table_14902507_2 WHERE year = "2009-10"
Which guest performer has a track length of 5:49?
CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR)
SELECT guest_performer FROM table_name_8 WHERE time = "5:49"
What is the record when St. Louis is the visitor?
CREATE TABLE table_name_56 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_56 WHERE visitor = "st. louis"
What is the average weight of cars each year?
CREATE TABLE CARS_DATA (YEAR VARCHAR, Weight INTEGER)
SELECT AVG(Weight), YEAR FROM CARS_DATA GROUP BY YEAR
What is the average attendance for the games after week 2 on September 23, 1973?
CREATE TABLE table_name_31 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT AVG(attendance) FROM table_name_31 WHERE date = "september 23, 1973" AND week > 2
What is Driver, when Team is "Romano Racing"?
CREATE TABLE table_name_88 (driver VARCHAR, team VARCHAR)
SELECT driver FROM table_name_88 WHERE team = "romano racing"
What race has a Pole Position of Jacques Laffite?
CREATE TABLE table_name_25 (race VARCHAR, pole_position VARCHAR)
SELECT race FROM table_name_25 WHERE pole_position = "jacques laffite"
How many people attended the Week 8 game when Denver played Buffalo?
CREATE TABLE table_17778417_1 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_17778417_1 WHERE week = 8
What is the State with Gwangju Fc as the team?
CREATE TABLE table_name_10 (state VARCHAR, team VARCHAR)
SELECT state FROM table_name_10 WHERE team = "gwangju fc"
How many people attended the game at Junction Oval?
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR)
SELECT crowd FROM table_name_77 WHERE venue = "junction oval"
Which couple participated in the Paso Doble style and were safe?
CREATE TABLE table_name_91 (couple VARCHAR, results VARCHAR, style VARCHAR)
SELECT couple FROM table_name_91 WHERE results = "safe" AND style = "paso doble"
What are all ages for Maghreb is Maarifiense?
CREATE TABLE table_22860_1 (age__before_ VARCHAR, maghreb VARCHAR)
SELECT age__before_ FROM table_22860_1 WHERE maghreb = "Maarifiense"
What country had the play Medea?
CREATE TABLE table_name_5 (country VARCHAR, play VARCHAR)
SELECT country FROM table_name_5 WHERE play = "medea"
What date was the total 56–75?
CREATE TABLE table_name_31 (date VARCHAR, total VARCHAR)
SELECT date FROM table_name_31 WHERE total = "56–75"
WHAT IS THE TOURNAMENT WITH 2008 AND 2011 WITH A?
CREATE TABLE table_name_82 (tournament VARCHAR)
SELECT tournament FROM table_name_82 WHERE 2008 = "a" AND 2011 = "a"
What rank is Super Mario Land 2: 6 Golden Coins?
CREATE TABLE table_18590048_1 (rank INTEGER, title VARCHAR)
SELECT MIN(rank) FROM table_18590048_1 WHERE title = "Super Mario Land 2: 6 Golden Coins"
What is the Elimination for Candice?
CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR)
SELECT elimination FROM table_name_96 WHERE wrestler = "candice"
Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14?
CREATE TABLE table_name_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR)
SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14
How many times was the result is hired by serepisos?
CREATE TABLE table_26263322_1 (hometown VARCHAR, result VARCHAR)
SELECT COUNT(hometown) FROM table_26263322_1 WHERE result = "Hired by Serepisos"
Who operates the xfm station?
CREATE TABLE table_1601792_3 (operator VARCHAR, station VARCHAR)
SELECT operator FROM table_1601792_3 WHERE station = "XFM"
What's Babson College's enrollment?
CREATE TABLE table_1974782_1 (enrollment INTEGER, institution VARCHAR)
SELECT MAX(enrollment) FROM table_1974782_1 WHERE institution = "Babson College"
What is the Position of the person with a First Election of 1988 as Vice Mayor 2009?
CREATE TABLE table_name_64 (position VARCHAR, first_election VARCHAR)
SELECT position FROM table_name_64 WHERE first_election = "1988 as vice mayor 2009"
What is the car specs for team Airwaves BMW's driver Rob Collard?
CREATE TABLE table_name_68 (car_spec VARCHAR, team VARCHAR, drivers VARCHAR)
SELECT car_spec FROM table_name_68 WHERE team = "airwaves bmw" AND drivers = "rob collard"
What is the largest number played with 16 points in a position over 4?
CREATE TABLE table_name_40 (played INTEGER, points VARCHAR, position VARCHAR)
SELECT MAX(played) FROM table_name_40 WHERE points = 16 AND position > 4
Who is the opponent on November 1?
CREATE TABLE table_name_38 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_38 WHERE date = "november 1"
What's the Year Average that has a Power of BHP (KW) and Trim of LS/2LT?
CREATE TABLE table_name_25 (year INTEGER, power VARCHAR, trim VARCHAR)
SELECT AVG(year) FROM table_name_25 WHERE power = "bhp (kw)" AND trim = "ls/2lt"
Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?
CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT years_in_orlando FROM table_name_10 WHERE nationality = "united states" AND position = "center" AND player = "jawann oldham"
what is the amount of profits in billions for companies with a market value of 204.9 billion?
CREATE TABLE table_1682026_6 (profits__billion_$_ VARCHAR, market_value__billion_$_ VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_6 WHERE market_value__billion_$_ = "204.9"
What is the result for the Green-Communist party when the Left Bloc has 3.0%?
CREATE TABLE table_name_87 (green_communist VARCHAR, left_bloc VARCHAR)
SELECT green_communist FROM table_name_87 WHERE left_bloc = "3.0%"
What is the cardinalatial order and title of bosone?
CREATE TABLE table_name_92 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)
SELECT cardinalatial_order_and_title FROM table_name_92 WHERE elector = "bosone"
What was the time in part 3 when Nick Heidfeld was the driver?
CREATE TABLE table_20159025_1 (part_3 VARCHAR, driver VARCHAR)
SELECT part_3 FROM table_20159025_1 WHERE driver = "Nick Heidfeld"
What is the fewest wins for Thomas in events he had entered exactly 9 times?
CREATE TABLE table_name_13 (wins INTEGER, events VARCHAR)
SELECT MIN(wins) FROM table_name_13 WHERE events = 9
Name the volume for co 2 for 168 g/km
CREATE TABLE table_17941111_2 (volume VARCHAR, co_2 VARCHAR)
SELECT volume FROM table_17941111_2 WHERE co_2 = "168 g/km"
Name the most wins where position is 16th
CREATE TABLE table_1708050_3 (wins INTEGER, position VARCHAR)
SELECT MAX(wins) FROM table_1708050_3 WHERE position = "16th"
How many candidates were there when Henry Garland DuprΓ© was the incumbent?
CREATE TABLE table_1342451_16 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1342451_16 WHERE incumbent = "Henry Garland DuprΓ©"
What was the To par when the place was 4?
CREATE TABLE table_name_60 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_60 WHERE place = "4"
Which NPL net's bank was citibank?
CREATE TABLE table_name_30 (npl_net VARCHAR, bank VARCHAR)
SELECT npl_net FROM table_name_30 WHERE bank = "citibank"
Which Time has a Round of 3, and a Record of 2–0?
CREATE TABLE table_name_12 (time VARCHAR, round VARCHAR, record VARCHAR)
SELECT time FROM table_name_12 WHERE round = 3 AND record = "2–0"
Who was the Opponent on October 31, 1993?
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_71 WHERE date = "october 31, 1993"
Which TV Station has a Romaji Title of kegareta shita?
CREATE TABLE table_name_43 (tv_station VARCHAR, romaji_title VARCHAR)
SELECT tv_station FROM table_name_43 WHERE romaji_title = "kegareta shita"
Name the total number of percentage growth 2000-2008 of uganda?
CREATE TABLE table_10733530_3 (_percentage_growth__2000_2008_ VARCHAR, nation VARCHAR)
SELECT COUNT(_percentage_growth__2000_2008_) FROM table_10733530_3 WHERE nation = "Uganda"
what is the outcome when the surface is grass on 23 june 1997?
CREATE TABLE table_name_45 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_45 WHERE surface = "grass" AND date = "23 june 1997"
What institution had 6 wins and a current streak of won 2?
CREATE TABLE table_1672976_2 (institution VARCHAR, wins VARCHAR, current_streak VARCHAR)
SELECT institution FROM table_1672976_2 WHERE wins = 6 AND current_streak = "Won 2"
How many points did the car with the brm v8 engine have?
CREATE TABLE table_name_70 (points VARCHAR, engine VARCHAR)
SELECT COUNT(points) FROM table_name_70 WHERE engine = "brm v8"
What is the high bronze total for nations ranked 12?
CREATE TABLE table_name_15 (bronze INTEGER, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_15 WHERE rank = "12"
Which mission number has alternate name 1962-f01
CREATE TABLE table_191323_2 (mission_no VARCHAR, alt_name VARCHAR)
SELECT mission_no FROM table_191323_2 WHERE alt_name = "1962-F01"
What is Dennis Kucinich, when % of All is "53%"?
CREATE TABLE table_name_38 (dennis_kucinich VARCHAR, _percentage_of_all VARCHAR)
SELECT dennis_kucinich FROM table_name_38 WHERE _percentage_of_all = "53%"
What was the record when the score was w 108–93 (ot)?
CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR)
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)"
what is the constituency when the rank is less than 5 and the result is con hold?
CREATE TABLE table_name_64 (constituency VARCHAR, rank VARCHAR, result VARCHAR)
SELECT constituency FROM table_name_64 WHERE rank < 5 AND result = "con hold"
Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_first_name VARCHAR, staff_last_name VARCHAR, staff_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
What is the smallest number against when the draws are less than 0?
CREATE TABLE table_name_21 (against INTEGER, draws INTEGER)
SELECT MIN(against) FROM table_name_21 WHERE draws < 0
What surface was the game played on for the September 13, 2009 match?
CREATE TABLE table_name_43 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_43 WHERE date = "september 13, 2009"
When was the game at Essendon?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "essendon"
What was the visitor with a record of 5–8–4?
CREATE TABLE table_name_10 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_10 WHERE record = "5–8–4"
what is the athens xi where dada xi b is strikers fc?
CREATE TABLE table_28759261_5 (athens_xi VARCHAR, dadar_xi_β€˜b’ VARCHAR)
SELECT athens_xi FROM table_28759261_5 WHERE dadar_xi_β€˜b’ = "Strikers FC"
What is the To par of the T3 Player?
CREATE TABLE table_name_63 (to_par VARCHAR, place VARCHAR)
SELECT to_par FROM table_name_63 WHERE place = "t3"
Name the point with points for of 255
CREATE TABLE table_name_67 (points VARCHAR, points_for VARCHAR)
SELECT points FROM table_name_67 WHERE points_for = "255"
Who is the head coach for the score of 4-3?
CREATE TABLE table_22165661_3 (head_coach VARCHAR, score VARCHAR)
SELECT head_coach FROM table_22165661_3 WHERE score = "4-3"
Name the champion for london hunt and country club ( london , on )
CREATE TABLE table_1628792_1 (champion VARCHAR, tournament_location VARCHAR)
SELECT champion FROM table_1628792_1 WHERE tournament_location = "London Hunt and country Club ( London , ON )"
what is the most tonnage grt of any ship sunk or captured on 16 jan 16?
CREATE TABLE table_name_80 (tonnage_grt INTEGER, date VARCHAR)
SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 16"
What was the earliest season where podium was 9?
CREATE TABLE table_26998693_1 (season INTEGER, podiums VARCHAR)
SELECT MIN(season) FROM table_26998693_1 WHERE podiums = 9
Which game had less than 270 rebounds and a rank lower than 5?
CREATE TABLE table_name_36 (games VARCHAR, rebounds VARCHAR, rank VARCHAR)
SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5
How many tries did the player Paul Sykes take when he earned 0 points?
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 0
Who are the Batsmen from the year 2002?
CREATE TABLE table_name_98 (batsmen VARCHAR, year VARCHAR)
SELECT batsmen FROM table_name_98 WHERE year = "2002"
With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks?
CREATE TABLE table_name_16 (peak VARCHAR, hk_viewers VARCHAR, finale VARCHAR)
SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = "1.97 million" AND finale > 33
What was the result when then opponents conference was Mac (east)?
CREATE TABLE table_28418916_3 (result VARCHAR, opponents_conference VARCHAR)
SELECT result FROM table_28418916_3 WHERE opponents_conference = "MAC (East)"
When against is 797 and wins is more than 10, what is the sum of draws?
CREATE TABLE table_name_28 (draws VARCHAR, against VARCHAR, wins VARCHAR)
SELECT COUNT(draws) FROM table_name_28 WHERE against = 797 AND wins > 10
WHAT ARE THE BYES WITH A WIN SMALLER THAN 16, 8 LOSSES, AND AT PENSHURST, WITH AGAINST SMALLER THAN 1405?
CREATE TABLE table_name_24 (byes INTEGER, against VARCHAR, mininera_dfl VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT SUM(byes) FROM table_name_24 WHERE wins < 16 AND losses = 8 AND mininera_dfl = "penshurst" AND against < 1405
what is the date the successor seated because the person died august 17, 1954?
CREATE TABLE table_1652224_5 (date_successor_seated VARCHAR, reason_for_change VARCHAR)
SELECT date_successor_seated FROM table_1652224_5 WHERE reason_for_change = "Died August 17, 1954"
Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8?
CREATE TABLE table_name_60 (gold INTEGER, silver VARCHAR, rank VARCHAR)
SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 8
What was the score of the game when team 2 was club valencia?
CREATE TABLE table_name_70 (score VARCHAR, team_2 VARCHAR)
SELECT score FROM table_name_70 WHERE team_2 = "club valencia"
What was the result of the election incumbent Brent Spence took place in?
CREATE TABLE table_1342218_17 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1342218_17 WHERE incumbent = "Brent Spence"
What was the original air date of the episode written by amanda segel?
CREATE TABLE table_25923164_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_25923164_1 WHERE written_by = "Amanda Segel"
For score 6–2, 6–3 and outcome is loser mention all the edition.
CREATE TABLE table_27877656_7 (edition VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3"