answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT first_member FROM table_name_79 WHERE election = "1868"
Who is the first member in the 1868 election?
CREATE TABLE table_name_79 (first_member VARCHAR, election VARCHAR)
SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = "4:3" AND hours = "20:30" AND days_of_the_week = "monday, wednesday, friday"
Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?
CREATE TABLE table_name_23 (time_of_broadcast VARCHAR, days_of_the_week VARCHAR, picture_format VARCHAR, hours VARCHAR)
SELECT surface FROM table_name_84 WHERE championship = "australian open (1)"
What surface was the Australian Open (1) played on?
CREATE TABLE table_name_84 (surface VARCHAR, championship VARCHAR)
SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "Munu Adhi (2) K. Rajaram"
If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?
CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)
SELECT january_15_16 FROM table_25355392_2 WHERE november_3 = "153"
What is january 15-16 when november 3 is 153?
CREATE TABLE table_25355392_2 (january_15_16 VARCHAR, november_3 VARCHAR)
SELECT COUNT(reg_gp) FROM table_name_35 WHERE player = "mattias ohlund"
How many reg GP for mattias ohlund?
CREATE TABLE table_name_35 (reg_gp VARCHAR, player VARCHAR)
SELECT candidates FROM table_1341738_6 WHERE incumbent = "Don Edwards"
Who were the candidates in the election that featured incumbent don edwards?
CREATE TABLE table_1341738_6 (candidates VARCHAR, incumbent VARCHAR)
SELECT away_team FROM table_name_36 WHERE venue = "lake oval"
Who was the away team at Lake Oval?
CREATE TABLE table_name_36 (away_team VARCHAR, venue VARCHAR)
SELECT high_points FROM table_27755603_10 WHERE date = "March 25"
What were the high points on March 25?
CREATE TABLE table_27755603_10 (high_points VARCHAR, date VARCHAR)
SELECT driver FROM table_name_95 WHERE grid = 18
What driver shows grid as 18?
CREATE TABLE table_name_95 (driver VARCHAR, grid VARCHAR)
SELECT party FROM table_1341423_40 WHERE district = "South Carolina 4"
what is the party for the district south carolina 4?
CREATE TABLE table_1341423_40 (party VARCHAR, district VARCHAR)
SELECT county FROM table_22665117_1 WHERE district_name = "Charyl Stockwell Academy"
If the name of the district is the Charyl Stockwell Academy, what is the county name?
CREATE TABLE table_22665117_1 (county VARCHAR, district_name VARCHAR)
SELECT player FROM table_28628309_6 WHERE totals = "105-161"
Who was the player when totals were 105-161?
CREATE TABLE table_28628309_6 (player VARCHAR, totals VARCHAR)
SELECT original_language FROM table_2512935_8 WHERE book_series = "Little House on the Prairie"
What is every original language for book series Little House on the Prairie?
CREATE TABLE table_2512935_8 (original_language VARCHAR, book_series VARCHAR)
SELECT COUNT(*) FROM dependent WHERE sex = 'F'
how many female dependents are there?
CREATE TABLE dependent (sex VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_39 WHERE population__2011_ = "2,107"
The population is 2,107's dominant religion is?
CREATE TABLE table_2562572_39 (dominant_religion__2002_ VARCHAR, population__2011_ VARCHAR)
SELECT mission FROM table_name_8 WHERE name = "david scott"
David Scott went on which mission?
CREATE TABLE table_name_8 (mission VARCHAR, name VARCHAR)
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE barangay = "Bulac"
How many people lived in bulac in the year 2000?
CREATE TABLE table_2004733_2 (population__2000_ INTEGER, barangay VARCHAR)
SELECT local_authority, services FROM station
list the local authorities and services provided by all stations.
CREATE TABLE station (local_authority VARCHAR, services VARCHAR)
SELECT year FROM table_2308381_2 WHERE starts = 15
Name the year for 15 starts
CREATE TABLE table_2308381_2 (year VARCHAR, starts VARCHAR)
SELECT catalog__number FROM table_name_36 WHERE region = "united kingdom"
What is the catalog number of the album whose region is the United Kingdom?
CREATE TABLE table_name_36 (catalog__number VARCHAR, region VARCHAR)
SELECT tournament FROM table_name_23 WHERE outcome = "winner" AND surface = "clay" AND score = "6–4, 6–1"
Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1?
CREATE TABLE table_name_23 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach"
Name the date for hard surface and tournament of fort walton beach
CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT name FROM station WHERE NOT station_id IN (SELECT station_id FROM train_station)
Show station names without any trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (name VARCHAR, station_id VARCHAR)
SELECT lineup FROM table_name_43 WHERE assist_pass = "carli lloyd" AND competition = "2010 concacaf world cup qualifying – group stage"
Name the Lineup that has an Assist/pass of carli lloyd,a Competition of 2010 concacaf world cup qualifying – group stage?
CREATE TABLE table_name_43 (lineup VARCHAR, assist_pass VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005
Which venue resulted in 2nd before 2005?
CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR)
SELECT score FROM table_name_19 WHERE visitor = "ny rangers" AND record = "19–28–15"
Which Score has a Visitor of ny rangers, and a Record of 19–28–15?
CREATE TABLE table_name_19 (score VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT place FROM table_name_66 WHERE money___£__ = "140,000" AND score = 68 - 68 - 75 - 68 = 279
What is the place of the player with £140,000 and a 68-68-75-68=279 score?
CREATE TABLE table_name_66 (place VARCHAR, money___£__ VARCHAR, score VARCHAR)
SELECT MIN(losses) FROM table_name_64 WHERE club = "south warrnambool" AND wins > 8
When South warrnambool has more than 8 wins, what is the least amount of losses?
CREATE TABLE table_name_64 (losses INTEGER, club VARCHAR, wins VARCHAR)
SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73"
What points for have 30 as the game, and 73 as the total points?
CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR)
SELECT genre FROM table_name_7 WHERE artist = "prince"
What is the Genre when the Artist is Prince?
CREATE TABLE table_name_7 (genre VARCHAR, artist VARCHAR)
SELECT copa_libertadores_1999 FROM table_name_23 WHERE copa_conmebol_1999 = "did not qualify" AND team = "grêmio"
What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?
CREATE TABLE table_name_23 (copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR, team VARCHAR)
SELECT height FROM table_name_43 WHERE player = "mike bibby"
Which Height has a Player of mike bibby?
CREATE TABLE table_name_43 (height VARCHAR, player VARCHAR)
SELECT length FROM table_name_88 WHERE track = "16"
What is the lengtho f track 16?
CREATE TABLE table_name_88 (length VARCHAR, track VARCHAR)
SELECT method FROM table_name_72 WHERE opponent = "sergei bondarovich" AND record = "2–0"
Opponent of sergei bondarovich, and a Record of 2–0 had what method?
CREATE TABLE table_name_72 (method VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT date_motor_gear_fitted FROM table_2030453_1 WHERE lms_1946_no = 1901
When was the motor gear of the LMS 1946 no. 1901 model fitted?
CREATE TABLE table_2030453_1 (date_motor_gear_fitted VARCHAR, lms_1946_no VARCHAR)
SELECT weapon FROM table_100518_1 WHERE consort = "Śacī"
What weapon is used by the guardian whose consort is śacī?
CREATE TABLE table_100518_1 (weapon VARCHAR, consort VARCHAR)
SELECT MAX(pick) FROM table_name_31 WHERE player = "jason webb"
What pick was play Jason Webb?
CREATE TABLE table_name_31 (pick INTEGER, player VARCHAR)
SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 25
Who was teh rider with 18 laps and a grid of 25?
CREATE TABLE table_name_43 (rider VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport"
What was the recorded flaps of HBR Motorsport team?
CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR)
SELECT competition FROM table_name_33 WHERE score = "0-1" AND opponents = "pkns fc"
Which Competition has a Score of 0-1, and Opponents of pkns fc?
CREATE TABLE table_name_33 (competition VARCHAR, score VARCHAR, opponents VARCHAR)
SELECT name FROM table_name_30 WHERE year = "1957"
What actor made a film in 1957?
CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR)
SELECT tonnage_grt FROM table_name_40 WHERE ship = "author"
what is the tonnage grt of the ship author?
CREATE TABLE table_name_40 (tonnage_grt VARCHAR, ship VARCHAR)
SELECT MAX(_number_s_dam_and_gnis_query_link) FROM table_18760137_2 WHERE borough_or_census_area = "Fairbanks North Star"
Name the most numbers dam and gnis query link for borough or census area for fairbanks north star
CREATE TABLE table_18760137_2 (_number_s_dam_and_gnis_query_link INTEGER, borough_or_census_area VARCHAR)
SELECT opponent FROM table_name_44 WHERE res = "win" AND time = "1:10"
Which Opponent had a Win as Res and a Time of 1:10?
CREATE TABLE table_name_44 (opponent VARCHAR, res VARCHAR, time VARCHAR)
SELECT premiere FROM table_name_30 WHERE rank = "#7"
When was the premiere of the show that had a rank of #7?
CREATE TABLE table_name_30 (premiere VARCHAR, rank VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE record = "11-11-1" AND november > 29
What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR, november VARCHAR)
SELECT nationality FROM table_name_98 WHERE time = "2:07.64"
What Nationality's time is 2:07.64?
CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR)
SELECT AVG(car__number) FROM table_name_93 WHERE make = "toyota" AND pos = 7
Which Car # has a Make of toyota, and a Pos of 7?
CREATE TABLE table_name_93 (car__number INTEGER, make VARCHAR, pos VARCHAR)
SELECT nationality FROM table_name_26 WHERE distance = "500m" AND year < 2012 AND record = "1:37.071s"
Which nationality's distance was 500m before 2012, when the record was 1:37.071s?
CREATE TABLE table_name_26 (nationality VARCHAR, record VARCHAR, distance VARCHAR, year VARCHAR)
SELECT MAX(games) FROM table_name_76 WHERE rank > 3 AND rebounds = 112
Which game has more than 112 rebounds and a rank greater than 3?
CREATE TABLE table_name_76 (games INTEGER, rank VARCHAR, rebounds VARCHAR)
SELECT status FROM table_name_57 WHERE floors > 28 AND year = 2013
What is the status of the building with more than 28 floor and a year of 2013?
CREATE TABLE table_name_57 (status VARCHAR, floors VARCHAR, year VARCHAR)
SELECT distance FROM table_name_99 WHERE course = "olbia to sassari"
How far is the olbia to sassari route?
CREATE TABLE table_name_99 (distance VARCHAR, course VARCHAR)
SELECT decision FROM table_name_10 WHERE record = "31-43-2"
For the game ending with a record of 31-43-2, what was the decision?
CREATE TABLE table_name_10 (decision VARCHAR, record VARCHAR)
SELECT location FROM table_name_5 WHERE event = "fury fc 4: high voltage"
Where was the Fury FC 4: High Voltage event held?
CREATE TABLE table_name_5 (location VARCHAR, event VARCHAR)
SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson"
What is the average round of the match with kevin manderson as the opponent?
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)
SELECT COUNT(car_no) FROM table_17319931_1 WHERE time_retired = "+4.0019"
How many car numbers were recorded when the time/retired is +4.0019?
CREATE TABLE table_17319931_1 (car_no VARCHAR, time_retired VARCHAR)
SELECT Official_Name FROM city ORDER BY Population DESC
List official names of cities in descending order of population.
CREATE TABLE city (Official_Name VARCHAR, Population VARCHAR)
SELECT team FROM table_name_83 WHERE high_assists = "nelson (5)"
Name the team with high assists of nelson (5)
CREATE TABLE table_name_83 (team VARCHAR, high_assists VARCHAR)
SELECT COUNT(number_of_dances) FROM table_23662272_4 WHERE average = "22.3"
What is the number of dances total number if the average is 22.3?
CREATE TABLE table_23662272_4 (number_of_dances VARCHAR, average VARCHAR)
SELECT T2.name, AVG(T1.stars) FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID GROUP BY T2.name
What is the average rating star for each reviewer?
CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (stars INTEGER, rID VARCHAR)
SELECT class FROM table_name_84 WHERE quantity < 10 AND number_s_ = "names"
Which class has fewer than 10 and number(s) names?
CREATE TABLE table_name_84 (class VARCHAR, quantity VARCHAR, number_s_ VARCHAR)
SELECT MAX(played) FROM table_name_59 WHERE lost < 12 AND name = "ec amberg (n)" AND position < 4
What is the most elevated Played that has a Lost smaller than 12, and a Name of ec amberg (n), and a Position smaller than 4?
CREATE TABLE table_name_59 (played INTEGER, position VARCHAR, lost VARCHAR, name VARCHAR)
SELECT MAX(division) FROM table_name_74 WHERE playoffs = "no playoff" AND reg_season = "12th"
Which division has no playoff but has a 12th game in their season?
CREATE TABLE table_name_74 (division INTEGER, playoffs VARCHAR, reg_season VARCHAR)
SELECT game_site FROM table_14875671_1 WHERE opponent = "Buffalo Bills"
What was the site of the game against Buffalo Bills ?
CREATE TABLE table_14875671_1 (game_site VARCHAR, opponent VARCHAR)
SELECT MAX(afc_titles) FROM table_1952065_4 WHERE teams_with_division_titles = "Cleveland Browns"
How many afc titles did the Cleveland Browns have?
CREATE TABLE table_1952065_4 (afc_titles INTEGER, teams_with_division_titles VARCHAR)
SELECT ship_type FROM table_name_77 WHERE name = "shinano"
What type of ship was the Shinano?
CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR)
SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 5
What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5?
CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR)
SELECT finalist FROM table_name_20 WHERE tournament = "monte carlo"
Which Finalist has a Tournament of monte carlo?
CREATE TABLE table_name_20 (finalist VARCHAR, tournament VARCHAR)
SELECT MIN(silver) FROM table_name_34 WHERE bronze < 0
What is the smallest silver that has a bronze less than 0?
CREATE TABLE table_name_34 (silver INTEGER, bronze INTEGER)
SELECT home_team FROM table_name_50 WHERE away_team = "north melbourne"
What home team played North Melbourne?
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_64 WHERE to_par = "+1" AND player = "anders forsbrand"
What is Anders Forsbrand's score with a to par of +1?
CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT format FROM table_name_48 WHERE year > 2000 AND label = "myuzyk" AND catalog_number = "mzykn08"
Tell me the format with year more than 2000 and label of myuzyk with catalog number of mzykn08
CREATE TABLE table_name_48 (format VARCHAR, catalog_number VARCHAR, year VARCHAR, label VARCHAR)
SELECT MAX(drawn) FROM table_name_80 WHERE games < 6
What are the highest number of games drawn for games numbered under 6?
CREATE TABLE table_name_80 (drawn INTEGER, games INTEGER)
SELECT AVG(year) FROM table_name_89 WHERE chassis = "brabham bt46 bt48 bt49"
What year was the brabham bt46 bt48 bt49 Chassis common?
CREATE TABLE table_name_89 (year INTEGER, chassis VARCHAR)
SELECT margin_of_victory FROM table_1569625_1 WHERE no = 15
Name the margin of victory when the number is 15
CREATE TABLE table_1569625_1 (margin_of_victory VARCHAR, no VARCHAR)
SELECT fastest_lap FROM table_11056278_3 WHERE winning_driver = "Max Papis"
Who had the fastest lap in the races won by Max Papis?
CREATE TABLE table_11056278_3 (fastest_lap VARCHAR, winning_driver VARCHAR)
SELECT city_of_license FROM table_name_3 WHERE channels_tv___rf = "36 (psip) 36 (uhf)"
Which City of license has a Channels TV / RF of 36 (psip) 36 (uhf)? Question 5
CREATE TABLE table_name_3 (city_of_license VARCHAR, channels_tv___rf VARCHAR)
SELECT SUM(amount) FROM payment
What is the total amount of all payments?
CREATE TABLE payment (amount INTEGER)
SELECT AVG(drawn) FROM table_name_21 WHERE played > 42
What average drawn has a played greater than 42?
CREATE TABLE table_name_21 (drawn INTEGER, played INTEGER)
SELECT COUNT(date_of_polls) FROM table_15329030_1 WHERE state = "Madhya Pradesh"
How many dates of polls occur in the Madhya Pradesh state?
CREATE TABLE table_15329030_1 (date_of_polls VARCHAR, state VARCHAR)
SELECT mountain_peak FROM table_name_74 WHERE location = "53.1370°n 119.2667°w"
what is the mountain peak when the location is 53.1370°n 119.2667°w?
CREATE TABLE table_name_74 (mountain_peak VARCHAR, location VARCHAR)
SELECT DISTINCT T2.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age < (SELECT AVG(age) FROM person)
Who has friends that are younger than the average age?
CREATE TABLE person (age INTEGER); CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
SELECT COUNT(semi_finalist__number2) FROM table_11214772_1 WHERE runner_up = "East Carolina"
what is the total number of semi-finalist #2 where runner-up is east carolina
CREATE TABLE table_11214772_1 (semi_finalist__number2 VARCHAR, runner_up VARCHAR)
SELECT AVG(inhabitants) FROM table_name_36 WHERE party = "south tyrolean people's party" AND municipality = "bruneck" AND election > 2010
Which Inhabitants has a Party of south tyrolean people's party, a Municipality of bruneck, and an Election larger than 2010?
CREATE TABLE table_name_36 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR)
SELECT MIN(points) FROM table_name_8 WHERE place > 10
Which places have points larger than 10?
CREATE TABLE table_name_8 (points INTEGER, place INTEGER)
SELECT syracuse FROM table_name_90 WHERE buffalo = "oatka creek shale" AND albany = "berne"
What is Syracuse, when Buffalo is Oatka Creek Shale, and when Albany is Berne?
CREATE TABLE table_name_90 (syracuse VARCHAR, buffalo VARCHAR, albany VARCHAR)
SELECT number_of_cpus FROM table_name_59 WHERE memory__gb_ = "0.5–16"
Which Number of CPUs has a Memory (GB) of 0.5–16?
CREATE TABLE table_name_59 (number_of_cpus VARCHAR, memory__gb_ VARCHAR)
SELECT SUM(crowd) FROM table_name_98 WHERE ground = "westpac stadium"
What was the total crowd attendance at Westpac Stadium?
CREATE TABLE table_name_98 (crowd INTEGER, ground VARCHAR)
SELECT MAX(bronze) FROM table_name_65 WHERE silver > 41
Which country has the highest bronze amount and a silver amount bigger than 41?
CREATE TABLE table_name_65 (bronze INTEGER, silver INTEGER)
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)"
How many leage apperances for the player with one FA cup, and a FLT Apps of 0 (1)?
CREATE TABLE table_name_61 (league_apps VARCHAR, fa_cup_apps VARCHAR, flt_apps VARCHAR)
SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani"
what is the qual 1 for alex tagliani?
CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR)
SELECT format FROM table_name_98 WHERE code = "pro-cd-4662"
What is the format of code pro-cd-4662?
CREATE TABLE table_name_98 (format VARCHAR, code VARCHAR)
SELECT MIN(goal_s_) FROM table_28286776_12 WHERE club_s_ = "Ipswich Town"
How many goals did the player from Ipswich town score?
CREATE TABLE table_28286776_12 (goal_s_ INTEGER, club_s_ VARCHAR)
SELECT fa_cup_apps FROM table_name_73 WHERE total_goals < 4 AND league_cup_goals = 0 AND league_apps = "8 (10)"
What is the FA Cup Apps when total goals is smaller than 4, League Cup Goals is 0, and League Apps is 8 (10)?
CREATE TABLE table_name_73 (fa_cup_apps VARCHAR, league_apps VARCHAR, total_goals VARCHAR, league_cup_goals VARCHAR)
SELECT us_air_date FROM table_30012404_4 WHERE directed_by = "Ken Girotti"
What is the US air date when the director is ken girotti?
CREATE TABLE table_30012404_4 (us_air_date VARCHAR, directed_by VARCHAR)
SELECT rank FROM table_name_33 WHERE finish = "25"
What rank has a 25 finish?
CREATE TABLE table_name_33 (rank VARCHAR, finish VARCHAR)
SELECT municipality FROM table_24115349_6 WHERE coakley_votes = 754
What municipality had 754 votes for coakley?
CREATE TABLE table_24115349_6 (municipality VARCHAR, coakley_votes VARCHAR)
SELECT catalogue FROM table_name_53 WHERE region = "australia"
Name the catalogue for australia
CREATE TABLE table_name_53 (catalogue VARCHAR, region VARCHAR)
SELECT place FROM table_name_63 WHERE score = 69 - 70 - 72 = 211
what country has a score of 69-70-72=211?
CREATE TABLE table_name_63 (place VARCHAR, score VARCHAR)