answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT mascot FROM table_name_10 WHERE ihsaa_class = "aa" AND enrollment > 369
Which Mascot has IHSAA Class of aa, and a Enrollment larger than 369?
CREATE TABLE table_name_10 (mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
SELECT date FROM table_name_88 WHERE score = "3–0" AND set_1 = "25–22"
What date was the score 3–0, and set 1 was 25–22?
CREATE TABLE table_name_88 (date VARCHAR, score VARCHAR, set_1 VARCHAR)
SELECT engine FROM table_name_17 WHERE entrant = "colt racing"
What is a colt racing entrant engine?
CREATE TABLE table_name_17 (engine VARCHAR, entrant VARCHAR)
SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine"
How many positions is player Tom Glavine?
CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR)
SELECT COUNT(win__percentage) FROM table_name_78 WHERE appearances = 4 AND losses > 3
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3?
CREATE TABLE table_name_78 (win__percentage VARCHAR, appearances VARCHAR, losses VARCHAR)
SELECT viewers__m_ FROM table_name_64 WHERE episode = "40 days"
What Viewers (m) has an Episode of 40 days?
CREATE TABLE table_name_64 (viewers__m_ VARCHAR, episode VARCHAR)
SELECT outcome FROM table_name_30 WHERE score = "4–6 3–6"
Which Outcome has a Score of 4–6 3–6?
CREATE TABLE table_name_30 (outcome VARCHAR, score VARCHAR)
SELECT venue FROM table_name_38 WHERE rank = "3"
Which venue is rank 3?
CREATE TABLE table_name_38 (venue VARCHAR, rank VARCHAR)
SELECT position FROM table_name_92 WHERE pick < 152 AND round < 3
Which Position has a Pick smaller than 152, and a Round smaller than 3?
CREATE TABLE table_name_92 (position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT team FROM table_28628309_8 WHERE player = "Ronjay Buenafe"
What is the team when player is listed as Ronjay Buenafe?
CREATE TABLE table_28628309_8 (team VARCHAR, player VARCHAR)
SELECT COUNT(draws) FROM table_name_53 WHERE played < 38
What is the number of draws when played is less than 38?
CREATE TABLE table_name_53 (draws VARCHAR, played INTEGER)
SELECT T1.Delegate, T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID
Show the delegates and the names of the party they belong to.
CREATE TABLE election (Delegate VARCHAR, Party VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
SELECT nation FROM table_name_35 WHERE points = 1399.3
What nation had 1399.3 points?
CREATE TABLE table_name_35 (nation VARCHAR, points VARCHAR)
SELECT opponent FROM table_name_89 WHERE game > 56 AND february = 24
Which Opponent has a Game larger than 56 and February of 24?
CREATE TABLE table_name_89 (opponent VARCHAR, game VARCHAR, february VARCHAR)
SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176
What is the lowest attendance last year when more than 176 were hosted?
CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER)
SELECT game FROM table_20928661_1 WHERE record = "3-0"
Name the game for record being 3-0
CREATE TABLE table_20928661_1 (game VARCHAR, record VARCHAR)
SELECT MAX(run_rate) FROM table_name_61 WHERE rank = 4
What is the run rate for rank 4?
CREATE TABLE table_name_61 (run_rate INTEGER, rank VARCHAR)
SELECT assembled FROM table_name_60 WHERE dissolved = "9 february 1611" AND elected = "1606"
What is the assembled date of the parliament dissolved on 9 February 1611 and elected in 1606?
CREATE TABLE table_name_60 (assembled VARCHAR, dissolved VARCHAR, elected VARCHAR)
SELECT country FROM table_name_20 WHERE format = "lp" AND catalog = "s 31503"
What country has an LP format, catalog s 31503?
CREATE TABLE table_name_20 (country VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT MAX(year) FROM table_name_18 WHERE director = "no"
What year is the latest year that has no under director?
CREATE TABLE table_name_18 (year INTEGER, director VARCHAR)
SELECT away_team AS score FROM table_name_97 WHERE home_team = "st kilda"
When the home team of st kilda was playing, what was the away team score?
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR)
SELECT district FROM table_1341640_39 WHERE incumbent = "Ray Musto"
What district is Ray Musto the incumbent of?
CREATE TABLE table_1341640_39 (district VARCHAR, incumbent VARCHAR)
SELECT spouse FROM table_name_61 WHERE death = "6 april 1780"
What is the Spouse of the Duchess that has a Death on 6 april 1780?
CREATE TABLE table_name_61 (spouse VARCHAR, death VARCHAR)
SELECT AVG(wins) FROM table_name_47 WHERE class = "50cc" AND rank = "8th"
Tell me the average wins for class of 50cc and rank of 8th
CREATE TABLE table_name_47 (wins INTEGER, class VARCHAR, rank VARCHAR)
SELECT location FROM table_name_1 WHERE game = 7
What is the location of game 7?
CREATE TABLE table_name_1 (location VARCHAR, game VARCHAR)
SELECT release_date FROM table_name_35 WHERE director = "friz freleng" AND title = "tree cornered tweety"
When was Tree Cornered Tweety, directed by Friz Freleng, released?
CREATE TABLE table_name_35 (release_date VARCHAR, director VARCHAR, title VARCHAR)
SELECT canton FROM table_10020178_1 WHERE name = "Grande Dixence"
What is the canton of grande dixence?
CREATE TABLE table_10020178_1 (canton VARCHAR, name VARCHAR)
SELECT MIN(number_of_households) FROM table_name_77 WHERE median_family_income = "$41,778" AND population > 38 OFFSET 319
What is the lowest number of households for the entry with a median income of $41,778 and a population greater than 38,319?
CREATE TABLE table_name_77 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR)
SELECT original_air_date FROM table_22265225_1 WHERE production_code = "218"
What day did the episode with a production code of 218 originally air?
CREATE TABLE table_22265225_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT COUNT(stage) FROM table_26010857_13 WHERE teams_classification = "Cervélo TestTeam"
What is the number of stages where the teams classification leader is Cervélo Testteam?
CREATE TABLE table_26010857_13 (stage VARCHAR, teams_classification VARCHAR)
SELECT home FROM table_name_81 WHERE league = "3rd liga (iii)"
What is the home for the league 3rd liga (iii)?
CREATE TABLE table_name_81 (home VARCHAR, league VARCHAR)
SELECT COUNT(nba_draft) FROM table_11677760_1 WHERE player = "Felipe Lopez"
how many times was the player felipe lopez?
CREATE TABLE table_11677760_1 (nba_draft VARCHAR, player VARCHAR)
SELECT ladies_1st_xi FROM table_21576644_2 WHERE mens_2nd_xi = "10th, South West District 1"
When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi?
CREATE TABLE table_21576644_2 (ladies_1st_xi VARCHAR, mens_2nd_xi VARCHAR)
SELECT final_round FROM table_name_50 WHERE player = "danilo gallinari"
What is Final round, when Player is Danilo Gallinari?
CREATE TABLE table_name_50 (final_round VARCHAR, player VARCHAR)
SELECT position FROM table_name_32 WHERE pick > 243
What was the position of the player picked at 243?
CREATE TABLE table_name_32 (position VARCHAR, pick INTEGER)
SELECT MIN(muslim___percentage_of_total_population_) FROM table_name_37 WHERE census_year > 2011
What is the lowest Muslim (% of Total population) of a year after 2011?
CREATE TABLE table_name_37 (muslim___percentage_of_total_population_ INTEGER, census_year INTEGER)
SELECT SUM(second) FROM table_name_1 WHERE total < 70 AND premier < 20 AND first > 18
What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?
CREATE TABLE table_name_1 (second INTEGER, first VARCHAR, total VARCHAR, premier VARCHAR)
SELECT loss FROM table_name_63 WHERE record = "54–42"
What was the loss of the game with a record of 54–42?
CREATE TABLE table_name_63 (loss VARCHAR, record VARCHAR)
SELECT position FROM table_22344463_2 WHERE height = "181cm"
If the height is 181cm, what was the position?
CREATE TABLE table_22344463_2 (position VARCHAR, height VARCHAR)
SELECT programming FROM table_name_1 WHERE operator = "ivptc"
What channel has an operator of ivptc?
CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR)
SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2005 AND T3.name = 'Washington Nationals' INTERSECT SELECT T2.name_first, T2.name_last FROM salary AS T1 JOIN player AS T2 ON T1.player_id = T2.player_id JOIN team AS T3 ON T3.team_id_br = T1.team_id WHERE T1.year = 2007 AND T3.name = 'Washington Nationals'
List players' first name and last name who received salary from team Washington Nationals in both 2005 and 2007.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE salary (player_id VARCHAR, team_id VARCHAR, year VARCHAR)
SELECT team_classification FROM table_26257223_13 WHERE winner = "Chris Horner"
Who led team classification during the stage whose winner was Chris Horner?
CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)
SELECT COUNT(events) FROM table_name_23 WHERE top_5 < 2 AND top_25 < 3
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3?
CREATE TABLE table_name_23 (events VARCHAR, top_5 VARCHAR, top_25 VARCHAR)
SELECT MIN(land___sqmi__) FROM table_name_49 WHERE geo_id < 3800587900
Which Land (sqmi) has a GEO ID smaller than 3800587900?
CREATE TABLE table_name_49 (land___sqmi__ INTEGER, geo_id INTEGER)
SELECT june_10_11 FROM table_25287007_2 WHERE november_3 = "153"
How many solar eclipse on June 10-11, while November 3 is 153?
CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, november_3 VARCHAR)
SELECT rider FROM table_name_49 WHERE time = "accident" AND bike = "kawasaki zx-10r"
Who was the rider who had an accident time and a kawasaki zx-10r bike?
CREATE TABLE table_name_49 (rider VARCHAR, time VARCHAR, bike VARCHAR)
SELECT golf FROM table_name_66 WHERE school = "green bay"
Does Green Bay have a golf team?
CREATE TABLE table_name_66 (golf VARCHAR, school VARCHAR)
SELECT opponent FROM table_name_83 WHERE loss = "dickey (0-1)"
Who did they play when dickey (0-1) recorded the loss?
CREATE TABLE table_name_83 (opponent VARCHAR, loss VARCHAR)
SELECT average FROM table_21991074_1 WHERE club = "Chesterfield Spires"
What is Chesterfield Spires average?
CREATE TABLE table_21991074_1 (average VARCHAR, club VARCHAR)
SELECT implementation FROM table_1206114_2 WHERE netflow_version = "v5, v8, v9, IPFIX"
What is the implementation when the netflow version is v5, v8, v9, ipfix?
CREATE TABLE table_1206114_2 (implementation VARCHAR, netflow_version VARCHAR)
SELECT home_team FROM table_name_29 WHERE tie_no = "1"
Who was the home team that has a tie no of 1?
CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "bournemouth"
On what date was the away team Bournemouth?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1
what is the highest rank when the bronze is less than 1 and the total is less than 1?
CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR)
SELECT SUM(year) FROM table_name_67 WHERE award = "tony award" AND nominee = "bernadette peters"
What was the year Bernadette Peters was a nominee for the Tony award?
CREATE TABLE table_name_67 (year INTEGER, award VARCHAR, nominee VARCHAR)
SELECT streak FROM table_name_27 WHERE score = "98–109"
Which Streak has a Score of 98–109?
CREATE TABLE table_name_27 (streak VARCHAR, score VARCHAR)
SELECT venue FROM table_name_74 WHERE home_team = "melbourne"
What is Melbourne's home venue?
CREATE TABLE table_name_74 (venue VARCHAR, home_team VARCHAR)
SELECT power_capacity__gw_ FROM table_11456251_5 WHERE number_of_generators = 781
What is the power capacity when the generators were 781?
CREATE TABLE table_11456251_5 (power_capacity__gw_ VARCHAR, number_of_generators VARCHAR)
SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 2008"
How many weeks are associated with Season 3 – spring 2008?
CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR)
SELECT batsmen FROM table_name_98 WHERE year = "2002"
Who are the Batsmen from the year 2002?
CREATE TABLE table_name_98 (batsmen VARCHAR, year VARCHAR)
SELECT final_score FROM table_24123547_2 WHERE opponent = "Lions"
What was the result of the games VS the Lions?
CREATE TABLE table_24123547_2 (final_score VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM dependent WHERE sex = 'F'
how many female dependents are there?
CREATE TABLE dependent (sex VARCHAR)
SELECT electorate FROM table_name_37 WHERE member = "dingley brittin category:articles with hcards"
What electorate does Member dingley brittin category:articles with hcards represent?
CREATE TABLE table_name_37 (electorate VARCHAR, member VARCHAR)
SELECT winning_driver FROM table_14638077_2 WHERE pole_position = "Paul Tracy" AND race_name = "Miller Genuine Draft 200"
who is the the winning driver with pole position being paul tracy and race name being miller genuine draft 200
CREATE TABLE table_14638077_2 (winning_driver VARCHAR, pole_position VARCHAR, race_name VARCHAR)
SELECT Famous_Title FROM artist WHERE NOT Artist_ID IN (SELECT Artist_ID FROM volume)
Find the famous titles of artists that do not have any volume.
CREATE TABLE volume (Famous_Title VARCHAR, Artist_ID VARCHAR); CREATE TABLE artist (Famous_Title VARCHAR, Artist_ID VARCHAR)
SELECT 2012 FROM table_name_84 WHERE 2013 = "2r" AND 2005 = "1r" AND 2008 = "1r"
What is the value in 2012 if it is 2R in 2013, 1R in 2005, and 1R in 2008?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT home__1st_leg_ FROM table_name_90 WHERE aggregate = "3-1"
What was the first leg home that had a total aggregate of 3-1?
CREATE TABLE table_name_90 (home__1st_leg_ VARCHAR, aggregate VARCHAR)
SELECT office FROM table_name_55 WHERE socialist_workers_ticket = "sylvia weinstein"
What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?
CREATE TABLE table_name_55 (office VARCHAR, socialist_workers_ticket VARCHAR)
SELECT AVG(year) FROM table_name_84 WHERE rank > 3 AND floors = 28
Tell me the average year for rank more than 3 and 28 floors
CREATE TABLE table_name_84 (year INTEGER, rank VARCHAR, floors VARCHAR)
SELECT district FROM table_2417390_4 WHERE date_successor_seated = "March 28, 1878"
What district was the successor seated in March 28, 1878?
CREATE TABLE table_2417390_4 (district VARCHAR, date_successor_seated VARCHAR)
SELECT SUM(grid) FROM table_name_78 WHERE laps < 2
What is the total grid with laps less than 2?
CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT SUM(laps) FROM table_name_72 WHERE time_retired = "gearbox" AND driver = "george eaton" AND grid < 17
What is the lap total for george eaton, with a grid under 17 retiring due to gearbox?
CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT MIN(drawn) FROM table_name_51 WHERE position > 10 AND played < 20
What is the smallest drawn with a position bigger than 10 and a played less than 20?
CREATE TABLE table_name_51 (drawn INTEGER, position VARCHAR, played VARCHAR)
SELECT name FROM table_name_95 WHERE dcsf_number > 2448 AND ofsted_number = 131319
What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?
CREATE TABLE table_name_95 (name VARCHAR, dcsf_number VARCHAR, ofsted_number VARCHAR)
SELECT region_name FROM table_287659_2 WHERE regional_page__number = "1-3, 5-7, 9-11, 13-15"
Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?
CREATE TABLE table_287659_2 (region_name VARCHAR, regional_page__number VARCHAR)
SELECT COUNT(gold) FROM table_name_16 WHERE rank = "2" AND silver < 2
What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?
CREATE TABLE table_name_16 (gold VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200
Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.
CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR)
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE no_in_season = 4
How many U.S. viewers were there for the number 4 episode in season?
CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR)
SELECT date_of_birth FROM table_12134383_1 WHERE _number = 2
what's the date of birth with # being 2
CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, _number VARCHAR)
SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus"
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?
CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR)
SELECT con__gress FROM table_name_50 WHERE date = "2010"
Which congress was held in 2010?
CREATE TABLE table_name_50 (con__gress VARCHAR, date VARCHAR)
SELECT barony FROM table_30120560_1 WHERE area__acres__ = 560
what is the barony and an area of 560?
CREATE TABLE table_30120560_1 (barony VARCHAR, area__acres__ VARCHAR)
SELECT route FROM table_name_14 WHERE distance = "170.8km"
Name the route for 170.8km distance
CREATE TABLE table_name_14 (route VARCHAR, distance VARCHAR)
SELECT party FROM table_name_23 WHERE state = "vic" AND electorate = "wannon"
Which party had a member from the state of Vic and an Electorate called Wannon?
CREATE TABLE table_name_23 (party VARCHAR, state VARCHAR, electorate VARCHAR)
SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet"
Which torque value is associated with the 1.3 16V multijet engine?
CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR)
SELECT COUNT(score) FROM table_27721131_2 WHERE high_points = "Andray Blatche (17)"
What's the score in andray blatche (17) high points?
CREATE TABLE table_27721131_2 (score VARCHAR, high_points VARCHAR)
SELECT MAX(game) FROM table_name_14 WHERE opponent = "@ pittsburgh penguins"
Which Game has an Opponent of @ pittsburgh penguins?
CREATE TABLE table_name_14 (game INTEGER, opponent VARCHAR)
SELECT team FROM table_29997127_4 WHERE date = "April 21"
What team did the suns play on April 21?
CREATE TABLE table_29997127_4 (team VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_5 WHERE date = "november 1, 1981"
What is the average Attendance for the game on November 1, 1981?
CREATE TABLE table_name_5 (attendance INTEGER, date VARCHAR)
SELECT score FROM table_name_14 WHERE winner = "ken still (3)"
What was the score of Ken Still (3) when he won first place?
CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR)
SELECT MIN(renewable_electricity_w_o_hydro__gw) AS •h_ FROM table_25244412_1 WHERE renewable_electricity__gw•h_ = 5760
When renewable electricity is 5760 (gw×h) what is the minimum amount of renewable elecrrixity without hydrogen power?
CREATE TABLE table_25244412_1 (renewable_electricity_w_o_hydro__gw INTEGER, renewable_electricity__gw•h_ VARCHAR)
SELECT opponent FROM table_name_36 WHERE venue = "h" AND date = "3 december 1898"
Who is the opponent of the match on 3 December 1898 in venue h?
CREATE TABLE table_name_36 (opponent VARCHAR, venue VARCHAR, date VARCHAR)
SELECT title FROM table_name_73 WHERE type = "album" AND year > 1986
Which Title has a Type of album and a Year larger than 1986?
CREATE TABLE table_name_73 (title VARCHAR, type VARCHAR, year VARCHAR)
SELECT competition FROM table_17120964_9 WHERE opponent = "Sheffield Scimitars"
what was the competitoin where the opponent is sheffield scimitars?
CREATE TABLE table_17120964_9 (competition VARCHAR, opponent VARCHAR)
SELECT MIN(played) FROM table_name_6 WHERE position = 2 AND goals_against > 53
Which lowest played has a Position of 2, and Goals against larger than 53?
CREATE TABLE table_name_6 (played INTEGER, position VARCHAR, goals_against VARCHAR)
SELECT AVG(enr) FROM College WHERE state = 'FL'
What is average enrollment of colleges in the state FL?
CREATE TABLE College (enr INTEGER, state VARCHAR)
SELECT result FROM table_name_14 WHERE record = "5–4"
Which Result has a Record of 5–4?
CREATE TABLE table_name_14 (result VARCHAR, record VARCHAR)
SELECT country FROM table_name_26 WHERE rank > 4 AND time = "5:59.56"
What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?
CREATE TABLE table_name_26 (country VARCHAR, rank VARCHAR, time VARCHAR)
SELECT head_coach FROM table_20140132_1 WHERE venue = "Lokomotiv"
Who is the head coach of the team who's venue is Lokomotiv?
CREATE TABLE table_20140132_1 (head_coach VARCHAR, venue VARCHAR)
SELECT finale FROM table_19210674_1 WHERE rank = 7
What is the finale number ranked at number 7?
CREATE TABLE table_19210674_1 (finale VARCHAR, rank VARCHAR)
SELECT title FROM table_name_39 WHERE label = "warp records / paper bag records"
What title has a Label of warp records / paper bag records?
CREATE TABLE table_name_39 (title VARCHAR, label VARCHAR)