answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939
What is the low goal for orders more than 939 during Seasons of 1996 – 2001?
CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR)
SELECT location FROM table_name_39 WHERE time = "5:00" AND record = "8-4"
Where was the fight that lasted 5:00 when Yundt's record was 8-4?
CREATE TABLE table_name_39 (location VARCHAR, time VARCHAR, record VARCHAR)
SELECT catalog FROM table_name_46 WHERE format = "lp" AND country = "us" AND label = "sundazed" AND date = "2006"
What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?
CREATE TABLE table_name_46 (catalog VARCHAR, date VARCHAR, label VARCHAR, format VARCHAR, country VARCHAR)
SELECT team FROM table_17102076_5 WHERE location_attendance = "ARCO Arena 13,685"
Name the team for arco arena 13,685
CREATE TABLE table_17102076_5 (team VARCHAR, location_attendance VARCHAR)
SELECT MIN(year) FROM table_27611593_5
When did the earliest tournament happened?
CREATE TABLE table_27611593_5 (year INTEGER)
SELECT away_team FROM table_name_7 WHERE home_team = "collingwood"
What is the name of the away team who play Collingwood?
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT institution FROM table_1183842_1 WHERE enrollment = 3488
3488 is the enrollment amount of what college?
CREATE TABLE table_1183842_1 (institution VARCHAR, enrollment VARCHAR)
SELECT score FROM table_name_27 WHERE record = "8–11–1"
What was the score of the Kings game when they had a record of 8–11–1?
CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR)
SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse"
How many years was lynn muscarella the high school principal and charlie wiltse the superintendent?
CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR)
SELECT payment FROM table_name_31 WHERE type = "2d" AND release_date = "january 2003"
Which Payment has a Type of 2d, and a Release date of january 2003?
CREATE TABLE table_name_31 (payment VARCHAR, type VARCHAR, release_date VARCHAR)
SELECT season_joined_league FROM table_name_28 WHERE settlements = "évora"
In which season did the évora settlements join the league?
CREATE TABLE table_name_28 (season_joined_league VARCHAR, settlements VARCHAR)
SELECT home_team FROM table_name_16 WHERE away_team = "newcastle united"
Who is the home team when the away team is newcastle united?
CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR)
SELECT player FROM table_11545282_11 WHERE no = "51"
Who is player number 51?
CREATE TABLE table_11545282_11 (player VARCHAR, no VARCHAR)
SELECT MAX(total_amount_of_trees) FROM table_10342194_3 WHERE district = "Leninsky"
What is the total amount of trees when district is leninsky?
CREATE TABLE table_10342194_3 (total_amount_of_trees INTEGER, district VARCHAR)
SELECT tournament FROM table_name_63 WHERE outcome = "winner" AND date = "13 july 2013"
What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?
CREATE TABLE table_name_63 (tournament VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE artist = "claudia beni"
How many years have claudia beni as the artist?
CREATE TABLE table_name_3 (year INTEGER, artist VARCHAR)
SELECT high_points FROM table_name_73 WHERE team = "@ phoenix"
What is High Points, when Team is @ Phoenix?
CREATE TABLE table_name_73 (high_points VARCHAR, team VARCHAR)
SELECT SUM(drawn) FROM table_name_42 WHERE first_game < 2006 AND played < 2
What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?
CREATE TABLE table_name_42 (drawn INTEGER, first_game VARCHAR, played VARCHAR)
SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = "Up 2.8%"
What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%?
CREATE TABLE table_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR)
SELECT result FROM table_name_43 WHERE date = "september 26"
What was the result on september 26?
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
SELECT place FROM table_name_7 WHERE draw > 2 AND points < 139 AND artist = "midnight band"
In what place is the artist Midnight Band with a draw larger than 2 and less than 139 points.
CREATE TABLE table_name_7 (place VARCHAR, artist VARCHAR, draw VARCHAR, points VARCHAR)
SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = "melbourne indoor, australia" AND score = "2–6, 6–2, 6–2"
What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR)
SELECT constructor FROM table_name_31 WHERE laps = 25
Which constructor was there for the race with 25 laps?
CREATE TABLE table_name_31 (constructor VARCHAR, laps VARCHAR)
SELECT result FROM table_name_74 WHERE week = 11
What was the result week 11?
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR)
SELECT Literate AS male FROM table_28939145_2 WHERE _percentage_of_district_population = "6.65"
how many literate males are there that has a district population of 6.65?
CREATE TABLE table_28939145_2 (Literate VARCHAR, _percentage_of_district_population VARCHAR)
SELECT written_by FROM table_16384596_4 WHERE broadcast_order = "S02 E07"
Who wrote the episode for s02 e07?
CREATE TABLE table_16384596_4 (written_by VARCHAR, broadcast_order VARCHAR)
SELECT time FROM table_name_7 WHERE ground = "humber college north"
What is the Time with a Ground that is humber college north?
CREATE TABLE table_name_7 (time VARCHAR, ground VARCHAR)
SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = "paco chaparro"
What was the date of appointment for paco chaparro's replacement?
CREATE TABLE table_name_12 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT tie_no FROM table_name_44 WHERE away_team = "tranmere rovers"
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE table_name_44 (tie_no VARCHAR, away_team VARCHAR)
SELECT borough FROM table_14748457_1 WHERE station_users_2008_9 = "28702"
what is the name of the borough where station uses is 28702?
CREATE TABLE table_14748457_1 (borough VARCHAR, station_users_2008_9 VARCHAR)
SELECT MIN(react) FROM table_name_61 WHERE mark = "46.26 sb" AND lane > 6
What is the lowest React, when Mark is 46.26 sb, and when Lane is greater than 6?
CREATE TABLE table_name_61 (react INTEGER, mark VARCHAR, lane VARCHAR)
SELECT AVG(events) FROM table_name_55 WHERE player = "al geiberger" AND wins < 1
What is the average events that Al Geiberger played with wins smaller than 1?
CREATE TABLE table_name_55 (events INTEGER, player VARCHAR, wins VARCHAR)
SELECT print_name FROM table_name_39 WHERE date_completed = "07/87"
What was the print name in 07/87?
CREATE TABLE table_name_39 (print_name VARCHAR, date_completed VARCHAR)
SELECT feb FROM table_name_63 WHERE city = "east stroudsburg"
What were the Feb temperatures in East Stroudsburg?
CREATE TABLE table_name_63 (feb VARCHAR, city VARCHAR)
SELECT record FROM table_name_32 WHERE visitor = "chicago black hawks" AND date = "april 17"
What is Record, when Visitor is "Chicago Black Hawks", and when Date is "April 17"?
CREATE TABLE table_name_32 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE opponent = "@ oilers" AND date = "may 25"
Which Attendance has an Opponent of @ oilers, and a Date of may 25?
CREATE TABLE table_name_25 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
SELECT finish FROM table_name_63 WHERE team_season = "1980"
What was the final rank of the Brewers in 1980?
CREATE TABLE table_name_63 (finish VARCHAR, team_season VARCHAR)
SELECT MIN(golden_bears_points) FROM table_21035326_1 WHERE opponents = 15
What was the least amount of points scored by the golden bears when the opponent scored 15 points?
CREATE TABLE table_21035326_1 (golden_bears_points INTEGER, opponents VARCHAR)
SELECT set_3 FROM table_name_54 WHERE set_5 = "na" AND set_1 = "21-25" AND set_2 = "25-16"
What is set 3 when set 5 is na, set 1 is 21-25, and set 2 is 25-16?
CREATE TABLE table_name_54 (set_3 VARCHAR, set_2 VARCHAR, set_5 VARCHAR, set_1 VARCHAR)
SELECT season FROM table_name_97 WHERE opponent = "victoria"
In what season is Victoria the Opponent?
CREATE TABLE table_name_97 (season VARCHAR, opponent VARCHAR)
SELECT COUNT(week) FROM table_name_40 WHERE attendance = "64,116"
How many weeks have an attendance of 64,116?
CREATE TABLE table_name_40 (week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "olivier delaître"
What is the date of the tournament with olivier delaître as the opponent in the final?
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT MIN(revenue__) AS $m_ FROM table_name_73 WHERE country = "england" AND team = "chelsea" AND rank < 7
Name the least revenue for chelsea of england with rank less than 7
CREATE TABLE table_name_73 (revenue__ INTEGER, rank VARCHAR, country VARCHAR, team VARCHAR)
SELECT SUM(solidat__) AS °c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__°c_ > 283
When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?
CREATE TABLE table_name_46 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__°c_ VARCHAR)
SELECT MIN(world) FROM table_19017269_5 WHERE latin_america_caribbean = "788 (8.1%)"
What is population in the world when 788 (8.1%)?
CREATE TABLE table_19017269_5 (world INTEGER, latin_america_caribbean VARCHAR)
SELECT date FROM table_name_61 WHERE venue = "windy hill"
On which date was the venue at Windy Hill?
CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR)
SELECT package_option, series_name FROM TV_Channel WHERE hight_definition_TV = "yes"
Find the package choice and series name of the TV channel that has high definition TV.
CREATE TABLE TV_Channel (package_option VARCHAR, series_name VARCHAR, hight_definition_TV VARCHAR)
SELECT COUNT(porphyria) FROM table_182499_1 WHERE substrate = "δ-Aminolevulinic acid"
how many porphyria have substrate δ-aminolevulinic acid
CREATE TABLE table_182499_1 (porphyria VARCHAR, substrate VARCHAR)
SELECT power FROM table_name_91 WHERE year = "1935-45"
Tell me the power for 1935-45
CREATE TABLE table_name_91 (power VARCHAR, year VARCHAR)
SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = "GT"
what are all the open 1st viii with u15 4th iv being gt
CREATE TABLE table_11318462_5 (open_1st_viii VARCHAR, u15_4th_iv VARCHAR)
SELECT MAX(years_working), MIN(years_working), AVG(years_working) FROM school_bus
What is the maximum, minimum and average years spent working on a school bus?
CREATE TABLE school_bus (years_working INTEGER)
SELECT score FROM table_name_42 WHERE record = "1-1"
WHAT SCORE HAD A RECORD OF 1-1?
CREATE TABLE table_name_42 (score VARCHAR, record VARCHAR)
SELECT constructor FROM table_name_69 WHERE race = "belgian grand prix"
Name the constructor for the belgian grand prix
CREATE TABLE table_name_69 (constructor VARCHAR, race VARCHAR)
SELECT tournament FROM table_name_96 WHERE winning_score = 67 - 61 - 68 - 67 = 263
Which tournament had a winning score of 67-61-68-67=263?
CREATE TABLE table_name_96 (tournament VARCHAR, winning_score VARCHAR)
SELECT rider FROM table_name_59 WHERE speed = "90.57mph"
Which rider had a speed of 90.57mph?
CREATE TABLE table_name_59 (rider VARCHAR, speed VARCHAR)
SELECT region FROM table_25042332_22 WHERE primary__6_13_years_ = "94.40"
In what region is the enrollment ratio in primary 94.40?
CREATE TABLE table_25042332_22 (region VARCHAR, primary__6_13_years_ VARCHAR)
SELECT special_notes FROM table_name_56 WHERE year < 2009
What is the special notes value for years under 2009?
CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER)
SELECT week FROM table_name_32 WHERE game_site = "candlestick park"
Which week has Game site of Candlestick Park?
CREATE TABLE table_name_32 (week VARCHAR, game_site VARCHAR)
SELECT MIN(laps) FROM table_name_29 WHERE points > 16
What is the lowest number of laps with more than 16 points?
CREATE TABLE table_name_29 (laps INTEGER, points INTEGER)
SELECT COUNT(heat) FROM table_name_18 WHERE lane = 5 AND rank > 110 AND nationality = "honduras"
How many heats had 5 lanes and a rank less than 110 for the nationality of Honduras?
CREATE TABLE table_name_18 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = "infineon raceway"
What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?
CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR)
SELECT martial_art_style FROM table_14937957_1 WHERE city = "Rio de Janeiro"
Which martial arts style was shown in Rio de Janeiro?
CREATE TABLE table_14937957_1 (martial_art_style VARCHAR, city VARCHAR)
SELECT COUNT(money___) AS $__ FROM table_name_28 WHERE to_par = "+5" AND score = 76 - 69 - 70 - 70 = 285
What is the amount of money that a +5 to par with a score of 76-69-70-70=285?
CREATE TABLE table_name_28 (money___ VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT race FROM table_name_1 WHERE date = "04-25-2008"
What race happened on 04-25-2008?
CREATE TABLE table_name_1 (race VARCHAR, date VARCHAR)
SELECT group_vI FROM table_name_75 WHERE group_i = "deportivo" AND group_iV = sevilla AND group_iII = valencia
Who won Group VI, when Group 1 was won by deportivo, group IV by sevilla, and group III by Valencia?
CREATE TABLE table_name_75 (group_vI VARCHAR, group_iII VARCHAR, valencia VARCHAR, group_i VARCHAR, group_iV VARCHAR, sevilla VARCHAR)
SELECT final_score FROM table_21761882_4 WHERE attendance = 25598
What was the final score when the attendance was 25598?
CREATE TABLE table_21761882_4 (final_score VARCHAR, attendance VARCHAR)
SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 2
How many directors were in Season 2?
CREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR)
SELECT total FROM table_name_95 WHERE player = "robbie winters"
What is the Total with a Player named robbie winters?
CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR)
SELECT card_type_code FROM Customers_cards GROUP BY card_type_code HAVING COUNT(*) >= 5
Show card type codes with at least 5 cards.
CREATE TABLE Customers_cards (card_type_code VARCHAR)
SELECT winner FROM table_name_39 WHERE course = "genoa to livorno"
Name the winner for genoa to livorno
CREATE TABLE table_name_39 (winner VARCHAR, course VARCHAR)
SELECT team_record FROM table_24481478_1 WHERE week = 7
What was the game record during week 7?
CREATE TABLE table_24481478_1 (team_record VARCHAR, week VARCHAR)
SELECT stadium FROM table_name_41 WHERE date = "november 29"
What is the Stadium held on november 29?
CREATE TABLE table_name_41 (stadium VARCHAR, date VARCHAR)
SELECT platform_s_ FROM table_name_78 WHERE year = "2006 (10th)"
What is the platform(s) for the year 2006 (10th)?
CREATE TABLE table_name_78 (platform_s_ VARCHAR, year VARCHAR)
SELECT title__english_ FROM table_name_91 WHERE number_of_season = 6
What is the English title for season 6?
CREATE TABLE table_name_91 (title__english_ VARCHAR, number_of_season VARCHAR)
SELECT class FROM table_name_20 WHERE city_of_license = "richmond, virginia"
Which class has a city of Richmond, Virginia?
CREATE TABLE table_name_20 (class VARCHAR, city_of_license VARCHAR)
SELECT recipient_s_ FROM table_name_5 WHERE result = "nominated" AND category = "most popular drama" AND year > 2004
Who was the recipient when the show was nominated for Most Popular Drama after 2004?
CREATE TABLE table_name_5 (recipient_s_ VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
SELECT MAX(game) FROM table_name_79 WHERE record = "3-2"
What is the highest game with a 3-2 record?
CREATE TABLE table_name_79 (game INTEGER, record VARCHAR)
SELECT location FROM table_22165661_3 WHERE score = "2-1"
What is the location when 2-1 is the score?
CREATE TABLE table_22165661_3 (location VARCHAR, score VARCHAR)
SELECT season FROM table_name_48 WHERE points = "95"
Which Season has 95 Points?
CREATE TABLE table_name_48 (season VARCHAR, points VARCHAR)
SELECT COUNT(_percentage_of_all_immigrants_2006) FROM table_23619212_1 WHERE country = "Morocco"
How many different percentages of immigrants in 2006 can there be for Morocco?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2006 VARCHAR, country VARCHAR)
SELECT home_team AS score FROM table_name_3 WHERE venue = "western oval"
What was the score of the home team in the match at Western Oval?
CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu"
Who is the musical director of the film Vettaiyaadu vilaiyaadu?
CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR)
SELECT date FROM table_name_25 WHERE week = 3
What was the date of week 3?
CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR)
SELECT original_air_date FROM table_27910411_1 WHERE no_in_series = 10
What date did episode 10 in the series originally air?
CREATE TABLE table_27910411_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne"
What was the home team's score of the game where South Melbourne is the away team?
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
SELECT AVG(game) FROM table_name_4 WHERE october = 19
What is the average game number that was on october 19?
CREATE TABLE table_name_4 (game INTEGER, october VARCHAR)
SELECT reporters FROM table_22514845_2 WHERE year = 2003
Name the reporters for 2003
CREATE TABLE table_22514845_2 (reporters VARCHAR, year VARCHAR)
SELECT pick FROM table_name_56 WHERE college = "kentucky" AND team = "washington capitols"
What was the pick for the game at the College of Kentucky with the team Washington Capitols?
CREATE TABLE table_name_56 (pick VARCHAR, college VARCHAR, team VARCHAR)
SELECT term_start FROM table_name_38 WHERE name = "prime ministers 1939 - 1943"
What is Term Start, when Name is Prime Ministers 1939 - 1943?
CREATE TABLE table_name_38 (term_start VARCHAR, name VARCHAR)
SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner"
Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner?
CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)
SELECT transaction_id FROM Financial_transactions WHERE transaction_amount > (SELECT AVG(transaction_amount) FROM Financial_transactions)
Show ids for all transactions whose amounts are greater than the average.
CREATE TABLE Financial_transactions (transaction_id VARCHAR, transaction_amount INTEGER)
SELECT MIN(population) FROM table_1417184_1 WHERE canton = "Redange"
what is the minimum population with canton being redange
CREATE TABLE table_1417184_1 (population INTEGER, canton VARCHAR)
SELECT placing FROM table_name_58 WHERE beat_by = "won" AND distance = "8gf"
What was the placing of the race in which Chic won by 8gf?
CREATE TABLE table_name_58 (placing VARCHAR, beat_by VARCHAR, distance VARCHAR)
SELECT AVG(fall_06) FROM table_name_92 WHERE fall_08 < 79 AND fall_07 > 36 AND fall_05 > 74
What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?
CREATE TABLE table_name_92 (fall_06 INTEGER, fall_05 VARCHAR, fall_08 VARCHAR, fall_07 VARCHAR)
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+10.4%"
What is the percentage of registered voters in which the d-r spread is +10.4%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT COUNT(reporters) FROM table_22514845_3 WHERE year = 1993
How many reporters for the year 1993?
CREATE TABLE table_22514845_3 (reporters VARCHAR, year VARCHAR)
SELECT race_time FROM table_2260452_1 WHERE team = "Billy Ballew Motorsports"
If the team is Billy Ballew Motorsports, what is the race time?
CREATE TABLE table_2260452_1 (race_time VARCHAR, team VARCHAR)
SELECT AVG(points) FROM table_name_84 WHERE games_played < 5
How many points on average are there for less than 5 games played?
CREATE TABLE table_name_84 (points INTEGER, games_played INTEGER)
SELECT elevator FROM table_name_30 WHERE order_and_title = "cardinal-priest of s. prassede"
The Cardinal-Priest of S. Prassede order and title has who as the elevator?
CREATE TABLE table_name_30 (elevator VARCHAR, order_and_title VARCHAR)
SELECT southern_lakota FROM table_1499791_2 WHERE english_gloss = "morning"
Name the southern lakota for morning
CREATE TABLE table_1499791_2 (southern_lakota VARCHAR, english_gloss VARCHAR)