question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many laps had a grid number of 7?
CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)
SELECT SUM(laps) FROM table_name_99 WHERE grid = 7
Name the total number of language of films for méga-plex taschereau imax
CREATE TABLE table_2461720_1 (language_of_films VARCHAR, theatre_name VARCHAR)
SELECT COUNT(language_of_films) FROM table_2461720_1 WHERE theatre_name = "Méga-Plex Taschereau IMAX"
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?
CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard"
which train number arrives in lonavla at 17:45
CREATE TABLE table_29301050_1 (train_number VARCHAR, arrival_lonavla VARCHAR)
SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
Which Home has a Series of series tied 3–3?
CREATE TABLE table_name_92 (home VARCHAR, series VARCHAR)
SELECT home FROM table_name_92 WHERE series = "series tied 3–3"
Name the sum of year for penrith panthers opponent
CREATE TABLE table_name_93 (year INTEGER, opponent VARCHAR)
SELECT SUM(year) FROM table_name_93 WHERE opponent = "penrith panthers"
Who is the female talent in 1999?
CREATE TABLE table_name_41 (talent__female_ VARCHAR, year VARCHAR)
SELECT talent__female_ FROM table_name_41 WHERE year = 1999
When (river garry) is the hr name how many builts are there?
CREATE TABLE table_1886270_1 (built VARCHAR, hr_name VARCHAR)
SELECT COUNT(built) FROM table_1886270_1 WHERE hr_name = "(River Garry)"
What is the flange width (mm) for cross section area (cm 2) 16.4?
CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR)
SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.4"
On what date was the game that had a score of 7–0?
CREATE TABLE table_name_91 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_91 WHERE score = "7–0"
What is the average React, when Mark is less than 7.93?
CREATE TABLE table_name_53 (react INTEGER, mark INTEGER)
SELECT AVG(react) FROM table_name_53 WHERE mark < 7.93
Name the awardee for tingya
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_film VARCHAR)
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
Can you tell me the Score that has the Opponent of brewers, and the Attendance of 11,235?
CREATE TABLE table_name_98 (score VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_98 WHERE opponent = "brewers" AND attendance = "11,235"
When did the episode written by Jim Morris air?
CREATE TABLE table_10470082_8 (us_air_date VARCHAR, writer VARCHAR)
SELECT us_air_date FROM table_10470082_8 WHERE writer = "Jim Morris"
How much was paid to Andy North when he placed t10?
CREATE TABLE table_name_94 (money___ INTEGER, place VARCHAR, player VARCHAR)
SELECT AVG(money___) AS $__ FROM table_name_94 WHERE place = "t10" AND player = "andy north"
What is the total number of modern grannies performed?
CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)
SELECT COUNT(act) FROM table_28180840_15 WHERE name_name_of_act = "Modern Grannies"
What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?
CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4
Who played as the home team when Footscray was the away team?
CREATE TABLE table_name_5 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_5 WHERE away_team = "footscray"
What is the NBA draft result of the player from the College of Kansas?
CREATE TABLE table_name_48 (nba_draft VARCHAR, college VARCHAR)
SELECT nba_draft FROM table_name_48 WHERE college = "kansas"
What was Rosie's winning score on Apr 29, 2001?
CREATE TABLE table_name_39 (winning_score VARCHAR, date VARCHAR)
SELECT winning_score FROM table_name_39 WHERE date = "apr 29, 2001"
When did Chetan Anand win his first men's single?
CREATE TABLE table_12275654_1 (year INTEGER, mens_singles VARCHAR)
SELECT MIN(year) FROM table_12275654_1 WHERE mens_singles = "Chetan Anand"
Which politican party has a birthday of November 10, 1880
CREATE TABLE table_10284385_1 (party VARCHAR, date_of_birth VARCHAR)
SELECT party FROM table_10284385_1 WHERE date_of_birth = "November 10, 1880"
What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?
CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0"
Which name is the learning/social difficulties type?
CREATE TABLE table_name_17 (name VARCHAR, type VARCHAR)
SELECT name FROM table_name_17 WHERE type = "learning/social difficulties"
Name number of stellar classification for 3 neptune planets < 1 au
CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)
SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU"
What's the sum of the number of episodes that originally aired after 1991 with a series number smaller than 21 and a DVD Region 2 release date of 26 march 2012?
CREATE TABLE table_name_99 (number_of_episodes INTEGER, dvd_region_2_release_date VARCHAR, original_air_date VARCHAR, series_number VARCHAR)
SELECT SUM(number_of_episodes) FROM table_name_99 WHERE original_air_date > 1991 AND series_number < 21 AND dvd_region_2_release_date = "26 march 2012"
What is the high total for nations with 1 gold and over 1 bronze?
CREATE TABLE table_name_55 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MAX(total) FROM table_name_55 WHERE gold = 1 AND bronze > 1
What was the venue for the game on 18/03/2006?
CREATE TABLE table_name_28 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_28 WHERE date = "18/03/2006"
What is the maximum number that a certain service is provided? List the service id, details and number.
CREATE TABLE Services (service_id VARCHAR, service_details VARCHAR); CREATE TABLE Residents_Services (service_id VARCHAR)
SELECT T1.service_id, T1.service_details, COUNT(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id ORDER BY COUNT(*) DESC LIMIT 1
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
CREATE TABLE management (department_id VARCHAR, temporary_acting VARCHAR); CREATE TABLE department (name VARCHAR, num_employees VARCHAR, department_id VARCHAR)
SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'
Show the name of colleges that have at least two players in descending alphabetical order.
CREATE TABLE match_season (College VARCHAR)
SELECT College FROM match_season GROUP BY College HAVING COUNT(*) >= 2 ORDER BY College DESC
What was the overall record in the season where average attendance was 16720?
CREATE TABLE table_2771237_1 (overall_record VARCHAR, average_attendance VARCHAR)
SELECT overall_record FROM table_2771237_1 WHERE average_attendance = 16720
What is the 2003 rank for Los Angeles International airport?
CREATE TABLE table_name_17 (airport VARCHAR)
SELECT 2003 AS rank FROM table_name_17 WHERE airport = "los angeles international airport"
What is Date, when Region is Yugoslavia?
CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR)
SELECT date FROM table_name_33 WHERE region = "yugoslavia"
When stuttgart is the town what is the type?
CREATE TABLE table_2803662_3 (type VARCHAR, town VARCHAR)
SELECT type FROM table_2803662_3 WHERE town = "Stuttgart"
What year did the United States win with a total of 278?
CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)
SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278
What was the score for game 4?
CREATE TABLE table_23486853_3 (score VARCHAR, game VARCHAR)
SELECT score FROM table_23486853_3 WHERE game = 4
How many losses have 11 points?
CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR)
SELECT COUNT(losses) FROM table_name_62 WHERE points = 11
What is the date on Catalog 540,934-2?
CREATE TABLE table_name_9 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_9 WHERE catalog = "540,934-2"
Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70
How many total games were played against @ St. Louis Hawks this season?
CREATE TABLE table_name_42 (game INTEGER, opponent VARCHAR)
SELECT SUM(game) FROM table_name_42 WHERE opponent = "@ st. louis hawks"
How many bats does Todd have?
CREATE TABLE table_name_88 (bats VARCHAR, first VARCHAR)
SELECT bats FROM table_name_88 WHERE first = "todd"
what is the nightly rank where the episode number production number is 06 1-06?
CREATE TABLE table_17004367_3 (nightly_rank VARCHAR, episode_number_production_number VARCHAR)
SELECT COUNT(nightly_rank) FROM table_17004367_3 WHERE episode_number_production_number = "06 1-06"
How many licenses have version 1.2.2.0?
CREATE TABLE table_15038373_1 (license VARCHAR, version VARCHAR)
SELECT COUNT(license) FROM table_15038373_1 WHERE version = "1.2.2.0"
What was the title of the episode written by Robert Haywood?
CREATE TABLE table_name_83 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_name_83 WHERE written_by = "robert haywood"
What denomination was produced in 2006?
CREATE TABLE table_name_80 (denomination VARCHAR, year VARCHAR)
SELECT denomination FROM table_name_80 WHERE year = 2006
what is the location attendance when the high assists is by ramon sessions (8) on march 30?
CREATE TABLE table_name_82 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_82 WHERE high_assists = "ramon sessions (8)" AND date = "march 30"
List the names of all distinct wines that are made of red color grape.
CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Name VARCHAR, Grape VARCHAR)
SELECT DISTINCT T2.Name FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "Red"
How many staff in total?
CREATE TABLE Staff (Id VARCHAR)
SELECT COUNT(*) FROM Staff
Name the segment b for pressure cookers
CREATE TABLE table_15187735_13 (segment_b VARCHAR, segment_a VARCHAR)
SELECT segment_b FROM table_15187735_13 WHERE segment_a = "Pressure Cookers"
which club was in toronto 2003-06
CREATE TABLE table_10015132_16 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT school_club_team FROM table_10015132_16 WHERE years_in_toronto = "2003-06"
What is the Date of the Event in Punta del Este?
CREATE TABLE table_name_68 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_68 WHERE city = "punta del este"
What is the sum of Bronze when the rank is 7, and the total is more than 22?
CREATE TABLE table_name_19 (bronze INTEGER, rank VARCHAR, total VARCHAR)
SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND total > 22
Name the most silver with bronze more than 1 and gold more than 1 with total less than 7
CREATE TABLE table_name_46 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT MAX(silver) FROM table_name_46 WHERE bronze > 1 AND total < 7 AND gold > 1
What is the location when the record is 9-7?
CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_29 WHERE record = "9-7"
Who is the visitor team of the game on March 2, 2008?
CREATE TABLE table_name_19 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_19 WHERE date = "march 2, 2008"
What date has 5-3 as the score, and holt (1-1) as a loss?
CREATE TABLE table_name_95 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT date FROM table_name_95 WHERE score = "5-3" AND loss = "holt (1-1)"
What is the largest rank with 2,080 area?
CREATE TABLE table_name_34 (rank INTEGER, area__sqmi_ VARCHAR)
SELECT MAX(rank) FROM table_name_34 WHERE area__sqmi_ = 2 OFFSET 080
Who are all the players who've bowled more than 4969 balls?
CREATE TABLE table_2482547_5 (name VARCHAR, balls_bowled VARCHAR)
SELECT name FROM table_2482547_5 WHERE balls_bowled = 4969
Name the sprint classification being alejandro valverde
CREATE TABLE table_22713796_14 (sprint_classification VARCHAR, winner VARCHAR)
SELECT sprint_classification FROM table_22713796_14 WHERE winner = "Alejandro Valverde"
What is the lowest league cup?
CREATE TABLE table (league_cup INTEGER)
SELECT MIN(league_cup) FROM table
Which round had a winning driver of Uwe Alzen, at the Sepang International circuit?
CREATE TABLE table_name_80 (round VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
SELECT round FROM table_name_80 WHERE winning_driver = "uwe alzen" AND circuit = "sepang international circuit"
What wa the date of the North Melbourne home game?
CREATE TABLE table_name_76 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_76 WHERE home_team = "north melbourne"
Which Release Date has a Voltage Range of 1.148 v - 1.196 v?
CREATE TABLE table_name_34 (release_date VARCHAR, voltage_range VARCHAR)
SELECT release_date FROM table_name_34 WHERE voltage_range = "1.148 v - 1.196 v"
What is the grid of rider shinya nakano?
CREATE TABLE table_name_28 (grid VARCHAR, rider VARCHAR)
SELECT grid FROM table_name_28 WHERE rider = "shinya nakano"
What is stanford's average overall?
CREATE TABLE table_name_66 (overall INTEGER, college VARCHAR)
SELECT AVG(overall) FROM table_name_66 WHERE college = "stanford"
Who had the high points when the score was w 108–105 (ot)?
CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR)
SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (ot)"
What is the maximum overall number?
CREATE TABLE table_2985714_2 (_number INTEGER)
SELECT MAX(_number) FROM table_2985714_2
What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento?
CREATE TABLE table_name_21 (aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR)
SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "sacramento"
What is the record for the game against the New England Patriots with a recap?
CREATE TABLE table_name_90 (record VARCHAR, nfl_recap VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_90 WHERE nfl_recap = "recap" AND opponent = "new england patriots"
What was the fate and location of the Ringstad?
CREATE TABLE table_name_3 (fate_and_location VARCHAR, ship VARCHAR)
SELECT fate_and_location FROM table_name_3 WHERE ship = "ringstad"
What is the D 50 when the D 43 is r 43?
CREATE TABLE table_name_77 (d_50 VARCHAR, d_43 VARCHAR)
SELECT d_50 FROM table_name_77 WHERE d_43 = "r 43"
What was the result on 26 October 1993?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_36 WHERE date = "26 october 1993"
What is the name of gao chiappe meng o'connor wang cheng liu?
CREATE TABLE table_name_99 (name VARCHAR, authors VARCHAR)
SELECT name FROM table_name_99 WHERE authors = "gao chiappe meng o'connor wang cheng liu"
What is the mean pick number for Iowa College when the overall is less than 200?
CREATE TABLE table_name_77 (pick__number INTEGER, college VARCHAR, overall VARCHAR)
SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200
What MLB draft has Shaun Boyd?
CREATE TABLE table_name_80 (mlb_draft VARCHAR, player VARCHAR)
SELECT mlb_draft FROM table_name_80 WHERE player = "shaun boyd"
What is the Country of the Player with a To par of +1 and a Score of 74-70-70=214?
CREATE TABLE table_name_12 (country VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT country FROM table_name_12 WHERE to_par = "+1" AND score = 74 - 70 - 70 = 214
What match has Clem Hill (sa) as the player?
CREATE TABLE table_name_9 (match VARCHAR, player VARCHAR)
SELECT match FROM table_name_9 WHERE player = "clem hill (sa)"
What is the Location of the Competition with a Rank-Final of 10?
CREATE TABLE table_name_63 (location VARCHAR, rank_final VARCHAR)
SELECT location FROM table_name_63 WHERE rank_final = "10"
Name the ranking for rr2 pts being 8
CREATE TABLE table_21471897_2 (ranking VARCHAR, rr2_pts VARCHAR)
SELECT ranking FROM table_21471897_2 WHERE rr2_pts = 8
How many debates are there?
CREATE TABLE debate (Id VARCHAR)
SELECT COUNT(*) FROM debate
What are Unit 2's dates of commissioning?
CREATE TABLE table_28672269_1 (date_of_commissioning VARCHAR, unit_number VARCHAR)
SELECT COUNT(date_of_commissioning) FROM table_28672269_1 WHERE unit_number = 2
What is the highest game that has april 21 as the date?
CREATE TABLE table_name_64 (game INTEGER, date VARCHAR)
SELECT MAX(game) FROM table_name_64 WHERE date = "april 21"
What is the lowest Since, when Notes is To Anagennisi Karditsa, and when App(L/C/E) is 0 (0/0/0)?
CREATE TABLE table_name_88 (since INTEGER, notes VARCHAR, app_l_c_e_ VARCHAR)
SELECT MIN(since) FROM table_name_88 WHERE notes = "to anagennisi karditsa" AND app_l_c_e_ = "0 (0/0/0)"
When is every date that control site condition or owner is machine shop on Martin Dr.?
CREATE TABLE table_22282917_26 (dates VARCHAR, control_site_condition_owner VARCHAR)
SELECT dates FROM table_22282917_26 WHERE control_site_condition_owner = "machine shop on Martin Dr."
Name the average Pick # of mike williams?
CREATE TABLE table_name_9 (pick__number INTEGER, player VARCHAR)
SELECT AVG(pick__number) FROM table_name_9 WHERE player = "mike williams"
Name the opponent with record of 52-58
CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_10 WHERE record = "52-58"
what is the country when the city is gafsa?
CREATE TABLE table_name_1 (country VARCHAR, city VARCHAR)
SELECT country FROM table_name_1 WHERE city = "gafsa"
Who is the player with the pick# 80?
CREATE TABLE table_22402438_7 (player VARCHAR, pick__number VARCHAR)
SELECT player FROM table_22402438_7 WHERE pick__number = 80
What position is the player who was on the Grizzlies from 1995-1996?
CREATE TABLE table_16494599_1 (position VARCHAR, years_for_grizzlies VARCHAR)
SELECT position FROM table_16494599_1 WHERE years_for_grizzlies = "1995-1996"
Which opponent was present on April 14?
CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_17 WHERE date = "april 14"
What amount of senior high school where junior high school is 114cm?
CREATE TABLE table_13555999_1 (senior_high_school__15_18_yrs_ VARCHAR, junior_high_school__12_15_yrs_ VARCHAR)
SELECT senior_high_school__15_18_yrs_ FROM table_13555999_1 WHERE junior_high_school__12_15_yrs_ = "114cm"
Which Entrant has a vanwall straight-4 engine?
CREATE TABLE table_name_47 (entrant VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_47 WHERE engine = "vanwall straight-4"
With the official name Quispamsis, what is the census ranking?
CREATE TABLE table_171236_1 (census_ranking VARCHAR, official_name VARCHAR)
SELECT census_ranking FROM table_171236_1 WHERE official_name = "Quispamsis"
What is the make of the car that won the brazilian grand prix?
CREATE TABLE table_1139087_2 (constructor VARCHAR, grand_prix VARCHAR)
SELECT constructor FROM table_1139087_2 WHERE grand_prix = "Brazilian grand_prix"
What number episode in the series had and original United States air date of December 24, 2010?
CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"
For the roll of 651, what was the lowest Decile?
CREATE TABLE table_name_79 (decile INTEGER, roll VARCHAR)
SELECT MIN(decile) FROM table_name_79 WHERE roll = 651
How many points did he win in the race with more than 1.0 poles?
CREATE TABLE table_20500097_1 (points VARCHAR, poles INTEGER)
SELECT points FROM table_20500097_1 WHERE poles > 1.0
What place has manfred kokot as the athlete?
CREATE TABLE table_name_7 (place VARCHAR, athlete VARCHAR)
SELECT place FROM table_name_7 WHERE athlete = "manfred kokot"
Which college has fewer than 2 rounds?
CREATE TABLE table_name_7 (college VARCHAR, round INTEGER)
SELECT college FROM table_name_7 WHERE round < 2