question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many counties have people before profit as the party, and a borough greater than 0?
CREATE TABLE table_name_16 (county INTEGER, party VARCHAR, borough VARCHAR)
SELECT SUM(county) FROM table_name_16 WHERE party = "people before profit" AND borough > 0
Which Local name has a Network of nova tv?
CREATE TABLE table_name_60 (local_name VARCHAR, network VARCHAR)
SELECT local_name FROM table_name_60 WHERE network = "nova tv"
When does week 1 start?
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_54 WHERE week = "1"
What is the To par value that goes with a Score of 70-69=139?
CREATE TABLE table_name_78 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_78 WHERE score = 70 - 69 = 139
what is the district where the incumbent is richard kelly?
CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341672_10 WHERE incumbent = "Richard Kelly"
Tell me the pole winner of may 12
CREATE TABLE table_name_91 (pole_winner VARCHAR, date VARCHAR)
SELECT pole_winner FROM table_name_91 WHERE date = "may 12"
What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?
CREATE TABLE table_name_28 (grid INTEGER, laps VARCHAR, team VARCHAR, points VARCHAR)
SELECT MIN(grid) FROM table_name_28 WHERE team = "pkv racing" AND points = 13 AND laps < 64
How many episodes have Valerie?
CREATE TABLE table_2140071_7 (episode VARCHAR, coach VARCHAR)
SELECT COUNT(episode) AS Summary FROM table_2140071_7 WHERE coach = "Valerie"
what is the institution when the team nickname is lakers?
CREATE TABLE table_name_22 (institution VARCHAR, team_nickname VARCHAR)
SELECT institution FROM table_name_22 WHERE team_nickname = "lakers"
What is the total points before 1963?
CREATE TABLE table_name_47 (points INTEGER, year INTEGER)
SELECT SUM(points) FROM table_name_47 WHERE year < 1963
What type of quattroporte iv only produced 340 units?
CREATE TABLE table_1245350_1 (quattroporte_iv VARCHAR, units_produced VARCHAR)
SELECT quattroporte_iv FROM table_1245350_1 WHERE units_produced = 340
What was the actors name for fuchzhou and nomination was best non-professional actor?
CREATE TABLE table_10236830_1 (actors_name VARCHAR, film_name VARCHAR, nomination VARCHAR)
SELECT actors_name FROM table_10236830_1 WHERE film_name = "Fuchzhou" AND nomination = "Best Non-Professional Actor"
Who ran in the election where Claude Fuller was the incumbent?
CREATE TABLE table_1342338_5 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342338_5 WHERE incumbent = "Claude Fuller"
Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?
CREATE TABLE table_name_5 (kicker VARCHAR, yards VARCHAR, opponent VARCHAR)
SELECT kicker FROM table_name_5 WHERE yards > 52 AND opponent = "san francisco 49ers"
Which Location/Attendance has High rebounds of lennox (7)?
CREATE TABLE table_name_29 (location_attendance VARCHAR, high_rebounds VARCHAR)
SELECT location_attendance FROM table_name_29 WHERE high_rebounds = "lennox (7)"
Name the aircraft type for jagdgeschwader 26
CREATE TABLE table_28342423_1 (aircraft_type VARCHAR, parent_unit VARCHAR)
SELECT aircraft_type FROM table_28342423_1 WHERE parent_unit = "Jagdgeschwader 26"
Which Runner-Up has a Last 16 of £300?
CREATE TABLE table_name_52 (runner_up VARCHAR, last_16 VARCHAR)
SELECT runner_up FROM table_name_52 WHERE last_16 = "£300"
Weight larger than 180, and a Player of charles b. carter is what previous experience?
CREATE TABLE table_name_41 (previous_experience VARCHAR, weight VARCHAR, player VARCHAR)
SELECT previous_experience FROM table_name_41 WHERE weight > 180 AND player = "charles b. carter"
What is the surface of the match when the opponent was iryna bremond valeria savinykh?
CREATE TABLE table_name_44 (surface VARCHAR, opponents VARCHAR)
SELECT surface FROM table_name_44 WHERE opponents = "iryna bremond valeria savinykh"
Which tournament had a runner-up of Val Skinner?
CREATE TABLE table_name_20 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_20 WHERE runner_s__up = "val skinner"
Who is the home team when Preston North End is the away team?
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_89 WHERE away_team = "preston north end"
What's the compression ratio when the vin code is c?
CREATE TABLE table_name_38 (vin_code VARCHAR)
SELECT "c" AS ompression_ratio FROM table_name_38 WHERE vin_code = "c"
what is the team when the schedule is limited, year is earlier than 2007 and the driver is jason white?
CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, schedule VARCHAR, year VARCHAR)
SELECT team FROM table_name_54 WHERE schedule = "limited" AND year < 2007 AND driver = "jason white"
Who did the Patriots play in week 4?
CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_43 WHERE week = 4
Name the total number of points for 800 reset
CREATE TABLE table_24108789_6 (points VARCHAR, reset_points VARCHAR)
SELECT COUNT(points) FROM table_24108789_6 WHERE reset_points = 800
When the fastest lap was carlos pace and jackie stewart was the pole position, who was the winning driver?
CREATE TABLE table_name_12 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT winning_driver FROM table_name_12 WHERE pole_position = "jackie stewart" AND fastest_lap = "carlos pace"
What is the Attendance of the game with a Record of 37–21–12 and less than 86 Points?
CREATE TABLE table_name_44 (attendance INTEGER, record VARCHAR, points VARCHAR)
SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86
What is the s default argument without a pseudorandom number generation and no eval function?
CREATE TABLE table_name_37 (s_default_argument VARCHAR, pseudorandom_number_generation VARCHAR, eval_function VARCHAR)
SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = "no" AND eval_function = "no"
how many countries are in Asia?
CREATE TABLE country (continent VARCHAR)
SELECT COUNT(*) FROM country WHERE continent = "Asia"
what is the mountain peak when the location is 53.1370°n 119.2667°w?
CREATE TABLE table_name_74 (mountain_peak VARCHAR, location VARCHAR)
SELECT mountain_peak FROM table_name_74 WHERE location = "53.1370°n 119.2667°w"
What college was founded in 1967?
CREATE TABLE table_name_61 (main_campus_location VARCHAR, founded VARCHAR)
SELECT main_campus_location FROM table_name_61 WHERE founded = 1967
What primary conference does the team nicknamed Phoenix belongs to?
CREATE TABLE table_name_39 (primary_conference VARCHAR, team_nickname VARCHAR)
SELECT primary_conference FROM table_name_39 WHERE team_nickname = "phoenix"
What is the Language when the Reteconomy is the television service?
CREATE TABLE table_name_86 (language VARCHAR, television_service VARCHAR)
SELECT language FROM table_name_86 WHERE television_service = "reteconomy"
How many people did Mayor Olav Martin Vik preside over?
CREATE TABLE table_name_87 (innhabitants INTEGER, mayor VARCHAR)
SELECT AVG(innhabitants) FROM table_name_87 WHERE mayor = "olav martin vik"
When Jeb Barlow was picked in round smaller than 7, how many player in totals were picked?
CREATE TABLE table_name_67 (pick VARCHAR, player VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_67 WHERE player = "jeb barlow" AND round < 7
What is Location, when Class / Type is "Sloop"?
CREATE TABLE table_name_33 (location VARCHAR, class___type VARCHAR)
SELECT location FROM table_name_33 WHERE class___type = "sloop"
What was the record in the win 7 streak?
CREATE TABLE table_name_86 (record VARCHAR, streak VARCHAR)
SELECT record FROM table_name_86 WHERE streak = "win 7"
What is the lowest rank that has paul biedermann as the name?
CREATE TABLE table_name_31 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_31 WHERE name = "paul biedermann"
What is the highest Round, when Draft is greater than 1980, and when Player is "Shane Doan Category:Articles with hCards"?
CREATE TABLE table_name_46 (round INTEGER, draft VARCHAR, player VARCHAR)
SELECT MAX(round) FROM table_name_46 WHERE draft > 1980 AND player = "shane doan category:articles with hcards"
What episode number of the season was written by Tom Garrigus and had 2.31 million u.s. viewers?
CREATE TABLE table_28019988_5 (season__number INTEGER, us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT MAX(season__number) FROM table_28019988_5 WHERE us_viewers__million_ = "2.31" AND written_by = "Tom Garrigus"
Name the finish for start of 28
CREATE TABLE table_name_76 (finish VARCHAR, start VARCHAR)
SELECT finish FROM table_name_76 WHERE start = "28"
when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?
CREATE TABLE table_name_19 (date VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_19 WHERE opponent = "@ philadelphia phillies" AND attendance = "20,072"
What's the year when 1851 had 634?
CREATE TABLE table_name_29 (year VARCHAR)
SELECT year FROM table_name_29 WHERE 1851 = "634"
What is the torque of 1.2 petrol?
CREATE TABLE table_name_49 (torque VARCHAR, name VARCHAR)
SELECT torque FROM table_name_49 WHERE name = "1.2 petrol"
What date did episode 10 in the series originally air?
CREATE TABLE table_27910411_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_27910411_1 WHERE no_in_series = 10
What was the score on April 23?
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_5 WHERE date = "april 23"
What was the week 2 prior to the when Miranda Jordan was the week 4?
CREATE TABLE table_name_99 (week_2 VARCHAR, week_4 VARCHAR)
SELECT week_2 FROM table_name_99 WHERE week_4 = "miranda jordan"
what is the size km² when the density hab/km is 8,321?
CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR)
SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321
What was the weekly rank by Virgin media for the title aired on May 20, 2010?
CREATE TABLE table_26826304_2 (weekly_rank_virgin_media INTEGER, air_date VARCHAR)
SELECT MIN(weekly_rank_virgin_media) FROM table_26826304_2 WHERE air_date = "May 20, 2010"
what being the maximum year where regular season is 4th, northwest
CREATE TABLE table_1046454_1 (year INTEGER, regular_season VARCHAR)
SELECT MAX(year) FROM table_1046454_1 WHERE regular_season = "4th, Northwest"
What rounds did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (rnd VARCHAR, track VARCHAR)
SELECT rnd FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
Who did the play-by-play with studio host Ward Cornell and color commentator Bob Goldham?
CREATE TABLE table_name_13 (play_by_play VARCHAR, studio_host VARCHAR, colour_commentator_s_ VARCHAR)
SELECT play_by_play FROM table_name_13 WHERE studio_host = "ward cornell" AND colour_commentator_s_ = "bob goldham"
What is the team that the replaced by is miroslav đukić?
CREATE TABLE table_24231638_3 (team VARCHAR, replaced_by VARCHAR)
SELECT team FROM table_24231638_3 WHERE replaced_by = "Miroslav Đukić"
Who was the away team at punt road oval?
CREATE TABLE table_name_5 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_5 WHERE venue = "punt road oval"
Name the class aa for 1998-99
CREATE TABLE table_14601528_2 (class_aA VARCHAR, school_year VARCHAR)
SELECT class_aA FROM table_14601528_2 WHERE school_year = "1998-99"
what's the economics score with education being 92.0
CREATE TABLE table_145439_1 (economics VARCHAR, education VARCHAR)
SELECT economics FROM table_145439_1 WHERE education = "92.0"
Where were the Pan American Games held?
CREATE TABLE table_name_80 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_80 WHERE competition = "pan american games"
What was the aggregate for the match with Sierra Leone as team 1?
CREATE TABLE table_name_28 (agg VARCHAR, team_1 VARCHAR)
SELECT agg FROM table_name_28 WHERE team_1 = "sierra leone"
What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?
CREATE TABLE table_name_38 (extra_points INTEGER, player VARCHAR, points VARCHAR)
SELECT MAX(extra_points) FROM table_name_38 WHERE player = "albert herrnstein" AND points > 15
Which To par has a Place of t6, and a Player of nick faldo?
CREATE TABLE table_name_56 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_56 WHERE place = "t6" AND player = "nick faldo"
what's the grand prix with winning driver being jenson button
CREATE TABLE table_12161822_5 (grand_prix VARCHAR, winning_driver VARCHAR)
SELECT grand_prix FROM table_12161822_5 WHERE winning_driver = "Jenson Button"
Who is the second of the North America team from Edmonton, Canada?
CREATE TABLE table_name_58 (second VARCHAR, home VARCHAR, team VARCHAR, country VARCHAR)
SELECT second FROM table_name_58 WHERE team = "north america" AND country = "canada" AND home = "edmonton"
Who's the opponent when Diegomar Markwell is the loss?
CREATE TABLE table_name_80 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_80 WHERE loss = "diegomar markwell"
What is Position, when School/Previous Club Team/Country is Kentucky?
CREATE TABLE table_name_67 (position VARCHAR, school_previous_club_team_country VARCHAR)
SELECT position FROM table_name_67 WHERE school_previous_club_team_country = "kentucky"
What is the date for the grass surface final against Nathan Healey?
CREATE TABLE table_name_41 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_41 WHERE surface = "grass" AND opponent_in_the_final = "nathan healey"
What is Date, when Series is Amscar Round 3?
CREATE TABLE table_name_36 (date VARCHAR, series VARCHAR)
SELECT date FROM table_name_36 WHERE series = "amscar round 3"
How many Dates have an Opponent of romford raiders, and a Result of won 7-3, and an Attendance larger than 1,769?
CREATE TABLE table_name_24 (date VARCHAR, attendance VARCHAR, opponent VARCHAR, result VARCHAR)
SELECT COUNT(date) FROM table_name_24 WHERE opponent = "romford raiders" AND result = "won 7-3" AND attendance > 1 OFFSET 769
What is Diego Junqueira Gabriel Trujillo-Soler's opponent's score?
CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_35 WHERE opponents = "diego junqueira gabriel trujillo-soler"
What ordinary value has a metric value of 29.861 g?
CREATE TABLE table_name_56 (ordinary_value VARCHAR, metric_value VARCHAR)
SELECT ordinary_value FROM table_name_56 WHERE metric_value = "29.861 g"
Which Season has a Level of tier 4, and a Position of 11th?
CREATE TABLE table_name_18 (season INTEGER, level VARCHAR, position VARCHAR)
SELECT SUM(season) FROM table_name_18 WHERE level = "tier 4" AND position = "11th"
who got the first position when Ehime Shimanami got the third position?
CREATE TABLE table_21632864_1 (champions VARCHAR, third_place VARCHAR)
SELECT champions FROM table_21632864_1 WHERE third_place = "Ehime Shimanami"
What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?
CREATE TABLE table_name_17 (overall INTEGER, college VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_17 WHERE college = "hardin-simmons" AND round > 26
Who won volleyball when west holmes won basketball and wooster won swimming in 2011-12
CREATE TABLE table_16423070_4 (volleyball VARCHAR, school_year VARCHAR, basketball VARCHAR, swimming VARCHAR)
SELECT volleyball FROM table_16423070_4 WHERE basketball = "West Holmes" AND swimming = "Wooster" AND school_year = "2011-12"
display those employees who contain a letter z to their first name and also display their last name, city.
CREATE TABLE locations (city VARCHAR, location_id VARCHAR); CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)
SELECT T1.first_name, T1.last_name, T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'
How many Bangladeshi citizens are there in the borough ranked at number 7?
CREATE TABLE table_19149550_9 (bangladeshi_population INTEGER, rank VARCHAR)
SELECT MIN(bangladeshi_population) FROM table_19149550_9 WHERE rank = 7
On what date was the gte north classic tournament?
CREATE TABLE table_name_81 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_81 WHERE tournament = "gte north classic"
How many wins has a podiums greater than 1 and 9 as the races with a season after 1984?
CREATE TABLE table_name_13 (wins VARCHAR, season VARCHAR, podiums VARCHAR, races VARCHAR)
SELECT COUNT(wins) FROM table_name_13 WHERE podiums > 1 AND races = 9 AND season > 1984
The Dallas Burn had a 12-9-7 record and what number of goals for?
CREATE TABLE table_1253396_5 (goals_for VARCHAR, overall_record VARCHAR)
SELECT goals_for FROM table_1253396_5 WHERE overall_record = "12-9-7"
What date was week 2?
CREATE TABLE table_14971788_1 (date VARCHAR, week VARCHAR)
SELECT date FROM table_14971788_1 WHERE week = 2
What were the opponents from the April 13?
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_6 WHERE date = "april 13"
What's the 2006 if there's less than 6.7 in 2007 and less than 3.4 in 2009?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT SUM(2006) FROM table_name_46 WHERE 2007 < 6.7 AND 2009 < 3.4
If the speaker is R. Muthiah, what is the election year maximum?
CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)
SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "R. Muthiah"
For each grade 0 classroom, report the total number of students.
CREATE TABLE list (classroom VARCHAR, grade VARCHAR)
SELECT classroom, COUNT(*) FROM list WHERE grade = "0" GROUP BY classroom
Which driver has a grid bigger than 3 and a time of +62.6 secs?
CREATE TABLE table_name_38 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_38 WHERE grid > 3 AND time_retired = "+62.6 secs"
What nation is the cyclist hat has a UCI ProTour Points of 25?
CREATE TABLE table_name_95 (nation VARCHAR, uci_protour_points VARCHAR)
SELECT nation FROM table_name_95 WHERE uci_protour_points = 25
What are the name, latitude, and city of the station with the lowest latitude?
CREATE TABLE station (name VARCHAR, lat VARCHAR, city VARCHAR)
SELECT name, lat, city FROM station ORDER BY lat LIMIT 1
How many times is the new entries this round is none?
CREATE TABLE table_27973624_1 (number_of_fixtures VARCHAR, new_entries_this_round VARCHAR)
SELECT COUNT(number_of_fixtures) FROM table_27973624_1 WHERE new_entries_this_round = "none"
What is the title of the episode with production code 102?
CREATE TABLE table_27547668_2 (title VARCHAR, prod_code VARCHAR)
SELECT title FROM table_27547668_2 WHERE prod_code = 102
Which res has a Time of 5:00, and a Method of decision (unanimous), and a Record of 1–0?
CREATE TABLE table_name_25 (res VARCHAR, record VARCHAR, time VARCHAR, method VARCHAR)
SELECT res FROM table_name_25 WHERE time = "5:00" AND method = "decision (unanimous)" AND record = "1–0"
What is the 1st leg where Team 1 is C.D. Plaza Amador?
CREATE TABLE table_name_12 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_12 WHERE team_1 = "c.d. plaza amador"
What is the date of the games that saw a record of 43.66 m?
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_25 WHERE record = "43.66 m"
Who were the candidates when Shirley Chisholm was the incumbent?
CREATE TABLE table_1341663_33 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341663_33 WHERE incumbent = "Shirley Chisholm"
How many flights do we have?
CREATE TABLE Flight (Id VARCHAR)
SELECT COUNT(*) FROM Flight
During which competition were a total of 36 points scored?
CREATE TABLE table_name_31 (details VARCHAR, points VARCHAR)
SELECT details FROM table_name_31 WHERE points = 36
What is the average crowd size when Collingwood is the away team?
CREATE TABLE table_name_81 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_81 WHERE away_team = "collingwood"
What is the total number of third place finishes when the city & nation was Vancouver, Canada?
CREATE TABLE table_2146364_2 (third_place INTEGER, city_ VARCHAR, _nation VARCHAR)
SELECT MIN(third_place) FROM table_2146364_2 WHERE city_ & _nation = "Vancouver, Canada"
What is the amount of fog where the rain is 1 109?
CREATE TABLE table_name_50 (fog__days_year_ INTEGER, rain__mm_year_ VARCHAR)
SELECT SUM(fog__days_year_) FROM table_name_50 WHERE rain__mm_year_ = "1 109"
Who is the Director of the Olsen Gang Sees Red?
CREATE TABLE table_name_11 (director VARCHAR, english_title VARCHAR)
SELECT director FROM table_name_11 WHERE english_title = "the olsen gang sees red"
What is the highest population in 1991 in Baden Bei Wien, and a 2007 population larger than 25,284?
CREATE TABLE table_name_13 (population_1991 INTEGER, name VARCHAR, population_2007 VARCHAR)
SELECT MAX(population_1991) FROM table_name_13 WHERE name = "baden bei wien" AND population_2007 > 25 OFFSET 284
What was the amount won with tries against at 54?
CREATE TABLE table_12828723_5 (won VARCHAR, tries_against VARCHAR)
SELECT won FROM table_12828723_5 WHERE tries_against = "54"