answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT date FROM table_name_75 WHERE home = "phoenix"
What is the date of the match when Phoenix is the home team?
CREATE TABLE table_name_75 (date VARCHAR, home VARCHAR)
SELECT SUM(total) FROM table_name_74 WHERE rank = "9" AND gold > 6
What is the sum of Total ranking 9 and a Gold more than 6
CREATE TABLE table_name_74 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT location FROM table_23486853_8 WHERE date = "March 20"
What is every location for the date of March 20?
CREATE TABLE table_23486853_8 (location VARCHAR, date VARCHAR)
SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256
For series number 256, what was the original air date?
CREATE TABLE table_17356106_1 (original_air_date VARCHAR, series__number 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 shooter FROM table_name_57 WHERE total = "25"
Who's the shooter with a total of 25?
CREATE TABLE table_name_57 (shooter VARCHAR, total VARCHAR)
SELECT general_classification FROM table_29077342_19 WHERE winner = "Steven Kruijswijk"
Name the general classification for steven kruijswijk
CREATE TABLE table_29077342_19 (general_classification VARCHAR, winner VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE entrant = "peter hopwood"
Peter Hopwood has how many laps in all?
CREATE TABLE table_name_53 (laps VARCHAR, entrant VARCHAR)
SELECT derivatives FROM table_name_57 WHERE launch_date = "july 15, 1970; 15:05 gmt"
Which Derivative has a Launch Date of july 15, 1970; 15:05 gmt?
CREATE TABLE table_name_57 (derivatives VARCHAR, launch_date VARCHAR)
SELECT SUM(points) FROM table_name_76 WHERE tyres = "p" AND year > 1986
What is the total points listed that includes P listed Tyres after 1986?
CREATE TABLE table_name_76 (points INTEGER, tyres VARCHAR, year VARCHAR)
SELECT AVG(sprint) FROM table_name_85 WHERE wins = 10 AND feature < 5
How many sprints on average had 10 wins and less than 5 features?
CREATE TABLE table_name_85 (sprint INTEGER, wins VARCHAR, feature VARCHAR)
SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0
How much is the highest number in 2006 with fewer than 0 in 2002?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id
List all every engineer's first name, last name, details and coresponding skill description.
CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR)
SELECT venue FROM table_name_40 WHERE home_team = "collingwood"
Name the venue for collingwood home team
CREATE TABLE table_name_40 (venue VARCHAR, home_team VARCHAR)
SELECT fcc_info FROM table_name_67 WHERE call_sign = "kpcc"
Name the FCC info for call sign of kpcc
CREATE TABLE table_name_67 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT time FROM table_name_76 WHERE country = "ukraine"
What time did the team from Ukraine have?
CREATE TABLE table_name_76 (time VARCHAR, country VARCHAR)
SELECT MAX(average_attendance) FROM table_name_94 WHERE season = "2009"
What was the highest average attendance in the 2009 season?
CREATE TABLE table_name_94 (average_attendance INTEGER, season VARCHAR)
SELECT rank FROM table_name_3 WHERE name = "skanskaskrapan"
What is the rank of Skanskaskrapan?
CREATE TABLE table_name_3 (rank VARCHAR, name VARCHAR)
SELECT club FROM table_17941032_2 WHERE drawn = "1" AND won = "2"
Which club had 2 wins and 1 draw?
CREATE TABLE table_17941032_2 (club VARCHAR, drawn VARCHAR, won VARCHAR)
SELECT year_s__won FROM table_name_50 WHERE player = "al geiberger"
Which year al geiberger is in?
CREATE TABLE table_name_50 (year_s__won VARCHAR, player VARCHAR)
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "233.4 (16)"
What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?
CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR)
SELECT opponent FROM table_name_62 WHERE loss = "brown (9-5)"
Who was the opponent when Brown (9-5) took the loss?
CREATE TABLE table_name_62 (opponent VARCHAR, loss VARCHAR)
SELECT combined FROM table_name_46 WHERE super_g < 10 AND overall < 4
What is Combined, when Super G is less than 10, and when Overall is less than 4?
CREATE TABLE table_name_46 (combined VARCHAR, super_g VARCHAR, overall VARCHAR)
SELECT asset_model FROM Assets WHERE NOT asset_id IN (SELECT asset_id FROM Fault_Log)
Which assets did not incur any fault log? List the asset model.
CREATE TABLE Fault_Log (asset_model VARCHAR, asset_id VARCHAR); CREATE TABLE Assets (asset_model VARCHAR, asset_id VARCHAR)
SELECT SUM(overall) FROM table_name_68 WHERE position = "running back" AND round > 1 AND college = "fresno state"
What is the overall draft number for the running back drafted after round 1 from fresno state?
CREATE TABLE table_name_68 (overall INTEGER, college VARCHAR, position VARCHAR, round VARCHAR)
SELECT 2011 FROM table_name_5 WHERE tournament = "cincinnati masters"
What tournament was at the 2011 Cincinnati Masters?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT original_title FROM table_16255245_1 WHERE film_title_used_in_nomination = "The Counterfeiters"
Name the original title for the counterfeiters
CREATE TABLE table_16255245_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT to_par FROM table_name_18 WHERE score = 70 - 68 - 68 - 71 = 277
What is To par, when Score is "70-68-68-71=277"?
CREATE TABLE table_name_18 (to_par VARCHAR, score VARCHAR)
SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'
Find the first names of students whose first names contain letter "a".
CREATE TABLE STUDENT (Fname VARCHAR)
SELECT republican AS :_steve_sauerberg FROM table_16751596_2 WHERE dates_administered = "August 12, 2008"
Name the republican steve sauerberg for august 12, 2008
CREATE TABLE table_16751596_2 (republican VARCHAR, dates_administered VARCHAR)
SELECT SUM(melbourne) FROM table_name_93 WHERE episode_number_production_number = "19 2-06" AND sydney < 389 OFFSET 000
What is the sum of the values for Melbourne, when Episode Number Production Number is 19 2-06, and when Sydney is less than 389,000?
CREATE TABLE table_name_93 (melbourne INTEGER, episode_number_production_number VARCHAR, sydney VARCHAR)
SELECT MIN(round) FROM table_name_28 WHERE overall = 349 AND pick > 11
What is the lowest round for an overall pick of 349 with a pick number in the round over 11?
CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, pick VARCHAR)
SELECT score FROM table_name_12 WHERE date = "april 21"
What was the score on April 21?
CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR)
SELECT SUM(crowd) FROM table_name_88 WHERE away_team = "south melbourne"
What was the attendance when South Melbourne was the away team?
CREATE TABLE table_name_88 (crowd INTEGER, away_team VARCHAR)
SELECT home_team FROM table_name_73 WHERE away_team = "richmond"
What home team played against Richmond?
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the musician that have produced the most number of songs?
CREATE TABLE Songs (SongId VARCHAR); CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR)
SELECT points_against FROM table_14070062_4 WHERE tries_against = "75"
tell the score when the times gone was 75
CREATE TABLE table_14070062_4 (points_against VARCHAR, tries_against VARCHAR)
SELECT MIN(year) FROM table_name_83 WHERE venue = "athens, greece"
What is the lowest year that has athens, greece as the venue?
CREATE TABLE table_name_83 (year INTEGER, venue VARCHAR)
SELECT MIN(attendance) FROM table_name_73 WHERE h___a = "h" AND round = "semi-finals second leg"
What is the lowest attendance when the h/A is H in the Semi-Finals Second Leg?
CREATE TABLE table_name_73 (attendance INTEGER, h___a VARCHAR, round VARCHAR)
SELECT COUNT(opponent) FROM table_21378160_2 WHERE date = "17/05/2009"
How many opponents did they play on 17/05/2009?
CREATE TABLE table_21378160_2 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(team_nickname) FROM table_28243691_1 WHERE location = "College Station, Texas"
How many mascotts are there for college station, texas
CREATE TABLE table_28243691_1 (team_nickname VARCHAR, location VARCHAR)
SELECT washington, _dc FROM table_13012165_1 WHERE new_york = "Ramapo LL Ramapo"
What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?
CREATE TABLE table_13012165_1 (washington VARCHAR, _dc VARCHAR, new_york VARCHAR)
SELECT COUNT(direction) FROM table_197286_4 WHERE further_cities = "Debrecen"
Name the number of direction for debrecen
CREATE TABLE table_197286_4 (direction VARCHAR, further_cities VARCHAR)
SELECT result FROM table_name_8 WHERE incumbent = "david e. finley"
When David E. Finley was the incumbent what was the result?
CREATE TABLE table_name_8 (result VARCHAR, incumbent VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE result = "w 34-21"
When is the last week that has a result of a w 34-21?
CREATE TABLE table_name_10 (week INTEGER, result VARCHAR)
SELECT COUNT(week) FROM table_21761882_4 WHERE location = "Ivor Wynne Stadium"
What was the total number of weeks where the game played Ivor Wynne Stadium?
CREATE TABLE table_21761882_4 (week VARCHAR, location VARCHAR)
SELECT MAX(year_of_issue) FROM table_name_52 WHERE thickness = "1.42mm"
Which Year of Issue has a Thickness of 1.42mm?
CREATE TABLE table_name_52 (year_of_issue INTEGER, thickness VARCHAR)
SELECT icelandic FROM table_name_85 WHERE german = "hand"
What's the Icelandic word for the German word for hand?
CREATE TABLE table_name_85 (icelandic VARCHAR, german VARCHAR)
SELECT exaltation FROM table_name_21 WHERE fall = "moon"
Which exaltation has a fall of moon?
CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR)
SELECT COUNT(DISTINCT Company) FROM entrepreneur
How many distinct companies are there?
CREATE TABLE entrepreneur (Company VARCHAR)
SELECT MIN(grid) FROM table_name_20 WHERE constructor = "brm" AND laps > 54
What is the low grid that has brm and over 54 laps?
CREATE TABLE table_name_20 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'
what is the name and nation of the singer who have a song having 'Hey' in its name?
CREATE TABLE singer (name VARCHAR, country VARCHAR, song_name VARCHAR)
SELECT spouse FROM table_name_38 WHERE birth = "30 may 1653"
Which Spouse has a Birth of 30 may 1653?
CREATE TABLE table_name_38 (spouse VARCHAR, birth VARCHAR)
SELECT tuesday_tiw__tyr FROM table_name_61 WHERE sunday_sunna_sól = "sondag"
Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?
CREATE TABLE table_name_61 (tuesday_tiw__tyr VARCHAR, sunday_sunna_sól VARCHAR)
SELECT COUNT(wins) FROM table_16225511_2 WHERE school = "Baylor"
How many wins did Baylor have?
CREATE TABLE table_16225511_2 (wins VARCHAR, school VARCHAR)
SELECT season FROM table_name_92 WHERE division_two = "fownhope reserves"
Which Season was the Division Two Fownhope Reserves champions?
CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR)
SELECT director_s_ FROM table_18994724_1 WHERE film_title_used_in_nomination = "Nuits d'Arabie"
Who directed the film Nuits d'arabie?
CREATE TABLE table_18994724_1 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT ticket_sold___available FROM table_18277458_2 WHERE venue = "Carver-Hawkeye Arena"
How many tickets are sold for the Carver-Hawkeye Arena?
CREATE TABLE table_18277458_2 (ticket_sold___available VARCHAR, venue VARCHAR)
SELECT cdp_name FROM table_name_58 WHERE fips_code = 3659708
Name the CDP name for FIPS code of 3659708
CREATE TABLE table_name_58 (cdp_name VARCHAR, fips_code VARCHAR)
SELECT week_5_sept_28 FROM table_name_81 WHERE week_10_nov_2 = "maryland (6-2)"
What was the week 5 opponent for the year with a week 10 opponent of Maryland (6-2)?
CREATE TABLE table_name_81 (week_5_sept_28 VARCHAR, week_10_nov_2 VARCHAR)
SELECT division_west FROM table_name_69 WHERE division_north = "alumina"
Who won Division West when Division North was won by Alumina?
CREATE TABLE table_name_69 (division_west VARCHAR, division_north VARCHAR)
SELECT 2006 FROM table_name_48 WHERE 2007 = "3r"
What is 2006 has a 2007 of 3r?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT date FROM table_name_88 WHERE opponent = "denver broncos"
Opponent of denver broncos happened on what date?
CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR)
SELECT athlete FROM table_name_25 WHERE school = "burbank high school"
What is the Athlete from Burbank High School?
CREATE TABLE table_name_25 (athlete VARCHAR, school VARCHAR)
SELECT AVG(year) FROM table_name_60 WHERE certification = "2x platinum" AND álbum = "xuxa 3" AND sales > 750 OFFSET 000
What was the average year that Xuxa 3 earned the certification 2x platinum, and that the sales were higher than 750,000?
CREATE TABLE table_name_60 (year INTEGER, sales VARCHAR, certification VARCHAR, álbum VARCHAR)
SELECT record FROM table_name_12 WHERE method = "tko (elbows)"
What was the record when the TKO (elbows) method was used?
CREATE TABLE table_name_12 (record VARCHAR, method VARCHAR)
SELECT date FROM table_name_87 WHERE record = "7.39"
What is the Date with a Record that is 7.39?
CREATE TABLE table_name_87 (date VARCHAR, record VARCHAR)
SELECT united_fc FROM table_28759261_5 WHERE pifa_colaba_fc_u_17 = "Sporting Options"
what is the united fc where pifa colaba is sporting options?
CREATE TABLE table_28759261_5 (united_fc VARCHAR, pifa_colaba_fc_u_17 VARCHAR)
SELECT score FROM table_name_66 WHERE bowl_game = "bcs national championship"
What was the score of the BCS National Championship game?
CREATE TABLE table_name_66 (score VARCHAR, bowl_game VARCHAR)
SELECT week FROM table_name_76 WHERE tournament = "paris"
What week was the tournament of paris?
CREATE TABLE table_name_76 (week VARCHAR, tournament VARCHAR)
SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86
Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86?
CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR)
SELECT height FROM table_29598261_1 WHERE last_school_college = "Columbia River HS"
what is the height of columbia river hs?
CREATE TABLE table_29598261_1 (height VARCHAR, last_school_college VARCHAR)
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"
How many acres does the area of Lissagroom with Bandon as its poor law union cover?
CREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id
How many assets does each maintenance contract contain? List the number and the contract id.
CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)
SELECT player FROM table_name_71 WHERE country = "united states" AND place = "t6" AND score = 67 - 69 = 136
What player placed t6 for the United States with a score of 67-69=136?
CREATE TABLE table_name_71 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR)
SELECT title FROM table_name_78 WHERE name = "amenemhat ii"
What is the title of Amenemhat II?
CREATE TABLE table_name_78 (title VARCHAR, name VARCHAR)
SELECT company FROM table_20667854_1 WHERE free_float = "0.2726"
Which companies have a free float of 0.2726?
CREATE TABLE table_20667854_1 (company VARCHAR, free_float VARCHAR)
SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille"
What is the first leg score in that match where Marseille was the first team?
CREATE TABLE table_name_85 (team_1 VARCHAR)
SELECT team_1 FROM table_name_36 WHERE team_2 = "hafia fc"
What team played against Hafia FC (team 2)?
CREATE TABLE table_name_36 (team_1 VARCHAR, team_2 VARCHAR)
SELECT MIN(year) FROM table_name_52 WHERE league = "usisl pro league"
What was the earliest year for the USISL Pro League?
CREATE TABLE table_name_52 (year INTEGER, league VARCHAR)
SELECT COUNT(hometown) FROM table_29598261_1 WHERE name = "Faisal Aden"
how many hometowns for faisal aden?
CREATE TABLE table_29598261_1 (hometown VARCHAR, name VARCHAR)
SELECT player FROM table_name_43 WHERE team = "denver broncos"
What player is from the Denver Broncos?
CREATE TABLE table_name_43 (player VARCHAR, team VARCHAR)
SELECT successor FROM table_225093_4 WHERE reason_for_change = "Seat declared vacant January 2, 1808"
Who is the successor when the reason for change is seat declared vacant January 2, 1808
CREATE TABLE table_225093_4 (successor VARCHAR, reason_for_change VARCHAR)
SELECT opponent FROM table_23308178_8 WHERE date = "February 5"
How many games did they play on february 5?
CREATE TABLE table_23308178_8 (opponent VARCHAR, date VARCHAR)
SELECT start_date FROM table_1949994_7 WHERE end_date = "July ?"
When did the season that end in July ? start?
CREATE TABLE table_1949994_7 (start_date VARCHAR, end_date VARCHAR)
SELECT Party FROM party WHERE NOT Party_ID IN (SELECT Party FROM election)
What are the names of parties that do not have delegates in election?
CREATE TABLE election (Party VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
SELECT MIN(silver) FROM table_name_94 WHERE nation = "germany" AND gold > 4
what is the least silver for germany when gold is more than 4?
CREATE TABLE table_name_94 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = "SALE"
Show all dates of transactions whose type code is "SALE".
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR)
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 28
Which skip (club) had 28 PA?
CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR)
SELECT team FROM table_name_65 WHERE qual_1 = "1:16.417"
What is Team, when Qual 1 is 1:16.417?
CREATE TABLE table_name_65 (team VARCHAR, qual_1 VARCHAR)
SELECT director FROM table_name_60 WHERE year < 1949 AND leading_lady = "linda darnell" AND role = "jonathan kent"
Who directs before 1949 with linda darnell leading and jonathan kent?
CREATE TABLE table_name_60 (director VARCHAR, role VARCHAR, year VARCHAR, leading_lady VARCHAR)
SELECT COUNT(party) AS a FROM table_22756549_1 WHERE winner = "M. Gounder"
How many times did M. Gounder win for Party A?
CREATE TABLE table_22756549_1 (party VARCHAR, winner VARCHAR)
SELECT record FROM table_name_58 WHERE team = "st. louis"
What is the record for the St. Louis team?
CREATE TABLE table_name_58 (record VARCHAR, team VARCHAR)
SELECT losing_team FROM table_name_25 WHERE date = "june 16"
Who was the losing team on June 16?
CREATE TABLE table_name_25 (losing_team VARCHAR, date VARCHAR)
SELECT MAX(position) FROM table_name_75 WHERE points > 12 AND club = "lietava-2 jonava" AND wins > 7
What is the highest position of club lietava-2 jonava, which has more than 12 points and more than 7 wins?
CREATE TABLE table_name_75 (position INTEGER, wins VARCHAR, points VARCHAR, club VARCHAR)
SELECT runner_up FROM table_name_39 WHERE year = 1887
Who was the runner-up in 1887 competition for 'Articles with HCards'?
CREATE TABLE table_name_39 (runner_up VARCHAR, year VARCHAR)
SELECT fleet_number_s_ FROM table_name_42 WHERE quantity_made = "3"
What fleet number had 3 made?
CREATE TABLE table_name_42 (fleet_number_s_ VARCHAR, quantity_made VARCHAR)
SELECT MIN(game) FROM table_name_96 WHERE record = "16–4–3"
What was the earliest game with a record of 16–4–3?
CREATE TABLE table_name_96 (game INTEGER, record VARCHAR)
SELECT total FROM table_16779068_5 WHERE one_hand_clean_ & _jerk = "87.5" AND snatch = "87.5"
Name the total with one hand clean and jerk is 87.5 and snatch is 87.5
CREATE TABLE table_16779068_5 (total VARCHAR, snatch VARCHAR, one_hand_clean_ VARCHAR, _jerk VARCHAR)
SELECT team FROM table_name_74 WHERE pick > 30 AND college = "saginaw valley state"
What team has a pick larger than 30, when the college is saginaw valley state?
CREATE TABLE table_name_74 (team VARCHAR, pick VARCHAR, college VARCHAR)