answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MIN(term_ending) FROM table_name_54 WHERE position = "member" AND tenure_began = 2010 AND name = "xue hanqin"
Position of member, and a Tenure Began of 2010, and a Name of xue hanqin has what lowest term ending?
CREATE TABLE table_name_54 (term_ending INTEGER, name VARCHAR, position VARCHAR, tenure_began VARCHAR)
SELECT chassis FROM table_name_5 WHERE points = 13 AND year = 1975 AND entrant = "scuderia citta del mille"
Can you tell me the Chassis that has the Points of 13, and the Year of 1975, and the Entrant of scuderia citta del mille?
CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR, points VARCHAR, year VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_22 WHERE cyrillic_name_other_names = "Станишић"
Name the dominant religion for станишић
CREATE TABLE table_2562572_22 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT opponent_in_the_final FROM table_name_68 WHERE date = "february 2, 2004"
What is the Opponent in the final of the game on february 2, 2004?
CREATE TABLE table_name_68 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT quarterfinalists FROM table_29302816_8 WHERE runner_up = "Andrew Pattison"
What are the quarterfinalists when the runner up is andrew pattison?
CREATE TABLE table_29302816_8 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula"
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?
CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT segment_d FROM table_15187735_1 WHERE segment_b = "Jeans"
What was segment D when segment B was jeans?
CREATE TABLE table_15187735_1 (segment_d VARCHAR, segment_b VARCHAR)
SELECT score FROM table_22669044_10 WHERE record = "31-29"
What's the score of the game with 31-29 record?
CREATE TABLE table_22669044_10 (score VARCHAR, record VARCHAR)
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "$126,796"
The person who had $126,796 WSOP earnings had how many WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT WINNING_SONG(English AS Title) FROM table_name_65 WHERE winning_song = "aku tetap milikmu"
Which winning song was sung by aku tetap milikmu?
CREATE TABLE table_name_65 (English VARCHAR, winning_song VARCHAR)
SELECT programming FROM table_name_98 WHERE aspect = "4:3" AND psip_short_name = "metvla"
Which Programming has an Aspect of 4:3 and a PSIP Short Name of metvla?
CREATE TABLE table_name_98 (programming VARCHAR, aspect VARCHAR, psip_short_name VARCHAR)
SELECT record FROM table_name_68 WHERE game = 43
What was the record of Game 43?
CREATE TABLE table_name_68 (record VARCHAR, game VARCHAR)
SELECT runner_up FROM table_2429942_2 WHERE season = "2008-09"
Who is the runner-up for the season 2008-09?
CREATE TABLE table_2429942_2 (runner_up VARCHAR, season VARCHAR)
SELECT civil_parish FROM table_28802165_1 WHERE townland = "Aghafullim"
What is the civil parish of Aghafullim?
CREATE TABLE table_28802165_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT 2009 FROM table_name_84 WHERE 2011 = "1r" AND 2007 = "a"
What is the 2009 result when 2011 is 1R and 2007 is A?
CREATE TABLE table_name_84 (Id VARCHAR)
SELECT represents FROM table_26301697_2 WHERE hometown = "Los Alcarrizos"
Name the represents for los alcarrizos
CREATE TABLE table_26301697_2 (represents VARCHAR, hometown VARCHAR)
SELECT date FROM table_name_97 WHERE type = "mi-10r" AND record_description = "altitude with kg (lb) payload" AND pilot = "g.v. alfyorov"
Type of mi-10r, and a Record description of altitude with kg (lb) payload, and a Pilot of g.v. alfyorov is what date?
CREATE TABLE table_name_97 (date VARCHAR, pilot VARCHAR, type VARCHAR, record_description VARCHAR)
SELECT name FROM table_name_86 WHERE bullet = "10.57 (.416)" AND base = "14.96 (.589)"
Which Name has a Bullett of 10.57 (.416) and a Base of 14.96 (.589)?
CREATE TABLE table_name_86 (name VARCHAR, bullet VARCHAR, base VARCHAR)
SELECT MAX(laps) FROM table_17693171_1 WHERE time_retired = "+1 lap"
If the time/retired is +1 lap, what is the amount of maximum laps?
CREATE TABLE table_17693171_1 (laps INTEGER, time_retired VARCHAR)
SELECT us_viewers__in_millions_ FROM table_19188562_2 WHERE season = 1
How many million u.s. Viewers watched season 1?
CREATE TABLE table_19188562_2 (us_viewers__in_millions_ VARCHAR, season VARCHAR)
SELECT opponent FROM table_name_29 WHERE attendance = "7,034"
Which Opponent has a Attendance of 7,034?
CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR)
SELECT theme FROM table_23871828_1 WHERE week__number = "Top 9"
List all themes from the top 9.
CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR)
SELECT original_air_date FROM table_24625467_1 WHERE production_code = "2J5356"
What date did the episode with a production code of 2j5356 originally air?
CREATE TABLE table_24625467_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2010 = "a"
Which 2007 has a 2010 of A?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT school_club_team FROM table_10015132_16 WHERE years_in_toronto = "2003-06"
which club was in toronto 2003-06
CREATE TABLE table_10015132_16 (school_club_team VARCHAR, years_in_toronto VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "afc hornchurch"
What was the score for home team AFC Hornchurch?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = "kawasaki" AND grid < 7
Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller than 7?
CREATE TABLE table_name_88 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
SELECT MIN(floors) FROM table_name_39 WHERE name = "900 north michigan" AND year < 1989
Name of 900 north michigan, and a Year smaller than 1989 involves what lowest floors?
CREATE TABLE table_name_39 (floors INTEGER, name VARCHAR, year VARCHAR)
SELECT MIN(blank_ends) FROM table_1505809_2 WHERE stolen_ends = 7
What is the lowest value of Blank Ends when Stolen Ends is 7.
CREATE TABLE table_1505809_2 (blank_ends INTEGER, stolen_ends VARCHAR)
SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes"
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR)
SELECT name FROM table_name_44 WHERE position = "guard" AND home_town = "cary, nc"
What is the name of the guard from Cary, NC?
CREATE TABLE table_name_44 (name VARCHAR, position VARCHAR, home_town VARCHAR)
SELECT 2 AS nd_leg FROM table_name_96 WHERE team__number2 = "san lorenzo"
What is 2nd Leg, when Team #2 is "San Lorenzo"?
CREATE TABLE table_name_96 (team__number2 VARCHAR)
SELECT home_team FROM table_name_24 WHERE away_team = "hawthorn"
Who was the Away team at Hawthorn?
CREATE TABLE table_name_24 (home_team VARCHAR, away_team VARCHAR)
SELECT premiere FROM table_22951646_1 WHERE number_of_episodes = 8
Name the premiere for 8 episodes
CREATE TABLE table_22951646_1 (premiere VARCHAR, number_of_episodes VARCHAR)
SELECT MAX(week) FROM table_name_91 WHERE attendance = 20 OFFSET 112
Which Week has an Attendance of 20,112?
CREATE TABLE table_name_91 (week INTEGER, attendance VARCHAR)
SELECT AVG(2 AS _vs_3) FROM table_name_52 WHERE total > 38
What is the 2 vs 3 when total is bigger than 38?
CREATE TABLE table_name_52 (total INTEGER)
SELECT name FROM table_19487922_1 WHERE country = "France" AND race_entries__starts_ = "10"
Who is the competitor from France with 10 starts?
CREATE TABLE table_19487922_1 (name VARCHAR, country VARCHAR, race_entries__starts_ VARCHAR)
SELECT pct FROM table_name_84 WHERE total_games < 944
What is the PCT when the total number of games is less than 944?
CREATE TABLE table_name_84 (pct VARCHAR, total_games INTEGER)
SELECT fineness FROM table_name_11 WHERE year = 2008 AND reverse = "chinese cuju sport"
What is the fineness of the 2008 chinese cuju sport Reverse?
CREATE TABLE table_name_11 (fineness VARCHAR, year VARCHAR, reverse VARCHAR)
SELECT score FROM table_name_85 WHERE date = "february 5"
What is Score, when Date is February 5?
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE away_team = "essendon"
What is the away team score when the away team is Essendon?
CREATE TABLE table_name_16 (away_team VARCHAR)
SELECT team FROM table_27712702_7 WHERE date = "November 15"
Which team played on November 15?
CREATE TABLE table_27712702_7 (team VARCHAR, date VARCHAR)
SELECT COUNT(wins) FROM table_name_90 WHERE position > 6 AND conceded < 19
What is the number of wins when position was larger than 6, and conceded was smaller than 19?
CREATE TABLE table_name_90 (wins VARCHAR, position VARCHAR, conceded VARCHAR)
SELECT 1 AS st_leg FROM table_name_5 WHERE team__number2 = "junior"
What is the 1st leg with a junior team #2?
CREATE TABLE table_name_5 (team__number2 VARCHAR)
SELECT MAX(year) FROM table_name_60 WHERE number_in_entourage = "99" AND mission_type = "gratitude"
What is the latest year of a gratitude type mission with 99 in the entourage?
CREATE TABLE table_name_60 (year INTEGER, number_in_entourage VARCHAR, mission_type VARCHAR)
SELECT COUNT(high_assists) FROM table_13619135_7 WHERE team = "@ Minnesota"
How many people had the high assists @ minnesota?
CREATE TABLE table_13619135_7 (high_assists VARCHAR, team VARCHAR)
SELECT written_by FROM table_2226817_4 WHERE original_air_date = "April 9, 1989"
Name who wrote the episode that aired april 9, 1989
CREATE TABLE table_2226817_4 (written_by VARCHAR, original_air_date VARCHAR)
SELECT COUNT(colonel) FROM table_29458735_5 WHERE county = "Pope"
in how many of the arkansas colomel the county was pope
CREATE TABLE table_29458735_5 (colonel VARCHAR, county VARCHAR)
SELECT MAX(top_5) FROM table_name_97 WHERE wins > 1
what is the highest top-5 when wins is more than 1?
CREATE TABLE table_name_97 (top_5 INTEGER, wins INTEGER)
SELECT name FROM table_name_70 WHERE app_gs_sub_ = "14 (8/6)"
Tell what has the App(GS/Sub) of 14 (8/6)
CREATE TABLE table_name_70 (name VARCHAR, app_gs_sub_ VARCHAR)
SELECT set_3 FROM table_name_46 WHERE time = "15:04"
What is the score for set 3 with a time at 15:04?
CREATE TABLE table_name_46 (set_3 VARCHAR, time VARCHAR)
SELECT MIN(area__km_2__) FROM table_28741_1 WHERE capital = "Nay Pyi Taw"
How few km 2 does the area with Nay Pyi Taw as capital cover?
CREATE TABLE table_28741_1 (area__km_2__ INTEGER, capital VARCHAR)
SELECT chroma_format FROM table_1376890_2 WHERE scalable_modes = "SNR- or spatial-scalable" AND intra_dc_precision = "8, 9, 10"
what's the chroma format with scalable modes being snr- or spatial-scalable and intra dc precbeingion being 8, 9, 10
CREATE TABLE table_1376890_2 (chroma_format VARCHAR, scalable_modes VARCHAR, intra_dc_precision VARCHAR)
SELECT type FROM table_name_64 WHERE list_entry_number > 1356436 AND name = "albion congregational church"
Which type has a list entry number more than 1356436, named Albion Congregational Church?
CREATE TABLE table_name_64 (type VARCHAR, list_entry_number VARCHAR, name VARCHAR)
SELECT actors_name FROM table_10236830_1 WHERE nomination = "Best Debut"
What was the actor's name for best debut?
CREATE TABLE table_10236830_1 (actors_name VARCHAR, nomination VARCHAR)
SELECT winner FROM table_name_62 WHERE loser = "philadelphia eagles" AND location = "yankee stadium" AND year > 1958
Who was the winner when the Philadelphia eagles were the losers after 1958 at Yankee Stadium?
CREATE TABLE table_name_62 (winner VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR)
SELECT date FROM table_23186738_9 WHERE location_attendance = "Air Canada Centre 18,736"
Name the date for air canada centre 18,736
CREATE TABLE table_23186738_9 (date VARCHAR, location_attendance VARCHAR)
SELECT game_1 FROM table_name_13 WHERE position = "halfback"
What game 1 has halfback as a position?
CREATE TABLE table_name_13 (game_1 VARCHAR, position VARCHAR)
SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193"
What team has jordan 193 chassis after 1990?
CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT Denomination FROM school GROUP BY Denomination HAVING COUNT(*) > 1
Show the denomination shared by more than one school.
CREATE TABLE school (Denomination VARCHAR)
SELECT city FROM table_name_58 WHERE state = "texas" AND venue = "frank erwin center"
Which city in Texas hosts the Frank Erwin center?
CREATE TABLE table_name_58 (city VARCHAR, state VARCHAR, venue VARCHAR)
SELECT location FROM table_name_50 WHERE built = "early 19th century"
What is the Location of the Mill Built in the Early 19th Century?
CREATE TABLE table_name_50 (location VARCHAR, built VARCHAR)
SELECT score FROM table_name_94 WHERE to_par = "+1" AND player = "masashi ozaki"
Which Score has a To par of +1, and a Player of masashi ozaki?
CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT date_released FROM table_name_33 WHERE _number_of_discs > 4
What Date Released, when # Of Discs is greater than 4?
CREATE TABLE table_name_33 (date_released VARCHAR, _number_of_discs INTEGER)
SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist"
What is the total when the score points show Olympic bronze medalist?
CREATE TABLE table_name_50 (total VARCHAR, score_points VARCHAR)
SELECT show FROM table_169766_13 WHERE new_returning_same_network = "Syndication"
Which show was sent to syndication for its new/returning/same network.
CREATE TABLE table_169766_13 (show VARCHAR, new_returning_same_network VARCHAR)
SELECT state FROM table_name_30 WHERE venue = "tsukisamu dome"
Which state has the venue Tsukisamu dome?
CREATE TABLE table_name_30 (state VARCHAR, venue VARCHAR)
SELECT 2012 FROM table_name_65 WHERE 2013 = "2r" AND tournament = "wimbledon"
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon?
CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT part_4 FROM table_name_6 WHERE part_3 = "*heguldun *febungun"
What is the part 4 with *heguldun *febungun in part 3?
CREATE TABLE table_name_6 (part_4 VARCHAR, part_3 VARCHAR)
SELECT state FROM table_name_49 WHERE aam_accredited = "no" AND astc_member = "no" AND city = "tulsa"
What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa?
CREATE TABLE table_name_49 (state VARCHAR, city VARCHAR, aam_accredited VARCHAR, astc_member VARCHAR)
SELECT location_attendance FROM table_name_38 WHERE series = "4-3"
what is the location attendance when the series is 4-3?
CREATE TABLE table_name_38 (location_attendance VARCHAR, series VARCHAR)
SELECT contestant FROM table_21346767_3 WHERE hometown = "Villa Hermosa"
Name the contestant for villa hermosa
CREATE TABLE table_21346767_3 (contestant VARCHAR, hometown VARCHAR)
SELECT pick__number FROM table_name_97 WHERE position = "defensive tackle" AND player = "lorenzo freeman"
What was the pick# for Lorenzo Freeman as defensive tackle?
CREATE TABLE table_name_97 (pick__number VARCHAR, position VARCHAR, player VARCHAR)
SELECT SUM(her_age) FROM table_name_84 WHERE his_age < 33 AND name = "diontha walker" AND _number_of_children < 0
What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?
CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)
SELECT date FROM table_name_43 WHERE eliminated = "final night"
On what date was elimination on final night?
CREATE TABLE table_name_43 (date VARCHAR, eliminated VARCHAR)
SELECT pick__number FROM table_26996293_2 WHERE college = "St. Francis Xavier"
where college is st. francis xavier what are all the pick #
CREATE TABLE table_26996293_2 (pick__number VARCHAR, college VARCHAR)
SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15
Name the gdp world rank for asian rank being 15
CREATE TABLE table_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR)
SELECT date FROM table_name_54 WHERE results¹ = "3:2"
What day were the results 3:2?
CREATE TABLE table_name_54 (date VARCHAR, results¹ VARCHAR)
SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle"
How many rounds were there an offensive tackle position?
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR)
SELECT venue FROM table_name_48 WHERE season = "1907"
What was the venue of season 1907?
CREATE TABLE table_name_48 (venue VARCHAR, season VARCHAR)
SELECT score FROM table_name_97 WHERE date = "march 18"
What is the score on March 18?
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
SELECT COUNT(silver) FROM table_name_43 WHERE gold > 2 AND bronze < 35 AND nation = "china" AND total > 26
How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26?
CREATE TABLE table_name_43 (silver VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT COUNT(pick) FROM table_name_31 WHERE player = "jay bruchak"
How many picks did Jay Bruchak have?
CREATE TABLE table_name_31 (pick VARCHAR, player VARCHAR)
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
CREATE TABLE table_name_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)
SELECT name_of_ship FROM table_name_64 WHERE date = "20february1942"
What is the Name of the Ship attacked on 20February1942?
CREATE TABLE table_name_64 (name_of_ship VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_23 WHERE away_team = "st kilda"
What is the home team's score when st kilda is away?
CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(rank) FROM table_name_76 WHERE gross = "$26,010,864"
What was the film that grossed $26,010,864 ranked?
CREATE TABLE table_name_76 (rank INTEGER, gross VARCHAR)
SELECT visitor FROM table_name_26 WHERE date = "december 25"
What is the Visitor of the game on December 25?
CREATE TABLE table_name_26 (visitor VARCHAR, date VARCHAR)
SELECT SUM(draws) FROM table_name_82 WHERE position < 17 AND wins < 11
Name the sum of draws when the position is less than 17 and wins is less than 11
CREATE TABLE table_name_82 (draws INTEGER, position VARCHAR, wins VARCHAR)
SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris"
What are the ids of the movies that are not reviewed by Brittany Harris.
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
SELECT to_par FROM table_name_15 WHERE score = 68 - 66 = 134
What To par has a Score of 68-66=134?
CREATE TABLE table_name_15 (to_par VARCHAR, score VARCHAR)
SELECT name FROM table_name_6 WHERE current_status = "demolished" AND line = "shepparton line" AND location = "tabilk"
What is the name of the station that is currently demolished with the Shepparton line in Tabilk?
CREATE TABLE table_name_6 (name VARCHAR, location VARCHAR, current_status VARCHAR, line VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE crowd > 32 OFFSET 576
Who was the home team at the game with a crowd larger than 32,576?
CREATE TABLE table_name_20 (home_team VARCHAR, crowd INTEGER)
SELECT designation FROM table_name_37 WHERE launch_weight = "11.3kg"
What designation has a launch weight of 11.3kg?
CREATE TABLE table_name_37 (designation VARCHAR, launch_weight VARCHAR)
SELECT SUM(rank) FROM table_name_2 WHERE gold < 0
What's the total Rank that has a Gold that's smaller than 0?
CREATE TABLE table_name_2 (rank INTEGER, gold INTEGER)
SELECT original_air_date FROM table_14035132_3 WHERE no_in_season = "10b"
When did the episode with season number 10b air for the first time?
CREATE TABLE table_14035132_3 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT season FROM table_14609295_4 WHERE overall = "24-10"
What season was the overall record 24-10?
CREATE TABLE table_14609295_4 (season VARCHAR, overall VARCHAR)
SELECT SUM(annual_ridership__2012_) FROM table_name_52 WHERE stations = 13 AND lines > 4
What is the number of annual ridership with a station that has more than 13 stations and larger than 4 lines?
CREATE TABLE table_name_52 (annual_ridership__2012_ INTEGER, stations VARCHAR, lines VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_11 WHERE to_par < 2
What is the highest Money ( $ ), when To Par is less than 2?
CREATE TABLE table_name_11 (money___ INTEGER, to_par INTEGER)
SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = "le haut-saint-laurent" AND region > 16
What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?
CREATE TABLE table_name_14 (code INTEGER, regional_county_municipality VARCHAR, region VARCHAR)