answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT game_site FROM table_name_83 WHERE opponent = "san diego chargers"
What is the game site of the game with the san diego chargers as the opponent?
CREATE TABLE table_name_83 (game_site VARCHAR, opponent VARCHAR)
SELECT MIN(laps) FROM table_name_48 WHERE finish = "17"
How few laps were finished in 17?
CREATE TABLE table_name_48 (laps INTEGER, finish VARCHAR)
SELECT date FROM table_name_32 WHERE livery = "kinneil sandy red"
When was the livery of Kinneil Sandy Red?
CREATE TABLE table_name_32 (date VARCHAR, livery VARCHAR)
SELECT format FROM table_name_50 WHERE region = "united states" AND date = "january 12, 2010" AND label = "mightier than sword"
What is the format for the label Mightier than Sword on January 12, 2010 in the United States?
CREATE TABLE table_name_50 (format VARCHAR, label VARCHAR, region VARCHAR, date VARCHAR)
SELECT SUM(goals_scored) FROM table_name_79 WHERE games_played < 20
What is the sum of Goals scored when there was less than 20 Games played?
CREATE TABLE table_name_79 (goals_scored INTEGER, games_played INTEGER)
SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id ORDER BY t2.age LIMIT 1
Find the name of the ship that is steered by the youngest captain.
CREATE TABLE ship (name VARCHAR, ship_id VARCHAR); CREATE TABLE captain (ship_id VARCHAR, age VARCHAR)
SELECT launch_site FROM table_name_71 WHERE cospar_id_satcat_№ = "2003-041a"
What is the launch site of the satellite with a 2003-041a COSPAR ID?
CREATE TABLE table_name_71 (launch_site VARCHAR, cospar_id_satcat_№ VARCHAR)
SELECT COUNT(weight) FROM table_name_80 WHERE pos = "g" AND team = "los angeles d-fenders"
What is the total weight of players who play the G position for the Los Angeles D-Fenders?
CREATE TABLE table_name_80 (weight VARCHAR, pos VARCHAR, team VARCHAR)
SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "Red/black"
Name the del pueblo for red/black
CREATE TABLE table_15977768_1 (del_pueblo VARCHAR, centennial VARCHAR)
SELECT to_par FROM table_name_52 WHERE player = "dave hill"
what is the to par for Dave hill?
CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(lost) FROM table_name_70 WHERE points = 2
What is the number of lost with 2 points?
CREATE TABLE table_name_70 (lost VARCHAR, points VARCHAR)
SELECT album FROM table_name_66 WHERE number = 10
Which album is #10?
CREATE TABLE table_name_66 (album VARCHAR, number VARCHAR)
SELECT department FROM table_21249915_1 WHERE small__100ha_ = 11370
Which department has a small of 11370?
CREATE TABLE table_21249915_1 (department VARCHAR, small__100ha_ VARCHAR)
SELECT driver FROM table_name_72 WHERE entrant = "rovero campello"
Who was the driver for Rovero Campello?
CREATE TABLE table_name_72 (driver VARCHAR, entrant VARCHAR)
SELECT official_name FROM table_176529_2 WHERE area_km_2 = "582.20"
What is the name of the place with 582.20 square km area?
CREATE TABLE table_176529_2 (official_name VARCHAR, area_km_2 VARCHAR)
SELECT finalist FROM table_name_7 WHERE tournament = "miami"
Who was the finalist in Miami?
CREATE TABLE table_name_7 (finalist VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_60 WHERE record = "18–10–2"
What was the date of the game with the record of 18–10–2?
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR)
SELECT MAX(w) FROM table_17012578_37 WHERE l = 5
Of the teams that lost 5 games, what is the highest number of wins?
CREATE TABLE table_17012578_37 (w INTEGER, l VARCHAR)
SELECT country FROM table_name_90 WHERE player = "david gilford"
What country does david gilford play for?
CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR)
SELECT SUM(population) FROM table_name_54 WHERE area_km_2 < 130.68 AND official_name = "mcadam"
With an Area km 2 of less than 130.68, what is McAdam's Population?
CREATE TABLE table_name_54 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
SELECT competition FROM table_name_86 WHERE season = "2002–03" AND opponent = "zenit st. petersburg"
What is the Competition for Season 2002–03, and the Opponent was zenit st. petersburg?
CREATE TABLE table_name_86 (competition VARCHAR, season VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_92 WHERE opponent_in_the_final = "rabie chaki"
WHAT WAS THE SCORE IN THE FINAL AGAINST RABIE CHAKI?
CREATE TABLE table_name_92 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp"
What venue did the partnership of herschelle gibbs / justin kemp happen?
CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR)
SELECT COUNT(ends_lost) FROM table_name_62 WHERE skip = "kevin koe" AND stolen_ends > 6
How many ends lost when skip is Kevin Koe and stolen ends are more than 6?
CREATE TABLE table_name_62 (ends_lost VARCHAR, skip VARCHAR, stolen_ends VARCHAR)
SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong"
What is the away team's score of the game where the away team is Geelong?
CREATE TABLE table_name_1 (away_team VARCHAR)
SELECT COUNT(winning_driver) FROM table_1132600_3 WHERE grand_prix = "Italian grand_prix"
How many drivers won the Italian Grand Prix?
CREATE TABLE table_1132600_3 (winning_driver VARCHAR, grand_prix VARCHAR)
SELECT under_15 FROM table_26368963_1 WHERE under_17 = "Moises Galvez"
Who was the under-15 when Moises Galvez was the under-17?
CREATE TABLE table_26368963_1 (under_15 VARCHAR, under_17 VARCHAR)
SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6"
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008?
CREATE TABLE table_name_67 (Id VARCHAR)
SELECT DISTINCT T2.apt_number FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed"
Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".
CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR); CREATE TABLE Apartment_Bookings (apt_id VARCHAR, booking_status_code VARCHAR)
SELECT COUNT(digital_terrestrial_channel) FROM table_182410_10 WHERE channel = "channel 4"
How many digital terrestrial channels are there for channel 4?
CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR)
SELECT runner_up_skip FROM table_name_61 WHERE winning_skip = "julie reddick"
What person was the runner-up skip when Julie Reddick was the winning skip?
CREATE TABLE table_name_61 (runner_up_skip VARCHAR, winning_skip VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "windy hill"
What is the home team at windy hill?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT place FROM table_name_46 WHERE player = "paul mcginley"
What place did Paul McGinley finish in?
CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR)
SELECT MAX(date) FROM table_name_88 WHERE location_attendance = "los angeles" AND game < 62
What is the latest date at Los Angeles with a game less than 62?
CREATE TABLE table_name_88 (date INTEGER, location_attendance VARCHAR, game VARCHAR)
SELECT AVG(long) FROM table_name_28 WHERE gain < 0
What is the long figure when gain is less than 0?
CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)
SELECT genre FROM table_27529608_21 WHERE age_s_ = "29-30"
What is the genre for the group with ages 29-30?
CREATE TABLE table_27529608_21 (genre VARCHAR, age_s_ VARCHAR)
SELECT driver FROM table_name_72 WHERE chassis = "625 553 500"
Who was the driver with chassis 625 553 500?
CREATE TABLE table_name_72 (driver VARCHAR, chassis VARCHAR)
SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293
What is the total of Apparent magnitudes for an NGC number larger than 3293?
CREATE TABLE table_name_45 (apparent_magnitude INTEGER, ngc_number INTEGER)
SELECT gauge FROM table_name_9 WHERE builder = "beyer, peacock"
What is the Gauge of Builder Beyer, Peacock?
CREATE TABLE table_name_9 (gauge VARCHAR, builder VARCHAR)
SELECT pick FROM table_name_95 WHERE round > 1 AND school_club_team = "south carolina"
What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?
CREATE TABLE table_name_95 (pick VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_13 WHERE pick__number = 27
Name The Player who has a Pick # of 27?
CREATE TABLE table_name_13 (player VARCHAR, pick__number VARCHAR)
SELECT district FROM table_1341577_10 WHERE candidates = "Lawrence J. Smith (D) 69.4% Joseph Smith (R) 30.6%"
what's district with candidates being lawrence j. smith (d) 69.4% joseph smith (r) 30.6%
CREATE TABLE table_1341577_10 (district VARCHAR, candidates VARCHAR)
SELECT MAX(year) FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"
What is the latest year with reporters Lesley Visser and Robin Roberts?
CREATE TABLE table_22654139_3 (year INTEGER, reporters VARCHAR)
SELECT engine FROM table_name_12 WHERE transmission = "4-speed automatic" AND acceleration_0_100km_h__0_62mph_ = "10.4 s"
What is the engine when the transmission was 4-speed automatic, and acceleration 0–100km/h (0–62mph) was 10.4 s?
CREATE TABLE table_name_12 (engine VARCHAR, transmission VARCHAR, acceleration_0_100km_h__0_62mph_ VARCHAR)
SELECT AVG(attendance) FROM table_name_77 WHERE date = "july 30"
What was the attendance on July 30?
CREATE TABLE table_name_77 (attendance INTEGER, date VARCHAR)
SELECT grid FROM table_name_14 WHERE team = "dreyer & reinbold racing" AND points = "26"
What is the grid of team dreyer & reinbold racing, which has 26 points?
CREATE TABLE table_name_14 (grid VARCHAR, team VARCHAR, points VARCHAR)
SELECT aircraft_flown FROM table_name_40 WHERE axis_unit = "luftwaffe (**)" AND enemy_aircraft = "ju.88"
What was the aircraft flown when the axis unit was luftwaffe (**) and the enemy aircraft was ju.88?
CREATE TABLE table_name_40 (aircraft_flown VARCHAR, axis_unit VARCHAR, enemy_aircraft VARCHAR)
SELECT MIN(tied) FROM table_name_57 WHERE points < 100 AND goals_for = 277
What is the lowest tie with less than 100 points and 277 goals?
CREATE TABLE table_name_57 (tied INTEGER, points VARCHAR, goals_for VARCHAR)
SELECT opponent FROM table_name_61 WHERE zone = "europe/africa group i"
Who was the Europe/Africa group i's opponent?
CREATE TABLE table_name_61 (opponent VARCHAR, zone VARCHAR)
SELECT AVG(Product_Price) FROM Products
What is the average price for products?
CREATE TABLE Products (Product_Price INTEGER)
SELECT mens_singles FROM table_12204717_1 WHERE year = 2009
Who won the mens singles in 2009?
CREATE TABLE table_12204717_1 (mens_singles VARCHAR, year VARCHAR)
SELECT minimum_height FROM table_name_49 WHERE name_of_the_tunnel = "little switzerland tunnel"
What is the minimum Height of the Little Switzerland Tunnel?
CREATE TABLE table_name_49 (minimum_height VARCHAR, name_of_the_tunnel VARCHAR)
SELECT mvp FROM table_19651669_1 WHERE champion = "Scaligera Verona"
Who was the MVP the season Scaligera Verona were Champions?
CREATE TABLE table_19651669_1 (mvp VARCHAR, champion VARCHAR)
SELECT college FROM table_name_33 WHERE pick = 45
What college has pick 45
CREATE TABLE table_name_33 (college VARCHAR, pick VARCHAR)
SELECT opponent FROM table_name_16 WHERE surface = "clay" AND date = "3 march 2012"
Who played on clay on 3 march 2012?
CREATE TABLE table_name_16 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
SELECT party FROM table_1342218_43 WHERE district = "Texas 2"
What party is associated with Texas 2?
CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR)
SELECT us_viewers__millions_ FROM table_11694832_1 WHERE production_code = "3T5769"
How many millions of U.S. viewers watched the show with a production code of 3T5769?
CREATE TABLE table_11694832_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT MAX(no_in_series) FROM table_23242933_2 WHERE written_by = "Dan Vebber"
What's the series number of the episode written by Dan Vebber?
CREATE TABLE table_23242933_2 (no_in_series INTEGER, written_by VARCHAR)
SELECT date FROM table_name_42 WHERE actual_title = "archie bunker's place"
What is the Date for the actual title archie bunker's place?
CREATE TABLE table_name_42 (date VARCHAR, actual_title VARCHAR)
SELECT third_place FROM table_17632217_2 WHERE season = 2001
Who was placed third in 2001?
CREATE TABLE table_17632217_2 (third_place VARCHAR, season VARCHAR)
SELECT SUM(year) FROM table_name_17 WHERE venue = "budapest, hungary"
What year is the venue in budapest, hungary?
CREATE TABLE table_name_17 (year INTEGER, venue VARCHAR)
SELECT reward FROM table_28742659_2 WHERE finish = "13th voted Out 6th Jury Member Day 43"
What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43?
CREATE TABLE table_28742659_2 (reward VARCHAR, finish VARCHAR)
SELECT role_name, role_description FROM ROLES WHERE role_code = "MG"
What are the name and description for role code "MG"?
CREATE TABLE ROLES (role_name VARCHAR, role_description VARCHAR, role_code VARCHAR)
SELECT MAX(attendance) FROM table_name_45 WHERE loss = "francis (4–9)"
Loss of francis (4–9) has what highest attendance figure?
CREATE TABLE table_name_45 (attendance INTEGER, loss VARCHAR)
SELECT season_in_sanskrit FROM table_name_34 WHERE season_in_english = "summer"
What season in sanskrit means summer in English?
CREATE TABLE table_name_34 (season_in_sanskrit VARCHAR, season_in_english VARCHAR)
SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse'
find all dependent names who have a spouse relation with some employee.
CREATE TABLE dependent (Dependent_name VARCHAR, relationship VARCHAR)
SELECT assembled FROM table_name_47 WHERE elected = "1620/21"
What is the assembled date of the parliament elected in 1620/21?
CREATE TABLE table_name_47 (assembled VARCHAR, elected VARCHAR)
SELECT driver FROM table_name_44 WHERE laps > 16 AND constructor = "ferrari" AND grid < 15
I want the driver with Laps larger than 16 with a ferrari and grid less than 15
CREATE TABLE table_name_44 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Deborah Pryce (R) 70.7% Bill Buckel (D) 29.1%"
what's the party with opponent being deborah pryce (r) 70.7% bill buckel (d) 29.1%
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_10 WHERE original_name = "mig og charly"
What is the Film title used in nomination of Mig Og Charly?
CREATE TABLE table_name_10 (film_title_used_in_nomination VARCHAR, original_name VARCHAR)
SELECT MAX(pakistanis_admitted) FROM table_1717824_3 WHERE nepalis_admitted = 627
What is the greatest number of Pakistanis admitted to Canada during those times when the number of Nepalis admitted was 627?
CREATE TABLE table_1717824_3 (pakistanis_admitted INTEGER, nepalis_admitted VARCHAR)
SELECT COUNT(DISTINCT state) FROM bank
Find the number of different states which banks are located at.
CREATE TABLE bank (state VARCHAR)
SELECT part_3 FROM table_1745843_8 WHERE class = "7a"
What is the part 3 of the word in class 7a?
CREATE TABLE table_1745843_8 (part_3 VARCHAR, class VARCHAR)
SELECT COUNT(09 AS _10_oi_best) FROM table_24990183_5 WHERE ws_points = 949
What was the 09-10 oi best of the player with 949 points?
CREATE TABLE table_24990183_5 (ws_points VARCHAR)
SELECT driver FROM table_name_40 WHERE entries = 210
Which driver has 210 as entries?
CREATE TABLE table_name_40 (driver VARCHAR, entries VARCHAR)
SELECT COUNT(round) FROM table_name_29 WHERE time = "5:36"
What is the total number of rounds at 5:36?
CREATE TABLE table_name_29 (round VARCHAR, time VARCHAR)
SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74
What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?
CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR)
SELECT SUM(bronze) FROM table_name_53 WHERE gold < 1 AND silver > 1
What is the total number of bronze when gold is less than 1 and silver is more than 1?
CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(tries) FROM table_name_7 WHERE goals < 0
What is the average Tries with less than 0 goals?
CREATE TABLE table_name_7 (tries INTEGER, goals INTEGER)
SELECT SUM(attendance) FROM table_name_50 WHERE away = "real juventud"
Which Attendance has an Away of real juventud?
CREATE TABLE table_name_50 (attendance INTEGER, away VARCHAR)
SELECT condition FROM table_name_75 WHERE bleeding_time = "unaffected" AND prothrombin_time = "prolonged"
Which Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?
CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
SELECT method FROM table_name_71 WHERE time = "2:32"
What win method has a time of 2:32?
CREATE TABLE table_name_71 (method VARCHAR, time VARCHAR)
SELECT MIN(crowd) FROM table_name_47 WHERE home_team = "richmond"
What was the smallest crowd size for a home game for Richmond?
CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR)
SELECT sub_parish__sokn_ FROM table_name_19 WHERE year_built = "1866"
Which Sub-Parish has a church built in 1866?
CREATE TABLE table_name_19 (sub_parish__sokn_ VARCHAR, year_built VARCHAR)
SELECT population_2011_census FROM table_140297_1 WHERE local_government_area = "Sorell"
How many people live in the area of Sorell according to the Census of 2011?
CREATE TABLE table_140297_1 (population_2011_census VARCHAR, local_government_area VARCHAR)
SELECT bronze FROM table_name_69 WHERE silver < 3 AND total = 7
How many bronze medals are there when there are fewer than 3 silver medals and 7 medals total?
CREATE TABLE table_name_69 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT civilian_deaths FROM table_name_19 WHERE total_deaths__not_including_foreigners_ = "178"
How many civilians died in the conflict that left 178, excluding foreigners, dead?
CREATE TABLE table_name_19 (civilian_deaths VARCHAR, total_deaths__not_including_foreigners_ VARCHAR)
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27
Name the least overall with pick number more than 27
CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER)
SELECT endowment_as_of_2008 FROM table_name_55 WHERE established = 1961
What was the endowment in 2008 of the college that was established in 1961?
CREATE TABLE table_name_55 (endowment_as_of_2008 VARCHAR, established VARCHAR)
SELECT SUM(rank) FROM table_name_61 WHERE athlete = "solomon bayoh" AND time < 22.16
What is the sum rank of Solomon Bayoh when his time was smaller than 22.16?
CREATE TABLE table_name_61 (rank INTEGER, athlete VARCHAR, time VARCHAR)
SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = "Europe")
What are the countries that have greater surface area than any country in Europe?
CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR)
SELECT series FROM table_name_41 WHERE date = "april 24"
What is the series record for the game on April 24?
CREATE TABLE table_name_41 (series VARCHAR, date VARCHAR)
SELECT location FROM table_name_67 WHERE game > 2 AND time = "2:56"
What location has more than 2 games with 2:56?
CREATE TABLE table_name_67 (location VARCHAR, game VARCHAR, time VARCHAR)
SELECT COUNT(verbal_noun) FROM table_12784134_1 WHERE basic_stem__root_ = "-bil-"
What's the number of verbal nouns with the basic stem (root) -bil-?
CREATE TABLE table_12784134_1 (verbal_noun VARCHAR, basic_stem__root_ VARCHAR)
SELECT MAX(area__km_2__) FROM table_name_96 WHERE province = "ontario" AND status = "town" AND municipality = "minto" AND rank < 84
What is the highest Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?
CREATE TABLE table_name_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR)
SELECT notes FROM table_name_52 WHERE rank = 1
What are the notes of the number 1 rank?
CREATE TABLE table_name_52 (notes VARCHAR, rank VARCHAR)
SELECT athlete FROM table_22355_20 WHERE nation = "Ethiopia (ETH)" AND rank > 7.0
Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?
CREATE TABLE table_22355_20 (athlete VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT AVG(2002) FROM table_name_88 WHERE country = "peru" AND 2007 > 1 OFFSET 200
What is the normal 2002 that has a Country of Peru, and 2007 bigger than 1,200?
CREATE TABLE table_name_88 (country VARCHAR)
SELECT place FROM table_name_64 WHERE country = "ireland"
what is the place for ireland?
CREATE TABLE table_name_64 (place VARCHAR, country VARCHAR)
SELECT team FROM table_name_47 WHERE race_title = "mallala"
What was the team that held the race title of Mallala?
CREATE TABLE table_name_47 (team VARCHAR, race_title VARCHAR)