answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT year FROM table_name_13 WHERE production = "wicked" AND award_ceremony = "helpmann awards"
Which Year saw the Production of Wicked at the Helpmann Awards Award ceremony?
CREATE TABLE table_name_13 (year VARCHAR, production VARCHAR, award_ceremony VARCHAR)
SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = "27317–27336"
What year were the retired serial numbers 27317–27336?
CREATE TABLE table_name_32 (year_s__retired VARCHAR, serial_numbers VARCHAR)
SELECT original_airdate FROM table_17641206_4 WHERE viewership = "4.77 million"
What was the first airdate with a viewership of 4.77 million?
CREATE TABLE table_17641206_4 (original_airdate VARCHAR, viewership VARCHAR)
SELECT character FROM table_name_26 WHERE category = "best dramatic performance"
What character won the best dramatic performance award?
CREATE TABLE table_name_26 (character VARCHAR, category VARCHAR)
SELECT AVG(losses) FROM table_name_24 WHERE wins = 3
what is the average losses when the wins is 3?
CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR)
SELECT date FROM table_name_70 WHERE record = "36-39"
On which day was there a record of 36-39?
CREATE TABLE table_name_70 (date VARCHAR, record VARCHAR)
SELECT song FROM table_name_41 WHERE draw < 2
What song has draw number less than 2?
CREATE TABLE table_name_41 (song VARCHAR, draw INTEGER)
SELECT term_end FROM table_name_89 WHERE term_start = "28 november 1912"
When did the term end for the person who started their term on 28 November 1912?
CREATE TABLE table_name_89 (term_end VARCHAR, term_start VARCHAR)
SELECT COUNT(*) FROM products WHERE NOT product_id IN (SELECT product_id FROM Order_items)
How many products were not included in any order?
CREATE TABLE products (product_id VARCHAR); CREATE TABLE Order_items (product_id VARCHAR)
SELECT AVG(total_population__2005_estimate_) FROM table_name_78 WHERE province = "west kalimantan (kalimantan barat)" AND area__km_2__ < 147 OFFSET 307.00
Which Total population (2005 estimate) has a Province of west kalimantan (kalimantan barat), and an Area (km 2) smaller than 147,307.00?
CREATE TABLE table_name_78 (total_population__2005_estimate_ INTEGER, province VARCHAR, area__km_2__ VARCHAR)
SELECT tournament FROM table_name_52 WHERE surface = "clay" AND score = "4–6, 6–1, 6–4"
Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4?
CREATE TABLE table_name_52 (tournament VARCHAR, surface VARCHAR, score VARCHAR)
SELECT indoor_track FROM table_name_91 WHERE tennis = "yes" AND golf = "no"
What is the indoor track status for the school that has yes for tennis and no for golf?
CREATE TABLE table_name_91 (indoor_track VARCHAR, tennis VARCHAR, golf VARCHAR)
SELECT player FROM table_name_47 WHERE school_club_team = "memphis state"
Who played for Memphis State?
CREATE TABLE table_name_47 (player VARCHAR, school_club_team VARCHAR)
SELECT outcome FROM table_name_91 WHERE surface = "clay" AND date = "april 21, 1996"
What is the total outcome for the clay surface on April 21, 1996?
CREATE TABLE table_name_91 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) DESC
Find the number of routes and airport name for each source airport, order the results by decreasing number of routes.
CREATE TABLE airports (name VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR)
SELECT launch_date FROM table_name_2 WHERE odds_of_winning = "1 in 4.54"
What is the launch date odds of winning 1 in 4.54?
CREATE TABLE table_name_2 (launch_date VARCHAR, odds_of_winning VARCHAR)
SELECT SUM(billboard_200_peak) FROM table_name_38 WHERE year > 1971
What is the sum of the Billboard 200 Peak scores after the Year 1971?
CREATE TABLE table_name_38 (billboard_200_peak INTEGER, year INTEGER)
SELECT college FROM table_name_49 WHERE player = "dean caliguire"
What is the College with a Player that is dean caliguire?
CREATE TABLE table_name_49 (college VARCHAR, player VARCHAR)
SELECT score FROM table_name_85 WHERE date = "15 march 2006"
What was the score on 15 march 2006?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT week FROM table_name_91 WHERE opponent = "san diego chargers"
Which week was the game against the San Diego Chargers?
CREATE TABLE table_name_91 (week VARCHAR, opponent VARCHAR)
SELECT COUNT(team_s_) FROM table_1458412_1 WHERE winnings = "$1,752,299"
What is the total amount o teams where winnings is $1,752,299?
CREATE TABLE table_1458412_1 (team_s_ VARCHAR, winnings VARCHAR)
SELECT MAX(capacity) FROM table_name_91 WHERE highest > 6 OFFSET 192
What is the greatest capacity when the largest number in attendance is 6,192?
CREATE TABLE table_name_91 (capacity INTEGER, highest INTEGER)
SELECT customer_name FROM customers
Find the name of all customers.
CREATE TABLE customers (customer_name VARCHAR)
SELECT FlightNo FROM FLIGHTS WHERE DestAirport = "APG"
What are flight numbers of flights arriving at Airport "APG"?
CREATE TABLE FLIGHTS (FlightNo VARCHAR, DestAirport VARCHAR)
SELECT record FROM table_13258823_2 WHERE date = "September 15, 1985"
Name the record for september 15, 1985
CREATE TABLE table_13258823_2 (record VARCHAR, date VARCHAR)
SELECT chassis FROM table_28190534_1 WHERE entrant = "SFACS Ecurie France"
Name the chassis for sfacs ecurie france
CREATE TABLE table_28190534_1 (chassis VARCHAR, entrant VARCHAR)
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
What was Head Coach Jim Morris's best finish?
CREATE TABLE table_name_25 (cws_best_finish VARCHAR, head_coach VARCHAR)
SELECT years FROM table_name_31 WHERE name = "asashio"
What are asashio's years?
CREATE TABLE table_name_31 (years VARCHAR, name VARCHAR)
SELECT COUNT(latin_americans_2001) FROM table_1939405_2 WHERE province = "Yukon"
How many results of the count of Latin Americans in Yukon in 2001 are there?
CREATE TABLE table_1939405_2 (latin_americans_2001 VARCHAR, province VARCHAR)
SELECT COUNT(pick) FROM table_name_96 WHERE position = "offensive guard" AND player = "reggie mckenzie" AND round > 2
Which Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2?
CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR)
SELECT MAX(sellouts) FROM table_name_89 WHERE year = 2008 AND total_for_year < 161 OFFSET 369
What is the maximum sellouts for the 2008 year, with less than 161,369 total for year?
CREATE TABLE table_name_89 (sellouts INTEGER, year VARCHAR, total_for_year VARCHAR)
SELECT AVG(earnings___) AS $__ FROM table_name_96 WHERE country = "united states" AND wins < 2 AND rank > 3
What is the average earnings of the player from the United States with a win smaller than 2 and a rank larger than 3?
CREATE TABLE table_name_96 (earnings___ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR)
SELECT Name FROM people WHERE NOT People_id IN (SELECT Affirmative FROM debate_people)
List the names of people that have not been on the affirmative side of debates.
CREATE TABLE debate_people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR); CREATE TABLE people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR)
SELECT yards FROM table_name_74 WHERE attempts = "247"
Which Yards has a Attempts of 247
CREATE TABLE table_name_74 (yards VARCHAR, attempts VARCHAR)
SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = "$54,086" AND population < 231 OFFSET 236
What is the most households with a median household income of $54,086 with less than 231,236 in population?
CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
SELECT party FROM table_1342198_18 WHERE district = "Louisiana 2"
who athe party where district is louisiana 2?
CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR)
SELECT city FROM table_name_75 WHERE title = "the night of the living duck"
In which city was the Night of the Living Duck released?
CREATE TABLE table_name_75 (city VARCHAR, title VARCHAR)
SELECT pick FROM table_name_96 WHERE hometown_school = "concordia college"
What number pick was the player with the hometown school of concordia college?
CREATE TABLE table_name_96 (pick VARCHAR, hometown_school VARCHAR)
SELECT est FROM table_23685890_2 WHERE land_area__km²_ = "4563"
On what year was the local government area with a surface of 4563 square kilometers established?
CREATE TABLE table_23685890_2 (est VARCHAR, land_area__km²_ VARCHAR)
SELECT brazil_scorers FROM table_name_11 WHERE score = "3-3"
Who were the Brazil scorers who scored 3-3?
CREATE TABLE table_name_11 (brazil_scorers VARCHAR, score VARCHAR)
SELECT drawn FROM table_27293285_4 WHERE lost = "5" AND tries_for = "89"
Name the drawn for lost being 5 and tries for 89
CREATE TABLE table_27293285_4 (drawn VARCHAR, lost VARCHAR, tries_for VARCHAR)
SELECT MIN(goals_against) FROM table_name_29 WHERE goal_difference = 7 AND losses > 13
Name the least goals for goal difference of 7 and losses more than 13
CREATE TABLE table_name_29 (goals_against INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT country FROM table_name_5 WHERE place = "t7" AND score = 73 - 69 - 73 = 215
Name Country which has a Place of t7, and a Score of 73-69-73=215?
CREATE TABLE table_name_5 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT winner FROM table_20462111_1 WHERE date = "30.11.2008"
Who won the cup on 30.11.2008?
CREATE TABLE table_20462111_1 (winner VARCHAR, date VARCHAR)
SELECT venue FROM table_name_22 WHERE result = "draw"
Which venues resulted in a draw?
CREATE TABLE table_name_22 (venue VARCHAR, result VARCHAR)
SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = "Kagoshima"
What was the year of previous participation for the school in the Kagoshima prefecture?
CREATE TABLE table_2518850_4 (year_of_previous_participation VARCHAR, prefecture VARCHAR)
SELECT COUNT(winners) FROM table_name_31 WHERE years_won = "1983"
What is the sum of winners when 1983 is the years won?
CREATE TABLE table_name_31 (winners VARCHAR, years_won VARCHAR)
SELECT college FROM table_name_7 WHERE overall > 211 AND position = "db" AND name = "carl charon"
Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?
CREATE TABLE table_name_7 (college VARCHAR, name VARCHAR, overall VARCHAR, position VARCHAR)
SELECT no_5 FROM table_name_16 WHERE no_9 = "michael" AND region__year_ = "new hampshire (2010)"
What is No. 5, when No. 9 is Michael, and when Region (Year) is New Hampshire (2010)?
CREATE TABLE table_name_16 (no_5 VARCHAR, no_9 VARCHAR, region__year_ VARCHAR)
SELECT term_start FROM table_name_45 WHERE political_party = "progressive party"
What is the Term Start date of the Progressive Party Prime Minister?
CREATE TABLE table_name_45 (term_start VARCHAR, political_party VARCHAR)
SELECT fa_cup_goals FROM table_name_78 WHERE total > 16 AND league_cup_goals = "1" AND club = "norwich city"
What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club?
CREATE TABLE table_name_78 (fa_cup_goals VARCHAR, club VARCHAR, total VARCHAR, league_cup_goals VARCHAR)
SELECT marplan FROM table_name_55 WHERE gallup = "1.5%"
What is Marplan, when Gallup is 1.5%
CREATE TABLE table_name_55 (marplan VARCHAR, gallup VARCHAR)
SELECT MAX(goals_against) FROM table_name_74 WHERE club = "pontevedra cf" AND played < 38
What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less than 38?
CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR)
SELECT COUNT(dates) FROM table_1628792_1 WHERE margin_of_victory = "5 strokes"
Name the dates for margin of victory being 5 strokes
CREATE TABLE table_1628792_1 (dates VARCHAR, margin_of_victory VARCHAR)
SELECT SUM(1979) FROM table_name_51 WHERE reservation = "standing rock indian reservation" AND 1989 < 54.9
What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9?
CREATE TABLE table_name_51 (reservation VARCHAR)
SELECT manager FROM table_name_54 WHERE current_club = "atlético baleares"
What is the name of the manager of the Atlético Baleares?
CREATE TABLE table_name_54 (manager VARCHAR, current_club VARCHAR)
SELECT organization FROM table_2538117_12 WHERE founding_date = "1998-11-08"
What organization had the founding date of 1998-11-08?
CREATE TABLE table_2538117_12 (organization VARCHAR, founding_date VARCHAR)
SELECT voltage FROM table_name_71 WHERE l2_cache = "2 × 256 kb" AND turbo = "5/8"
What is the voltage when the L2 cache is 2 × 256 kb and the turbo is 5/8?
CREATE TABLE table_name_71 (voltage VARCHAR, l2_cache VARCHAR, turbo VARCHAR)
SELECT record FROM table_name_65 WHERE date = "august 31"
Name the record for august 31
CREATE TABLE table_name_65 (record VARCHAR, date VARCHAR)
SELECT name, member_id FROM member WHERE Membership_card = 'Black' OR age < 30
Find the ids and names of members who are under age 30 or with black membership card.
CREATE TABLE member (name VARCHAR, member_id VARCHAR, Membership_card VARCHAR, age VARCHAR)
SELECT attendance FROM table_name_43 WHERE week = 7
What was the attendance at the week 7 game?
CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR)
SELECT tournament FROM table_name_78 WHERE outcome = "winner" AND opponents = "eddie dibbs harold solomon"
What Tournament has an Outcome of winner, and Opponents of eddie dibbs harold solomon?
CREATE TABLE table_name_78 (tournament VARCHAR, outcome VARCHAR, opponents VARCHAR)
SELECT date_of_vacancy FROM table_11190568_7 WHERE outgoing_manager = "Damien Fox"
When are the vacancy dates for outgoing manager Damien Fox?
CREATE TABLE table_11190568_7 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT AVG(founded) FROM table_name_68 WHERE enrollment = 4 OFFSET 000
What is the average Founded, when Enrollment is 4,000?
CREATE TABLE table_name_68 (founded INTEGER, enrollment VARCHAR)
SELECT winning_score FROM table_name_29 WHERE margin_of_victory = "5 strokes" AND date = "6 sep 2009"
What was the Winning score when the Margin of victory is 5 strokes and the Date was 6 Sep 2009?
CREATE TABLE table_name_29 (winning_score VARCHAR, margin_of_victory VARCHAR, date VARCHAR)
SELECT country FROM table_name_60 WHERE youth__15_24__literacy_rate_total = "100%" AND adult_women = "92%"
Which country has a Youth (15-24) Literacy Rate Total of 100% and has an Adult Women Literacy rate of 92%?
CREATE TABLE table_name_60 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, adult_women VARCHAR)
SELECT player FROM table_name_1 WHERE round > 5 AND position = "(g)"
Which Player has a Round larger than 5, and a Position of (g)?
CREATE TABLE table_name_1 (player VARCHAR, round VARCHAR, position VARCHAR)
SELECT constituency FROM table_22753245_1 WHERE runner_up_a = "D. Venugopal"
Who is the constituency when the runner-up was d. Venugopal?
CREATE TABLE table_22753245_1 (constituency VARCHAR, runner_up_a VARCHAR)
SELECT COUNT(forfeits) FROM table_name_84 WHERE wins < 8 AND losses > 16
How many Forfeits have Wins smaller than 8, and Losses larger than 16?
CREATE TABLE table_name_84 (forfeits VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT opponent FROM table_name_64 WHERE round = "17"
who was the opponent with round 17?
CREATE TABLE table_name_64 (opponent VARCHAR, round VARCHAR)
SELECT mnz_fea FROM table_name_73 WHERE sil_spr = "18"
What was the MNZ FEA when the SIL SPR was 18?
CREATE TABLE table_name_73 (mnz_fea VARCHAR, sil_spr VARCHAR)
SELECT surface FROM table_name_56 WHERE tournament = "pune"
What kind of surface was the tournament at Pune played on?
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR)
SELECT MIN(played) FROM table_14911550_5
How many games were played?
CREATE TABLE table_14911550_5 (played INTEGER)
SELECT name_of_administrative_unit FROM table_14465924_1 WHERE population__people_ = 3464
Name the name of administrative unit for 3464 people
CREATE TABLE table_14465924_1 (name_of_administrative_unit VARCHAR, population__people_ VARCHAR)
SELECT division FROM table_name_27 WHERE position = "4th"
In what division did they place 4th?
CREATE TABLE table_name_27 (division VARCHAR, position VARCHAR)
SELECT player FROM table_11677691_3 WHERE hometown = "Abilene, Texas"
What player's hometown is Abilene, Texas?
CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR)
SELECT original_title FROM table_20124413_3 WHERE production_code = "3.19"
What was the original title of 3.19?
CREATE TABLE table_20124413_3 (original_title VARCHAR, production_code VARCHAR)
SELECT COUNT(insurgents) FROM table_21636599_1 WHERE period = "2003"
How many insurgents have 2003 as a period?
CREATE TABLE table_21636599_1 (insurgents VARCHAR, period VARCHAR)
SELECT submitting_country FROM table_12842068_1 WHERE film_title_used_in_nomination = "The Orphanage"
What country submitted the movie the orphanage?
CREATE TABLE table_12842068_1 (submitting_country VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT frequency FROM table_134987_3 WHERE format = "Christian KAWZ-FM translator"
What is the frequency for the Christian Kawz-fm Translator station?
CREATE TABLE table_134987_3 (frequency VARCHAR, format VARCHAR)
SELECT date FROM table_27700530_10 WHERE record = "18–12"
What is the date where the record was 18–12?
CREATE TABLE table_27700530_10 (date VARCHAR, record VARCHAR)
SELECT tournament FROM table_name_93 WHERE 2006 = "a" AND 2009 = "a"
What is Tournament, when 2006 is "A", and when 2009 is "A"?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT position_in_table FROM table_name_21 WHERE replaced_by = "sergio bueno"
What is Position in Table, when Replaced By is "Sergio Bueno"?
CREATE TABLE table_name_21 (position_in_table VARCHAR, replaced_by VARCHAR)
SELECT tournament FROM table_name_57 WHERE date = "9 jun 2002"
Which tournament was held on 9 Jun 2002?
CREATE TABLE table_name_57 (tournament VARCHAR, date VARCHAR)
SELECT sprint_classification FROM table_25055040_22 WHERE youth_classification = "Peter Sagan" AND most_courageous = "Thomas Rabou"
When Peter Sagan won the youth classification and Thomas Rabou won the most corageous, who won the sprint classification?
CREATE TABLE table_25055040_22 (sprint_classification VARCHAR, youth_classification VARCHAR, most_courageous VARCHAR)
SELECT record FROM table_name_58 WHERE week > 7 AND attenmdance = "28,161"
What was the team's record after week 7 with 28,161 attending?
CREATE TABLE table_name_58 (record VARCHAR, week VARCHAR, attenmdance VARCHAR)
SELECT maximum_seating_capacity FROM table_name_91 WHERE arena_venue = "san agustin gym"
What is the maximum capacity of the San Agustin Gym?
CREATE TABLE table_name_91 (maximum_seating_capacity VARCHAR, arena_venue VARCHAR)
SELECT position FROM table_name_85 WHERE level = "tier 4" AND season < 2003
What Position has a Level of tier 4 with a Season smaller than 2003?
CREATE TABLE table_name_85 (position VARCHAR, level VARCHAR, season VARCHAR)
SELECT date FROM table_name_78 WHERE athlete = "elvir krehmic"
What was the date that Elvir Krehmic made a high jump record?
CREATE TABLE table_name_78 (date VARCHAR, athlete VARCHAR)
SELECT MIN(wins) FROM table_name_51 WHERE cuts_made > 4 AND top_5 < 1
What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1?
CREATE TABLE table_name_51 (wins INTEGER, cuts_made VARCHAR, top_5 VARCHAR)
SELECT title FROM table_name_37 WHERE length = "3:43"
Which title is 3:43 long?
CREATE TABLE table_name_37 (title VARCHAR, length VARCHAR)
SELECT quantity FROM table_name_65 WHERE model = "pg-2901"
What is the Quantity of the engine Model PG-2901?
CREATE TABLE table_name_65 (quantity VARCHAR, model VARCHAR)
SELECT chassis FROM table_name_34 WHERE entrant = "ecurie lutetia"
I want the chassis for entrant of ecurie lutetia
CREATE TABLE table_name_34 (chassis VARCHAR, entrant VARCHAR)
SELECT MAX(round) FROM table_name_63 WHERE pick > 179
Which Round has a Pick larger than 179?
CREATE TABLE table_name_63 (round INTEGER, pick INTEGER)
SELECT COUNT(time) FROM table_26842217_18 WHERE visiting_team = "UAB"
Name the number of time for uab
CREATE TABLE table_26842217_18 (time VARCHAR, visiting_team VARCHAR)
SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.0
What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?
CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT type FROM table_name_14 WHERE name = "edson ratinho"
Which Type has a Name of edson ratinho?
CREATE TABLE table_name_14 (type VARCHAR, name VARCHAR)
SELECT home FROM table_name_3 WHERE visitor = "montreal canadiens" AND record = "0-3"
What team did the Montreal Canadiens visit when the record was 0-3?
CREATE TABLE table_name_3 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT AVG(year) FROM table_name_66 WHERE start = "14"
Which Year has a Start of 14?
CREATE TABLE table_name_66 (year INTEGER, start VARCHAR)
SELECT fate FROM table_name_44 WHERE date = "27 june 1942"
What was the fate on 27 june 1942?
CREATE TABLE table_name_44 (fate VARCHAR, date VARCHAR)