answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT opponent FROM table_name_6 WHERE date = "april 13"
What were the opponents from the April 13?
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
SELECT air_date FROM table_name_39 WHERE winner = "red" AND challenge = "emergency braking"
What air date has a red winner and an emergency braking challenge?
CREATE TABLE table_name_39 (air_date VARCHAR, winner VARCHAR, challenge VARCHAR)
SELECT MIN(week) FROM table_name_19 WHERE result = "l 6–0"
What is the lowest Week when the result was l 6–0?
CREATE TABLE table_name_19 (week INTEGER, result VARCHAR)
SELECT date FROM table_name_17 WHERE record = "46-39"
On what date was their record 46-39?
CREATE TABLE table_name_17 (date VARCHAR, record VARCHAR)
SELECT MAX(season) FROM table_name_7 WHERE percentage = "67%" AND driver = "alberto ascari"
Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?
CREATE TABLE table_name_7 (season INTEGER, percentage VARCHAR, driver VARCHAR)
SELECT attendance FROM table_name_12 WHERE date = "october 22, 2000"
what is the attendance when the date is october 22, 2000?
CREATE TABLE table_name_12 (attendance VARCHAR, date VARCHAR)
SELECT week FROM table_name_17 WHERE opponent = "detroit lions"
The Detroit Lions were played against what week?
CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(county) FROM table_15929156_3 WHERE obama_votes = 49558
Name the number of counties for obama votes for 49558
CREATE TABLE table_15929156_3 (county VARCHAR, obama_votes VARCHAR)
SELECT name FROM table_name_23 WHERE location = "dz"
What is Name, when Location is "DZ"?
CREATE TABLE table_name_23 (name VARCHAR, location VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = "gheorghe vitanidis"
What was the film title used in nomination for the film directed by Gheorghe Vitanidis?
CREATE TABLE table_name_89 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT COUNT(january_15_16) FROM table_25216791_3 WHERE august_21_22 = "155"
How many datas were recorded on January 15-16 if August 21-22 is 155?
CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, august_21_22 VARCHAR)
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010"
What is the manner of departure for the date of appointment 24 may 2010?
CREATE TABLE table_26998135_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?
CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT beam FROM table_name_17 WHERE model = "570"
Which Beam has a Model of 570?
CREATE TABLE table_name_17 (beam VARCHAR, model VARCHAR)
SELECT COUNT(player) FROM table_14342367_13 WHERE hometown = "Sioux City, Iowa"
How many players are from Sioux City, Iowa?
CREATE TABLE table_14342367_13 (player VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_28 WHERE home = "dallas"
What was the date when the home team was Dallas?
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_85 WHERE set_1 = "25–20"
Which Date has a Set 1 of 25–20?
CREATE TABLE table_name_85 (date VARCHAR, set_1 VARCHAR)
SELECT AVG(score) FROM table_name_5 WHERE player = "lee westwood"
What is the average score with lee westwood as the player?
CREATE TABLE table_name_5 (score INTEGER, player VARCHAR)
SELECT MIN(silver) FROM table_name_42 WHERE country = "cambodia" AND total < 1
When the country is Cambodia and the total is smaller than 1 what's the lowest silver?
CREATE TABLE table_name_42 (silver INTEGER, country VARCHAR, total VARCHAR)
SELECT l2_cache FROM table_name_71 WHERE release_date = "august 26, 2007"
What L2 cache had a release date of august 26, 2007?
CREATE TABLE table_name_71 (l2_cache VARCHAR, release_date VARCHAR)
SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%"
What's the rank when the obese children and adolescent count is 14.2%?
CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR)
SELECT director FROM table_14330096_3 WHERE total_number = 14
Who is the director of the episode that corresponds to the total episodes number 14?
CREATE TABLE table_14330096_3 (director VARCHAR, total_number VARCHAR)
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26"
On February 26, who was the leading scorer?
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR)
SELECT MAX(number) FROM table_name_67 WHERE artist = "scarface"
What is the highest number of artists on Scarface?
CREATE TABLE table_name_67 (number INTEGER, artist VARCHAR)
SELECT AVG(year) FROM table_name_8 WHERE engine = "offenhauser l4" AND entrant = "belanger motors"
What is the average year that the Belanger Motors had an Offenhauser l4 engine?
CREATE TABLE table_name_8 (year INTEGER, engine VARCHAR, entrant VARCHAR)
SELECT team FROM table_name_47 WHERE last_match = "palmeiras 4-2 portuguesa"
What is the name of team with Palmeiras 4-2 portuguesa as the last match?
CREATE TABLE table_name_47 (team VARCHAR, last_match VARCHAR)
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'
Find the name of customers who do not have an saving account.
CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR)
SELECT example FROM table_name_46 WHERE environment = "#_x"
Name the example when the environment is #_x
CREATE TABLE table_name_46 (example VARCHAR, environment VARCHAR)
SELECT opponents FROM table_name_49 WHERE venue = "portugal"
Who were the opposing team when playing in the Portugal venue?
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
SELECT score FROM table_name_6 WHERE loss = "smith (2-4)"
The game with a loss of smith (2-4) ended with what score?
CREATE TABLE table_name_6 (score VARCHAR, loss VARCHAR)
SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california"
What position has a pick less than 25 for the university of california?
CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR)
SELECT date FROM table_name_94 WHERE type_of_game = "wc 1974 qualifying"
When was the WC 1974 Qualifying game?
CREATE TABLE table_name_94 (date VARCHAR, type_of_game VARCHAR)
SELECT SUM(total) FROM table_name_48 WHERE UEfa_cup = 4
What is the sum of totals associated with a UEFA Cup score of 4?
CREATE TABLE table_name_48 (total INTEGER, UEfa_cup VARCHAR)
SELECT position FROM table_name_6 WHERE team = "arizona diamondbacks"
What position does the player from the Arizona Diamondbacks play?
CREATE TABLE table_name_6 (position VARCHAR, team VARCHAR)
SELECT won FROM table_27293285_4 WHERE played = "22" AND lost = "15" AND points_against = "511"
Name the won for played being 22 and points against 511 and lost being 15
CREATE TABLE table_27293285_4 (won VARCHAR, points_against VARCHAR, played VARCHAR, lost VARCHAR)
SELECT document_type_code FROM documents GROUP BY document_type_code HAVING COUNT(*) > 4
Find the types of documents with more than 4 documents.
CREATE TABLE documents (document_type_code VARCHAR)
SELECT MAX(pick__number) FROM table_name_99 WHERE overall < 136 AND position = "defensive back"
What is the highest pick number of a defensive back with less than 136 overall points?
CREATE TABLE table_name_99 (pick__number INTEGER, overall VARCHAR, position VARCHAR)
SELECT SUM(goals_for) FROM table_name_6 WHERE drawn < 4 AND team = "al wahda" AND played > 22
What is the sum of goals scored for the Al Wahda team with less than 4 drawn and more than 22 plays?
CREATE TABLE table_name_6 (goals_for INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT name FROM table_name_15 WHERE status = "final cast" AND last_performance = "13 june 2009"
What is the name of the actor who played Billy Elliot in the Final Cast with a Last Performance of 13 June 2009?
CREATE TABLE table_name_15 (name VARCHAR, status VARCHAR, last_performance VARCHAR)
SELECT score FROM table_name_92 WHERE country = "south africa"
What score has south africa as the country?
CREATE TABLE table_name_92 (score VARCHAR, country VARCHAR)
SELECT gdp__billion_us$_ FROM table_1307842_6 WHERE area__km²_ = 83871
What is the gdp of the country with an area of 83871 (km2)?
CREATE TABLE table_1307842_6 (gdp__billion_us$_ VARCHAR, area__km²_ VARCHAR)
SELECT AVG(floors) FROM table_name_19 WHERE name = "meridian condominiums"
with name meridian condominiums what is number of floors?
CREATE TABLE table_name_19 (floors INTEGER, name VARCHAR)
SELECT the_biggest_loser FROM table_name_21 WHERE at_home_winner = "pete thomas"
Who won the season when Pete Thomas was the At-Home winner?
CREATE TABLE table_name_21 (the_biggest_loser VARCHAR, at_home_winner VARCHAR)
SELECT COUNT(capacity) FROM table_1212189_1 WHERE model_engine = "1.6 Duratec"
How many capacities are possible for the 1.6 Duratec model/engine?
CREATE TABLE table_1212189_1 (capacity VARCHAR, model_engine VARCHAR)
SELECT original_name FROM table_name_71 WHERE language = "spanish" AND country = "spain"
What was the original name of the Spanish song in Spain?
CREATE TABLE table_name_71 (original_name VARCHAR, language VARCHAR, country VARCHAR)
SELECT SUM(pos) FROM table_name_72 WHERE car__number = 33
Which Pos has a Car # of 33?
CREATE TABLE table_name_72 (pos INTEGER, car__number VARCHAR)
SELECT home_team AS score FROM table_name_85 WHERE venue = "kardinia park"
What is the home team's score at kardinia park?
CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR)
SELECT color_commentator_s_ FROM table_22485543_1 WHERE ice_level_reporters = "Brian Engblom"
Who is the color commentator when brian engblom is ice level reporters?
CREATE TABLE table_22485543_1 (color_commentator_s_ VARCHAR, ice_level_reporters VARCHAR)
SELECT date FROM table_name_35 WHERE tournament = "izmir cup" AND opponent = "somdev devvarman"
What date was the Izmir Cup in which İlhan played against Somdev Devvarman?
CREATE TABLE table_name_35 (date VARCHAR, tournament VARCHAR, opponent VARCHAR)
SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ > 339333.011497678
Which charts had debut sales of of more than 339333.011497678?
CREATE TABLE table_23180638_1 (oricon_albums_chart VARCHAR, debut_sales__copies_ INTEGER)
SELECT COUNT(appearances¹) FROM table_24565004_15 WHERE goals¹ = 7
How many games had less than 7 goals scored?
CREATE TABLE table_24565004_15 (appearances¹ VARCHAR, goals¹ VARCHAR)
SELECT location FROM table_name_94 WHERE time = "1:37"
Where was the fight that took a time of 1:37?
CREATE TABLE table_name_94 (location VARCHAR, time VARCHAR)
SELECT COUNT(field_goals) FROM table_14342592_8 WHERE extra_points = 19
Name the number of field goals for 19 extra points
CREATE TABLE table_14342592_8 (field_goals VARCHAR, extra_points VARCHAR)
SELECT venue FROM table_name_40 WHERE position = "2nd" AND year = 1985
Which venue was finished in 2nd position in 1985?
CREATE TABLE table_name_40 (venue VARCHAR, position VARCHAR, year VARCHAR)
SELECT score FROM table_name_29 WHERE attendance = "3,416"
What is Score, when Attendance is 3,416?
CREATE TABLE table_name_29 (score VARCHAR, attendance VARCHAR)
SELECT COUNT(fin_pos) FROM table_17304308_1 WHERE points = "12" AND time_retired = "Accident"
Name the total number of fin pos for 12 points of accident
CREATE TABLE table_17304308_1 (fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR)
SELECT city_of_license FROM table_name_76 WHERE erp_w < 500 AND class = "a" AND frequency_mhz > 89.7
What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?
CREATE TABLE table_name_76 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR)
SELECT T1.id, COUNT(*) FROM stadium AS T1 JOIN game AS T2 ON T1.id = T2.stadium_id GROUP BY T1.id
How many games has each stadium held?
CREATE TABLE stadium (id VARCHAR); CREATE TABLE game (stadium_id VARCHAR)
SELECT ramtha FROM table_26173058_2 WHERE ahli = "1-1"
what is the score where the record is 1-1
CREATE TABLE table_26173058_2 (ramtha VARCHAR, ahli VARCHAR)
SELECT party FROM table_name_8 WHERE name = "oudom khattigna"
What is Party, when Name is Oudom Khattigna?
CREATE TABLE table_name_8 (party VARCHAR, name VARCHAR)
SELECT location FROM table_21761882_4 WHERE opponent = "@ Roughriders"
What was the location for when the opponent was @ roughriders?
CREATE TABLE table_21761882_4 (location VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077
Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?
CREATE TABLE table_name_74 (week VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary"
What's the roll for summerland primary when decile is over 6?
CREATE TABLE table_name_66 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT mountain_range FROM table_name_26 WHERE province = "nunavut" AND location = "73.2294°n 78.6233°w"
Name the mountain range for nunavut with location of 73.2294°n 78.6233°w
CREATE TABLE table_name_26 (mountain_range VARCHAR, province VARCHAR, location VARCHAR)
SELECT rank FROM table_name_72 WHERE qual = "134.288"
For the car with a qual of 134.288, what was the rank?
CREATE TABLE table_name_72 (rank VARCHAR, qual VARCHAR)
SELECT MAX(attendance) FROM table_14945608_1
What was the highest attendance?
CREATE TABLE table_14945608_1 (attendance INTEGER)
SELECT 1987 FROM table_name_15 WHERE 1986 = "1r"
What is 1987, when 1986 is "1R"?
CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 2009 FROM table_name_38 WHERE 2012 = "year-end championship"
What is the 2009 when 2012 is Year-End Championship?
CREATE TABLE table_name_38 (Id VARCHAR)
SELECT SUM(overall) FROM table_name_22 WHERE name = "tim smiley" AND round < 5
What is the sum of Overall, when Name is "Tim Smiley", and when Round is less than 5?
CREATE TABLE table_name_22 (overall INTEGER, name VARCHAR, round VARCHAR)
SELECT score FROM table_23308178_7 WHERE opponent = "Detroit Red Wings"
List the results for all games which involved the detroit red wings.
CREATE TABLE table_23308178_7 (score VARCHAR, opponent VARCHAR)
SELECT AVG(Money_Requested) FROM entrepreneur
What is the average money requested by all entrepreneurs?
CREATE TABLE entrepreneur (Money_Requested INTEGER)
SELECT COUNT(round) FROM table_name_24 WHERE surface = "wintry asphalt"
How many rounds have a Surface of wintry asphalt?
CREATE TABLE table_name_24 (round VARCHAR, surface VARCHAR)
SELECT competition FROM table_name_75 WHERE date = "10 august 2011"
what is the competition on 10 august 2011?
CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR)
SELECT province FROM table_27592654_2 WHERE election_date = "5 Cannot handle non-empty timestamp argument! 1861"
What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?
CREATE TABLE table_27592654_2 (province VARCHAR, election_date VARCHAR)
SELECT score FROM table_name_32 WHERE record = "5-4-2"
What is the score when the record was 5-4-2?
CREATE TABLE table_name_32 (score VARCHAR, record VARCHAR)
SELECT COUNT(heat) FROM table_name_88 WHERE name = "smiljana marinović"
What is the Heat for Smiljana Marinović?
CREATE TABLE table_name_88 (heat VARCHAR, name VARCHAR)
SELECT opponent FROM table_25505246_7 WHERE against = "Belarus"
Who was Hanne Skak Jensen's opponent when facing Belarus?
CREATE TABLE table_25505246_7 (opponent VARCHAR, against VARCHAR)
SELECT high_rebounds FROM table_17432028_1 WHERE date = "March 15"
Name the high rebounds for march 15
CREATE TABLE table_17432028_1 (high_rebounds VARCHAR, date VARCHAR)
SELECT MIN(year) FROM table_name_82 WHERE best_finish = "t-65"
what is the earliest year with the best finish t-65?
CREATE TABLE table_name_82 (year INTEGER, best_finish VARCHAR)
SELECT event FROM table_name_54 WHERE record = "9-4-1"
What was the event where justin robbins had a record of 9-4-1?
CREATE TABLE table_name_54 (event VARCHAR, record VARCHAR)
SELECT date FROM table_name_10 WHERE home_team = "hawthorn"
On what date is Hawthorn the home team?
CREATE TABLE table_name_10 (date VARCHAR, home_team VARCHAR)
SELECT AVG(lost) FROM table_name_31 WHERE goals_for = 43 AND position > 15
How many lost when goals for is 43 and the position number is higher than 15?
CREATE TABLE table_name_31 (lost INTEGER, goals_for VARCHAR, position VARCHAR)
SELECT example FROM table_28177800_5 WHERE early_modern_english = "( [x] → /f/) /ɔf/"
What is the example of the Early Modern English ( [x] → /f/) /ɔf/?
CREATE TABLE table_28177800_5 (example VARCHAR, early_modern_english VARCHAR)
SELECT class_aA FROM table_name_88 WHERE class_a = "anton" AND class_aAA = burnet
If the Class A is Anton and Class AAA is Burnet, what is Class AA?
CREATE TABLE table_name_88 (class_aA VARCHAR, class_a VARCHAR, class_aAA VARCHAR, burnet VARCHAR)
SELECT MIN(total) FROM table_name_51 WHERE bronze = 0 AND silver > 0 AND rank = 5
Which Total is the lowest one that has a Bronze of 0, and a Silver larger than 0, and a Rank of 5?
CREATE TABLE table_name_51 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT country FROM table_name_46 WHERE place = "1"
What is the Country, when Place is "1"?
CREATE TABLE table_name_46 (country VARCHAR, place VARCHAR)
SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"
Who was the developer of Wii?
CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR)
SELECT opponent FROM table_name_80 WHERE city = "zagreb"
Who was the opposing team during the game in Zagreb?
CREATE TABLE table_name_80 (opponent VARCHAR, city VARCHAR)
SELECT entrant FROM table_name_68 WHERE engine_† = "mugen-honda mf-301 he"
Which entrant had a mugen-honda mf-301 he engine?
CREATE TABLE table_name_68 (entrant VARCHAR, engine_† VARCHAR)
SELECT date FROM table_name_4 WHERE score = "0-2" AND opponents = "bayer leverkusen"
What is Date, when Score is "0-2", and when Opponents is "Bayer Leverkusen"?
CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR, opponents VARCHAR)
SELECT team FROM table_name_87 WHERE year > 1998 AND start = "dnq"
What team is after 1998 with a start of dnq?
CREATE TABLE table_name_87 (team VARCHAR, year VARCHAR, start VARCHAR)
SELECT home_team FROM table_name_62 WHERE away_team = "fitzroy"
Which Home team has an Away team of fitzroy?
CREATE TABLE table_name_62 (home_team VARCHAR, away_team VARCHAR)
SELECT high_assists FROM table_15780049_6 WHERE team = "Cleveland"
Who had the most assist when the opponent was Cleveland?
CREATE TABLE table_15780049_6 (high_assists VARCHAR, team VARCHAR)
SELECT city FROM table_name_99 WHERE opponent = "england"
Which city has an opponent of England?
CREATE TABLE table_name_99 (city VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_91 WHERE date = "1978-12-16"
Tell me the score on 1978-12-16
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
SELECT 1944 FROM table_name_52 WHERE tournament = "u.s. championships"
What is the 1944 result for the U.S. Championships?
CREATE TABLE table_name_52 (tournament VARCHAR)
SELECT margin_of_victory FROM table_name_61 WHERE runner_s__up = "steve rintoul"
What was the margin of victory over Steve Rintoul?
CREATE TABLE table_name_61 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT total_pld FROM table_22011138_7 WHERE pos = 4
If the POS is 4, what is the total PLD?
CREATE TABLE table_22011138_7 (total_pld VARCHAR, pos VARCHAR)
SELECT COUNT(train_name) FROM table_12095519_1 WHERE origin = "Puri"
How many trains leave from puri?
CREATE TABLE table_12095519_1 (train_name VARCHAR, origin VARCHAR)
SELECT SUM(bronze) FROM table_name_85 WHERE silver = 2 AND gold < 0
What is the total bronze with a Silver of 2, and a Gold smaller than 0?
CREATE TABLE table_name_85 (bronze INTEGER, silver VARCHAR, gold VARCHAR)