question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the attendance for Week 1?
CREATE TABLE table_name_48 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_48 WHERE week = 1
When was Dale Alford first elected in the Arkansas 5 district?
CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1341897_6 WHERE district = "Arkansas 5"
What are the most wins in 1971 in 250cc class?
CREATE TABLE table_name_11 (wins INTEGER, class VARCHAR, year VARCHAR)
SELECT MAX(wins) FROM table_name_11 WHERE class = "250cc" AND year = 1971
What is the average capacity for the farm at Gortahile having more than 8 turbines?
CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR)
SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8
Show the names of all of the high schooler Kyle's friends.
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, friend_id VARCHAR); CREATE TABLE Highschooler (id VARCHAR, name VARCHAR)
SELECT T3.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id JOIN Highschooler AS T3 ON T1.friend_id = T3.id WHERE T2.name = "Kyle"
Name the most kr votes for value of each vote for 208
CREATE TABLE table_22897453_1 (kr_narayanan__votes_ INTEGER, value_of_each_vote VARCHAR)
SELECT MAX(kr_narayanan__votes_) FROM table_22897453_1 WHERE value_of_each_vote = 208
Name the pick number for bill atessis
CREATE TABLE table_name_15 (pick__number VARCHAR, name VARCHAR)
SELECT pick__number FROM table_name_15 WHERE name = "bill atessis"
What is the highest attendance on September 14, 1986?
CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_84 WHERE date = "september 14, 1986"
In how many episodes were Vanessa Feltz and Lee Mack the team for Sean?
CREATE TABLE table_23292220_6 (episode VARCHAR, seans_team VARCHAR)
SELECT COUNT(episode) FROM table_23292220_6 WHERE seans_team = "Vanessa Feltz and Lee Mack"
Who is the driver with 1 grid?
CREATE TABLE table_name_30 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_30 WHERE grid = 1
What was the department that got $626,798 in local investments?
CREATE TABLE table_17118006_2 (department VARCHAR, local_investment__us$_ VARCHAR)
SELECT department FROM table_17118006_2 WHERE local_investment__us$_ = "626,798"
What is the Place of the Player with a To par of +1 and Score of 74-70-69-72=285?
CREATE TABLE table_name_97 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_97 WHERE to_par = "+1" AND score = 74 - 70 - 69 - 72 = 285
What is the cardinalatial order of the elector elevated circa 1116?
CREATE TABLE table_name_26 (cardinalatial_order_and_title VARCHAR, elevated VARCHAR)
SELECT cardinalatial_order_and_title FROM table_name_26 WHERE elevated = "circa 1116"
Name the number of points for south korea
CREATE TABLE table_13282157_3 (points VARCHAR, country VARCHAR)
SELECT COUNT(points) FROM table_13282157_3 WHERE country = "South Korea"
Which 2nd senior VIII that also has a 4th senior stm?
CREATE TABLE table_name_60 (senior_2nd_viii VARCHAR, senior_iv VARCHAR)
SELECT senior_2nd_viii FROM table_name_60 WHERE senior_iv = "stm"
How many different status codes of things are there?
CREATE TABLE Timed_Status_of_Things (Status_of_Thing_Code VARCHAR)
SELECT COUNT(DISTINCT Status_of_Thing_Code) FROM Timed_Status_of_Things
What state has the University of California, Los Angeles?
CREATE TABLE table_name_67 (state VARCHAR, host VARCHAR)
SELECT state FROM table_name_67 WHERE host = "university of california, los angeles"
What were the losses when the byes were less than 0?
CREATE TABLE table_name_41 (losses INTEGER, byes INTEGER)
SELECT MIN(losses) FROM table_name_41 WHERE byes < 0
Tell me the sum of cars per set for operator of london midland
CREATE TABLE table_name_3 (cars_per_set INTEGER, operator VARCHAR)
SELECT SUM(cars_per_set) FROM table_name_3 WHERE operator = "london midland"
How many weeks are there that include the date November 9, 1969.
CREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_10646790_2 WHERE date = "November 9, 1969"
What is the total number of German submarines lost with more than 120958 sunk by mines?
CREATE TABLE table_name_46 (german_submarines_lost VARCHAR, sunk_by_mines INTEGER)
SELECT COUNT(german_submarines_lost) FROM table_name_46 WHERE sunk_by_mines > 120958
What is the low rank for hale irwin with under 32 wins?
CREATE TABLE table_name_37 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE player = "hale irwin" AND wins < 32
Who had a second qualification time of 1:01.777?
CREATE TABLE table_name_9 (name VARCHAR, qual_2 VARCHAR)
SELECT name FROM table_name_9 WHERE qual_2 = "1:01.777"
What is the Purse in Sunland Park Track?
CREATE TABLE table_name_37 (purse___us$__ VARCHAR, track VARCHAR)
SELECT purse___us$__ FROM table_name_37 WHERE track = "sunland park"
How many were the minimum team that participated in the league?
CREATE TABLE table_23927423_4 (teams INTEGER)
SELECT MIN(teams) FROM table_23927423_4
Which college/junior/club teams nationality is canada and nhl team is minnesota north stars
CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars"
Which builder completed after 1889?
CREATE TABLE table_name_93 (builder VARCHAR, completed INTEGER)
SELECT builder FROM table_name_93 WHERE completed > 1889
What is the year when sigourney weaver was nominated for best actress?
CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR)
SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver"
What is the record that resulted in a loss at the RSF: Shooto Challenge 2?
CREATE TABLE table_name_80 (record VARCHAR, res VARCHAR, event VARCHAR)
SELECT record FROM table_name_80 WHERE res = "loss" AND event = "rsf: shooto challenge 2"
Akin Ayodele drafted before round 7 plays what position?
CREATE TABLE table_name_18 (position VARCHAR, round VARCHAR, name VARCHAR)
SELECT position FROM table_name_18 WHERE round < 7 AND name = "akin ayodele"
When did Mathieu play against Flavio Cipolla?
CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "flavio cipolla"
Which 2011 has an Airport of bole international airport?
CREATE TABLE table_name_38 (airport VARCHAR)
SELECT MAX(2011) FROM table_name_38 WHERE airport = "bole international airport"
What was the score of the game that had a round of Rd 26, 2001?
CREATE TABLE table_name_90 (score VARCHAR, round VARCHAR)
SELECT score FROM table_name_90 WHERE round = "rd 26, 2001"
Motor Racing Developments used which tire in rounds 3-12?
CREATE TABLE table_name_58 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR)
SELECT tyre FROM table_name_58 WHERE entrant = "motor racing developments" AND rounds = "3-12"
When emt 9 is the series what is the date?
CREATE TABLE table_25572118_1 (date VARCHAR, series VARCHAR)
SELECT date FROM table_25572118_1 WHERE series = "EMT 9"
Name the builder for wd number being 22
CREATE TABLE table_20236726_2 (builder VARCHAR, wd_no VARCHAR)
SELECT builder FROM table_20236726_2 WHERE wd_no = 22
What is the total number of Year(s), when Date (Opening) is "September 21"?
CREATE TABLE table_name_39 (year VARCHAR, date__opening_ VARCHAR)
SELECT COUNT(year) FROM table_name_39 WHERE date__opening_ = "september 21"
What is the time in Romania that has a lane larger than 4?
CREATE TABLE table_name_4 (time VARCHAR, lane VARCHAR, nationality VARCHAR)
SELECT time FROM table_name_4 WHERE lane > 4 AND nationality = "romania"
What is the phone number of the performer Ashley?
CREATE TABLE PERFORMERS (Customer_Phone VARCHAR, Customer_Name VARCHAR)
SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley"
Show the prices of publications whose publisher is either "Person" or "Wiley"
CREATE TABLE publication (Price VARCHAR, Publisher VARCHAR)
SELECT Price FROM publication WHERE Publisher = "Person" OR Publisher = "Wiley"
Name the captain for emile heskey
CREATE TABLE table_1301373_7 (captain VARCHAR, international_marquee VARCHAR)
SELECT captain FROM table_1301373_7 WHERE international_marquee = "Emile Heskey"
What is the external weapon with the falcon shield animal?
CREATE TABLE table_name_17 (external_weapon VARCHAR, shield_animal VARCHAR)
SELECT external_weapon FROM table_name_17 WHERE shield_animal = "falcon"
What is the LLWS when the Year is 2003?
CREATE TABLE table_name_37 (llws VARCHAR, year VARCHAR)
SELECT llws FROM table_name_37 WHERE year = 2003
With a per capita income of $30,298, what was the total number of households?
CREATE TABLE table_1840495_2 (number_of_households VARCHAR, per_capita_income VARCHAR)
SELECT COUNT(number_of_households) FROM table_1840495_2 WHERE per_capita_income = "$30,298"
How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?
CREATE TABLE table_name_86 (attendance INTEGER, loss VARCHAR, points VARCHAR)
SELECT SUM(attendance) FROM table_name_86 WHERE loss = "divis (0–3–0)" AND points < 38
What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps?
CREATE TABLE table_name_3 (flt_goals INTEGER, league_cup_apps VARCHAR, league_cup_goals VARCHAR, position VARCHAR)
SELECT MAX(flt_goals) FROM table_name_3 WHERE league_cup_goals = 0 AND position = "gk" AND league_cup_apps = "2"
What are the draws when wins are fwewer than 9 and byes fewer than 2?
CREATE TABLE table_name_15 (draws VARCHAR, wins VARCHAR, byes VARCHAR)
SELECT COUNT(draws) FROM table_name_15 WHERE wins < 9 AND byes < 2
what is teaching language where the focus is auditing?
CREATE TABLE table_12591022_2 (teaching_language VARCHAR, focus VARCHAR)
SELECT teaching_language FROM table_12591022_2 WHERE focus = "Auditing"
what was the lowest numbers for the winner gregory w. meeks
CREATE TABLE table_13870048_3 (elected INTEGER, incumbent VARCHAR)
SELECT MIN(elected) FROM table_13870048_3 WHERE incumbent = "Gregory W. Meeks"
What location has October 10 as date?
CREATE TABLE table_name_64 (location VARCHAR, date VARCHAR)
SELECT location FROM table_name_64 WHERE date = "october 10"
What is Tyrell Francisco's player position?
CREATE TABLE table_30108930_6 (position VARCHAR, player VARCHAR)
SELECT position FROM table_30108930_6 WHERE player = "Tyrell Francisco"
With Olympic Bronze Medalist as the total what are the score points?
CREATE TABLE table_name_65 (score_points VARCHAR, total VARCHAR)
SELECT score_points FROM table_name_65 WHERE total = "olympic bronze medalist"
How many games had a deficit of 175?
CREATE TABLE table_18505065_1 (played VARCHAR, against VARCHAR)
SELECT COUNT(played) FROM table_18505065_1 WHERE against = 175
What are the LOA (metres) of boat with sail number M10?
CREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, sail_number VARCHAR)
SELECT loa__metres_ FROM table_20854943_2 WHERE sail_number = "M10"
What is the average react of bryan barnett, who has a lane less than 2?
CREATE TABLE table_name_59 (react INTEGER, name VARCHAR, lane VARCHAR)
SELECT AVG(react) FROM table_name_59 WHERE name = "bryan barnett" AND lane < 2
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
Which Outcome has a Score of 6–4, 2–6, 6–3?
CREATE TABLE table_name_86 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_86 WHERE score = "6–4, 2–6, 6–3"
Who was the Decision at Anaheim's home game?
CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_51 WHERE home = "anaheim"
What is the coverage for the 99.5mhz frequency?
CREATE TABLE table_name_5 (coverage VARCHAR, frequency VARCHAR)
SELECT coverage FROM table_name_5 WHERE frequency = "99.5mhz"
What is the number of song choices where the original artist was Bright Eyes?
CREATE TABLE table_26250155_1 (song_choice VARCHAR, original_artist VARCHAR)
SELECT COUNT(song_choice) FROM table_26250155_1 WHERE original_artist = "Bright Eyes"
What is the name of the youngest captain?
CREATE TABLE captain (name VARCHAR, age VARCHAR)
SELECT name FROM captain ORDER BY age LIMIT 1
With an overall record of KSU, 118-117 what is the last 5 meetings?
CREATE TABLE table_name_38 (last_5_meetings VARCHAR, overall_record VARCHAR)
SELECT last_5_meetings FROM table_name_38 WHERE overall_record = "ksu, 118-117"
what is the least capacity (mw) when the rank is less than 46 and the province is newfoundland and labrador?
CREATE TABLE table_name_99 (capacity___mw__ INTEGER, rank VARCHAR, province VARCHAR)
SELECT MIN(capacity___mw__) FROM table_name_99 WHERE rank < 46 AND province = "newfoundland and labrador"
How many nationalities are listed for the player Glen Irwin?
CREATE TABLE table_1213511_3 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(nationality) FROM table_1213511_3 WHERE player = "Glen Irwin"
What did Orebro score when Umea scored 2?
CREATE TABLE table_name_67 (örebro VARCHAR, umeå VARCHAR)
SELECT örebro FROM table_name_67 WHERE umeå = "2"
what is the registration located on 31 january 1975 where first flew?
CREATE TABLE table_1997759_1 (registration VARCHAR, first_flew VARCHAR)
SELECT registration FROM table_1997759_1 WHERE first_flew = "31 January 1975"
What player has The United States as the country, with t2 as the place?
CREATE TABLE table_name_9 (player VARCHAR, country VARCHAR, place VARCHAR)
SELECT player FROM table_name_9 WHERE country = "united states" AND place = "t2"
Find the average and maximum hours for the students whose tryout decision is yes.
CREATE TABLE player (HS INTEGER, pID VARCHAR); CREATE TABLE tryout (pID VARCHAR, decision VARCHAR)
SELECT AVG(T1.HS), MAX(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
When was the first UK broadcast when the official Barb ratings was 1085000?
CREATE TABLE table_26591309_2 (first_broadcast_uk___bbc_four__ VARCHAR, official_barb_ratings VARCHAR)
SELECT first_broadcast_uk___bbc_four__ FROM table_26591309_2 WHERE official_barb_ratings = 1085000
What home team played an away team of melbourne?
CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_28 WHERE away_team = "melbourne"
How many times did Silas leave as a team manager?
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_29414946_3 WHERE outgoing_manager = "Silas"
Name the maximum clock rate mhz
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER)
SELECT MAX(clock_rate__mhz_) FROM table_142573_1
How many wins do the Red Deer Rebels have?
CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR)
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels"
Who wrote episode number 48
CREATE TABLE table_20098479_1 (written_by VARCHAR, no_in_series VARCHAR)
SELECT written_by FROM table_20098479_1 WHERE no_in_series = 48
what is the earliest began when the court surface is clay in hamburg?
CREATE TABLE table_name_21 (began INTEGER, court_surface VARCHAR, location VARCHAR)
SELECT MIN(began) FROM table_name_21 WHERE court_surface = "clay" AND location = "hamburg"
What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?
CREATE TABLE table_name_15 (points INTEGER, driver VARCHAR, percentage_of_possible_points VARCHAR)
SELECT AVG(points) FROM table_name_15 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "53.05%"
What was the best finish for 206 on the money list?
CREATE TABLE table_29499399_2 (best_finish VARCHAR, money_list_rank VARCHAR)
SELECT best_finish FROM table_29499399_2 WHERE money_list_rank = "206"
When did the DC Comics title that debuted in 1937 end?
CREATE TABLE table_name_65 (last_year VARCHAR, first_year VARCHAR, publisher VARCHAR)
SELECT last_year FROM table_name_65 WHERE first_year = "1937" AND publisher = "dc comics"
What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
CREATE TABLE table_name_26 (pole INTEGER, podium VARCHAR, race VARCHAR, flap VARCHAR)
SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11
How many golds were there for Iceland with more than 15 silver?
CREATE TABLE table_name_71 (gold VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT COUNT(gold) FROM table_name_71 WHERE silver > 15 AND nation = "iceland"
What language does the Ary Digital network broadcast in?
CREATE TABLE table_name_98 (language VARCHAR, network VARCHAR)
SELECT language FROM table_name_98 WHERE network = "ary digital"
What's the sum of all values in category 1 when category 3 is equal to 300?
CREATE TABLE table_name_89 (category_1 INTEGER, category_3 VARCHAR)
SELECT SUM(category_1) FROM table_name_89 WHERE category_3 = "300"
What series was Sam Evans on?
CREATE TABLE table_name_20 (series VARCHAR, name VARCHAR)
SELECT series FROM table_name_20 WHERE name = "sam evans"
Which wind farm is in the USA and is noted as having multiple farms?
CREATE TABLE table_name_58 (wind_farm VARCHAR, country VARCHAR, notes VARCHAR)
SELECT wind_farm FROM table_name_58 WHERE country = "usa" AND notes = "multiple farms"
Which 2009 has a 2008 of A, and a 2010 of 4r?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT 2009 FROM table_name_84 WHERE 2008 = "a" AND 2010 = "4r"
What are the most points scored in a game where the score was 1-2?
CREATE TABLE table_27539272_7 (points INTEGER, score VARCHAR)
SELECT MAX(points) FROM table_27539272_7 WHERE score = "1-2"
What chassis did Gordon Johncock use with his cosworth engine?
CREATE TABLE table_name_73 (chassis VARCHAR, engine VARCHAR, drivers VARCHAR)
SELECT chassis FROM table_name_73 WHERE engine = "cosworth" AND drivers = "gordon johncock"
Who wrote the episode with 7.52 million US viewers?
CREATE TABLE table_28688313_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT written_by FROM table_28688313_1 WHERE us_viewers__in_millions_ = "7.52"
What's the maximum crowd when scg is the ground?
CREATE TABLE table_14312471_4 (crowd INTEGER, ground VARCHAR)
SELECT MAX(crowd) FROM table_14312471_4 WHERE ground = "SCG"
How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?
CREATE TABLE table_23338693_1 (points VARCHAR, series VARCHAR, f_laps VARCHAR)
SELECT points FROM table_23338693_1 WHERE series = "British Formula Renault 2.0 Winter Cup" AND f_laps = 0
What's the location that has a total of 149?
CREATE TABLE table_name_28 (location VARCHAR, total_score VARCHAR)
SELECT location FROM table_name_28 WHERE total_score = "149"
Who wrote season 23?
CREATE TABLE table_2409041_3 (written_by VARCHAR, no_in_season VARCHAR)
SELECT written_by FROM table_2409041_3 WHERE no_in_season = 23
What event did Soares fight against josh spearman?
CREATE TABLE table_name_69 (event VARCHAR, opponent VARCHAR)
SELECT event FROM table_name_69 WHERE opponent = "josh spearman"
What are the profits (in billions) where the assets are 192.8 billion?
CREATE TABLE table_1682026_3 (profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
SELECT profits__billion_$_ FROM table_1682026_3 WHERE assets__billion_$_ = "192.8"
What is the lowest number for the english word Aquarius?
CREATE TABLE table_name_32 (number INTEGER, western_name VARCHAR)
SELECT MIN(number) FROM table_name_32 WHERE western_name = "aquarius"
Who was the visitor team in tampa bay?
CREATE TABLE table_name_26 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_26 WHERE home = "tampa bay"
How many people wrote the episode with 3.40 million U.S viewers?
CREATE TABLE table_26748252_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT COUNT(written_by) FROM table_26748252_1 WHERE us_viewers__in_millions_ = "3.40"
Which week was on october 30, 1983?
CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_40 WHERE date = "october 30, 1983"
List the problem id and log id which are assigned to the staff named Rylan Homenick.
CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)
SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
WHich Rules has a Method of ko (punch)?
CREATE TABLE table_name_26 (rules VARCHAR, method VARCHAR)
SELECT rules FROM table_name_26 WHERE method = "ko (punch)"