answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT leading_scorer FROM table_name_61 WHERE date = "20 november 2007"
Who is the leading scorer of the game on 20 November 2007?
CREATE TABLE table_name_61 (leading_scorer VARCHAR, date VARCHAR)
SELECT number_of_believers FROM table_24613895_1 WHERE name_of_village = "Khosrowa"
Name the number of believers for khosrowa
CREATE TABLE table_24613895_1 (number_of_believers VARCHAR, name_of_village VARCHAR)
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE directed_by = "Wendey Stanzler"
What season was an episode directed by wendey stanzler?
CREATE TABLE table_25716399_1 (no_in_season INTEGER, directed_by VARCHAR)
SELECT director FROM table_25800134_19 WHERE series__number = 626
Who directed episode number 626 in the series?
CREATE TABLE table_25800134_19 (director VARCHAR, series__number VARCHAR)
SELECT published FROM table_2950964_1 WHERE audiobook_narrator = "Michael Maloney"
What is the publication date of the book that is narrated by Michael Maloney?
CREATE TABLE table_2950964_1 (published VARCHAR, audiobook_narrator VARCHAR)
SELECT identifier FROM table_name_26 WHERE city_of_license = "terrace bay"
What is Identifier, when City of License is Terrace Bay?
CREATE TABLE table_name_26 (identifier VARCHAR, city_of_license VARCHAR)
SELECT COUNT(crowd) FROM table_name_21 WHERE away_team = "footscray"
What was the crowd size for the game where Footscray was the away team?
CREATE TABLE table_name_21 (crowd VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_55 WHERE country = "australia"
What is the score of Australia?
CREATE TABLE table_name_55 (score VARCHAR, country VARCHAR)
SELECT MIN(total) FROM table_name_35 WHERE nation = "lithuania" AND silver > 0
What is the total that wehn Lithuania is the nation, and Silver is more than 0?
CREATE TABLE table_name_35 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MAX(against) FROM table_name_86 WHERE team = "palmeiras" AND position < 4
What is the highest against value for Palmeiras and position less than 4?
CREATE TABLE table_name_86 (against INTEGER, team VARCHAR, position VARCHAR)
SELECT COUNT(gold) FROM table_name_80 WHERE nation = "australia"
How many total gold medals did Australia receive?
CREATE TABLE table_name_80 (gold VARCHAR, nation VARCHAR)
SELECT circuit FROM table_name_58 WHERE winning_driver = "luigi villoresi" AND name = "lausanne grand prix"
What circuit did Luigi Villoresi win the Lausanne Grand Prix?
CREATE TABLE table_name_58 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR)
SELECT MIN(touchdowns) FROM table_14342480_6
Name the fewest touchdowns
CREATE TABLE table_14342480_6 (touchdowns INTEGER)
SELECT place FROM table_name_73 WHERE player = "john cook"
What is the place of player john cook?
CREATE TABLE table_name_73 (place VARCHAR, player VARCHAR)
SELECT title, director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1
What is the title and director for the movie with highest worldwide gross in the year 2000 or before?
CREATE TABLE movie (title VARCHAR, director VARCHAR, YEAR VARCHAR, gross_worldwide VARCHAR)
SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special"
How many votes did Jeannemarie Devolites Davis get in 1995-Special?
CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)
SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1
What is the most common birth place of people?
CREATE TABLE people (Birth_Place VARCHAR)
SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1
What is the city_code of the city that the most students live in?
CREATE TABLE STUDENT (city_code VARCHAR)
SELECT MAX(finish) FROM table_name_17 WHERE manufacturer = "dodge" AND start < 9 AND year < 2008
Before 2008, if the Manufacturer is dodge and the start is under 9, what's the highest finish time?
CREATE TABLE table_name_17 (finish INTEGER, year VARCHAR, manufacturer VARCHAR, start VARCHAR)
SELECT home FROM table_name_16 WHERE visitor = "ny rangers"
What is the home team with the ny rangers as the visitor team?
CREATE TABLE table_name_16 (home VARCHAR, visitor VARCHAR)
SELECT method FROM table_name_86 WHERE time = "5:00" AND round > 4
What is the method when the time was 5:00, and the round higher than 4?
CREATE TABLE table_name_86 (method VARCHAR, time VARCHAR, round VARCHAR)
SELECT surface FROM table_name_83 WHERE opponent = "bethanie mattek-sands"
What was the surface of the match against bethanie mattek-sands?
CREATE TABLE table_name_83 (surface VARCHAR, opponent VARCHAR)
SELECT written_by FROM table_20538157_2 WHERE no_in_season = 20
Who were the writers of episode 20?
CREATE TABLE table_20538157_2 (written_by VARCHAR, no_in_season VARCHAR)
SELECT COUNT(office) FROM table_1331313_1 WHERE department = "department of Justice Kagawaran ng Katarungan"
how many office with department being department of justice kagawaran ng katarungan
CREATE TABLE table_1331313_1 (office VARCHAR, department 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 zodiac_sign FROM table_20354_7 WHERE malayalam_name = "കന്നി"
Name the zodiac for കന്നി
CREATE TABLE table_20354_7 (zodiac_sign VARCHAR, malayalam_name VARCHAR)
SELECT MAX(area__acres__) FROM table_30121082_1 WHERE poor_law_union = "Skibbereen" AND civil_parish = "Tullagh"
What is the greatest area when the Poor Law Union is Skibbereen and the Civil Parish is Tullagh?
CREATE TABLE table_30121082_1 (area__acres__ INTEGER, poor_law_union VARCHAR, civil_parish VARCHAR)
SELECT city, GDP FROM city ORDER BY GDP LIMIT 1
Which city has the lowest GDP? Please list the city name and its GDP.
CREATE TABLE city (city VARCHAR, GDP VARCHAR)
SELECT home_team FROM table_name_21 WHERE away_team = "luton town"
Who was the home team in the match against Luton Town?
CREATE TABLE table_name_21 (home_team VARCHAR, away_team VARCHAR)
SELECT MIN(geo_id) FROM table_18600760_15
what is the lowest geo id?
CREATE TABLE table_18600760_15 (geo_id INTEGER)
SELECT game FROM table_name_59 WHERE date = "april 30"
What is the playoff Game on April 30?
CREATE TABLE table_name_59 (game VARCHAR, date VARCHAR)
SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "hawthorn"
What was the attendance of the Hawthorn as the away team?
CREATE TABLE table_name_92 (crowd INTEGER, away_team VARCHAR)
SELECT score FROM table_name_94 WHERE competition = "bernardo o'higgins cup" AND date = "may 7, 1961"
What was the score at Bernardo O'Higgins Cup on May 7, 1961?
CREATE TABLE table_name_94 (score VARCHAR, competition VARCHAR, date VARCHAR)
SELECT lead FROM table_name_81 WHERE home = "lockerbie"
Who is the lead of the team from Lockerbie?
CREATE TABLE table_name_81 (lead VARCHAR, home VARCHAR)
SELECT serial_no FROM table_name_90 WHERE entered_service = "november 1984" AND owner = "chicago freight car leasing australia"
What is the Serial number of the Locomotive that Entered Service in November 1984 and has an Owner of Chicago Freight Car Leasing Australia?
CREATE TABLE table_name_90 (serial_no VARCHAR, entered_service VARCHAR, owner VARCHAR)
SELECT AVG(casualties) FROM table_name_5 WHERE number = "u-844"
What is the average number of casualties for the convoy with a number of U-844?
CREATE TABLE table_name_5 (casualties INTEGER, number VARCHAR)
SELECT time_retired FROM table_name_2 WHERE grid > 16 AND driver = "nelson philippe"
When Nelson Philippe drove with a grid larger than 16, what was the timre/retired?
CREATE TABLE table_name_2 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT location_attendance FROM table_17080868_7 WHERE team = "Indiana"
What was the attendance of the Indiana game?
CREATE TABLE table_17080868_7 (location_attendance VARCHAR, team VARCHAR)
SELECT catalogue FROM table_name_94 WHERE release_date = "9/21/71" AND time = "3:17"
What is the catalogue number for the song that is 3:17 and was released 9/21/71?
CREATE TABLE table_name_94 (catalogue VARCHAR, release_date VARCHAR, time VARCHAR)
SELECT location_of_venue FROM table_224616_1 WHERE venue = "Bellerive country Club"
Where is the Bellerive Country Club venue located?
CREATE TABLE table_224616_1 (location_of_venue VARCHAR, venue VARCHAR)
SELECT teams FROM table_28606933_7 WHERE consecutive_starts = 120
What team(s) had 120 consecutive starts?
CREATE TABLE table_28606933_7 (teams VARCHAR, consecutive_starts VARCHAR)
SELECT club FROM table_name_3 WHERE captain = "ledley king"
In which club is Ledley King a captain?
CREATE TABLE table_name_3 (club VARCHAR, captain VARCHAR)
SELECT score FROM table_name_29 WHERE player = "greg norman"
WHAT IS THE SCORE FOR GREG NORMAN?
CREATE TABLE table_name_29 (score VARCHAR, player VARCHAR)
SELECT Adults FROM Reservations WHERE CheckIn = "2010-10-23" AND FirstName = "CONRAD" AND LastName = "SELBIG"
How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?
CREATE TABLE Reservations (Adults VARCHAR, LastName VARCHAR, CheckIn VARCHAR, FirstName VARCHAR)
SELECT AVG(total) FROM table_name_47 WHERE bronze < 0
How many Total medals did the Nation the got 0 Bronze medals receive?
CREATE TABLE table_name_47 (total INTEGER, bronze INTEGER)
SELECT time FROM table_name_65 WHERE laps = 23 AND grid = 13
How long did it take to ride when the laps were 23 and the grid of 13?
CREATE TABLE table_name_65 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT race_2 FROM table_name_5 WHERE driver = "paul radisich"
What is Race 2, when Driver is "Paul Radisich"?
CREATE TABLE table_name_5 (race_2 VARCHAR, driver VARCHAR)
SELECT player FROM table_name_57 WHERE wnba_team = "chicago sky"
What player was chosen for the Chicago Sky?
CREATE TABLE table_name_57 (player VARCHAR, wnba_team VARCHAR)
SELECT voltage FROM table_name_92 WHERE release_date = "june 2001" AND frequency = "1.13ghz"
what is the voltage when release date is june 2001 and frequency is 1.13ghz?
CREATE TABLE table_name_92 (voltage VARCHAR, release_date VARCHAR, frequency VARCHAR)
SELECT mix_artist FROM table_23649244_1 WHERE artist_1 = "Tears for Fears" AND artist_2 = "Eric Prydz"
Who are thebmix artists when tears for fears is artist 1 and eric prydz is artist 2?
CREATE TABLE table_23649244_1 (mix_artist VARCHAR, artist_1 VARCHAR, artist_2 VARCHAR)
SELECT round FROM table_name_31 WHERE against = "greece"
What was the round when nueza silva played against greece?
CREATE TABLE table_name_31 (round VARCHAR, against VARCHAR)
SELECT SUM(lost) FROM table_name_2 WHERE points > 8 AND difference = "- 8" AND position > 5
What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?
CREATE TABLE table_name_2 (lost INTEGER, position VARCHAR, points VARCHAR, difference VARCHAR)
SELECT SUM(crowd) FROM table_name_77 WHERE away_team = "essendon"
How many people watch Essendon as an away team?
CREATE TABLE table_name_77 (crowd INTEGER, away_team VARCHAR)
SELECT title FROM table_12564633_1 WHERE season__number = 15
What is the name of Season #15?
CREATE TABLE table_12564633_1 (title VARCHAR, season__number VARCHAR)
SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0
What is the smallest Wins with a Position of 20th, and Poles smaller than 0?
CREATE TABLE table_name_19 (wins INTEGER, position VARCHAR, poles VARCHAR)
SELECT MIN(rank) FROM table_name_37 WHERE player = "hale irwin" AND wins < 32
What is the low rank for hale irwin with under 32 wins?
CREATE TABLE table_name_37 (rank INTEGER, player VARCHAR, wins VARCHAR)
SELECT COUNT(round) FROM table_name_7 WHERE record = "1-5"
How many rounds in the event when record is 1-5?
CREATE TABLE table_name_7 (round VARCHAR, record VARCHAR)
SELECT engine FROM table_20866024_2 WHERE gvw__kg_ton_ = "2500/2.46" AND model_designation = "97G00"
What's the engine for the model model designation 97G00 and GVW of 2500/2.46 kg/ton?
CREATE TABLE table_20866024_2 (engine VARCHAR, gvw__kg_ton_ VARCHAR, model_designation VARCHAR)
SELECT class FROM table_name_31 WHERE frequency = "91.9 fm"
Which class has a frequency of 91.9 fm?
CREATE TABLE table_name_31 (class VARCHAR, frequency VARCHAR)
SELECT date FROM table_name_31 WHERE loss = "schilling (5–2)"
Name the date for Loss of schilling (5–2)
CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR)
SELECT COUNT(loss) FROM table_name_15 WHERE long < 24 AND gain > 116
WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?
CREATE TABLE table_name_15 (loss VARCHAR, long VARCHAR, gain VARCHAR)
SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'
What is the membership card held by both members living in Hartford and ones living in Waterbury address?
CREATE TABLE member (membership_card VARCHAR, address VARCHAR)
SELECT date FROM table_name_2 WHERE away_team = "gillingham"
What is Date, when Away Team is "Gillingham"?
CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR)
SELECT play_off FROM table_19412902_1 WHERE group_stage = 4 AND clubs = 12
what is the play-off in group stage 4 and clubs is 12
CREATE TABLE table_19412902_1 (play_off VARCHAR, group_stage VARCHAR, clubs VARCHAR)
SELECT player FROM table_name_81 WHERE score = 71 - 69 - 71 - 67 = 278
Which player has a score of 71-69-71-67=278?
CREATE TABLE table_name_81 (player VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_9 WHERE score = "2–6 6–4 [10–8]"
Which Tournament has a score of 2–6 6–4 [10–8]?
CREATE TABLE table_name_9 (tournament VARCHAR, score VARCHAR)
SELECT chassis FROM table_name_58 WHERE points = 0
Which Chassis has 0 points?
CREATE TABLE table_name_58 (chassis VARCHAR, points VARCHAR)
SELECT COUNT(chromosomal_location) FROM table_29871617_1 WHERE family_name = "IL-1F8"
How many different chromosomal locations are there in the family il-1f8?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, family_name VARCHAR)
SELECT year FROM table_name_48 WHERE team = "simon" AND start = "3"
When was there a team of Simon and the start was 3?
CREATE TABLE table_name_48 (year VARCHAR, team VARCHAR, start VARCHAR)
SELECT high_points FROM table_17118657_10 WHERE score = "62-70"
If the score is 62-70, what are the high points?
CREATE TABLE table_17118657_10 (high_points VARCHAR, score VARCHAR)
SELECT s_sikh FROM table_14598_5 WHERE buddhist = "955"
What is the number of s sikh where 955 is the number of buddhists?
CREATE TABLE table_14598_5 (s_sikh VARCHAR, buddhist VARCHAR)
SELECT away_team FROM table_name_76 WHERE home_team = "ashington"
Who is the away team against the home team Ashington?
CREATE TABLE table_name_76 (away_team VARCHAR, home_team VARCHAR)
SELECT date_made FROM table_name_69 WHERE names = "blacklion glencar"
What is the date of the locomotive named Blacklion Glencar?
CREATE TABLE table_name_69 (date_made VARCHAR, names VARCHAR)
SELECT MIN(date_commissioned) FROM table_name_69 WHERE material = "iron" AND ship = "rmsrhone" AND gross_tonnage < 2 OFFSET 738
Tell me the lowest date commissioned for iron rmsrhone and gross tonnage less than 2,738
CREATE TABLE table_name_69 (date_commissioned INTEGER, gross_tonnage VARCHAR, material VARCHAR, ship VARCHAR)
SELECT attendance FROM table_name_79 WHERE opponent = "cincinnati bengals"
What was the attendance when the Cincinnati Bengals were the opponents?
CREATE TABLE table_name_79 (attendance VARCHAR, opponent VARCHAR)
SELECT city FROM city ORDER BY regional_population DESC LIMIT 3
Which three cities have the largest regional population?
CREATE TABLE city (city VARCHAR, regional_population VARCHAR)
SELECT original_airdate FROM table_25691838_6 WHERE episode__number = 733
What was the original airdate of episode #733?
CREATE TABLE table_25691838_6 (original_airdate VARCHAR, episode__number VARCHAR)
SELECT COUNT(date) FROM table_21269143_1 WHERE round = "26"
Name the total number of date for round 26
CREATE TABLE table_21269143_1 (date VARCHAR, round VARCHAR)
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/2008"
What CERCLIS ID is Deleted of 04/07/2008?
CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR)
SELECT decision FROM table_name_22 WHERE visitor = "phoenix"
What is the decision when they're at phoenix?
CREATE TABLE table_name_22 (decision VARCHAR, visitor VARCHAR)
SELECT AVG(spectators) FROM table_name_60 WHERE round = "group h"
What are the average spectators from the Group H Round?
CREATE TABLE table_name_60 (spectators INTEGER, round VARCHAR)
SELECT week FROM table_name_77 WHERE result = "w 23–22"
Which Week has a Result of w 23–22?
CREATE TABLE table_name_77 (week VARCHAR, result VARCHAR)
SELECT date FROM table_name_58 WHERE visiting_team = "los angeles rams" AND year < 1958
What date was the visiting team of Los Angeles Rams, earlier than 1958?
CREATE TABLE table_name_58 (date VARCHAR, visiting_team VARCHAR, year VARCHAR)
SELECT other_performer_s_ FROM table_name_4 WHERE director_s_ = "melina matsoukas" AND album = "loud"
On the album titled “Loud” who was the other performer on the song directed by Melina Matsoukas?
CREATE TABLE table_name_4 (other_performer_s_ VARCHAR, director_s_ VARCHAR, album VARCHAR)
SELECT clubname FROM club
What are the names of all clubs?
CREATE TABLE club (clubname VARCHAR)
SELECT total FROM table_name_5 WHERE silver = "0" AND competitors = "31"
What was the Total the Year Yugoslavia had 0 Silver medals and 31 Competitors?
CREATE TABLE table_name_5 (total VARCHAR, silver VARCHAR, competitors VARCHAR)
SELECT COUNT(position) FROM table_name_51 WHERE played < 46
What is the total number of Position, when Played is less than 46?
CREATE TABLE table_name_51 (position VARCHAR, played INTEGER)
SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men"
What was the result of the Top 12 Men theme?
CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR)
SELECT turbine_manufacturer FROM table_24837750_1 WHERE county = "Wheatland"
Who was the turbine manufacturer for the Wheatland county?
CREATE TABLE table_24837750_1 (turbine_manufacturer VARCHAR, county VARCHAR)
SELECT COUNT(deadline_for_completion) FROM table_12078626_1 WHERE description = "Facebook becomes a publicly traded company"
what is the total number of deadline for completion where description is facebook becomes a publicly traded company
CREATE TABLE table_12078626_1 (deadline_for_completion VARCHAR, description VARCHAR)
SELECT city FROM table_name_62 WHERE home_arena = "target center"
Which city includes the Target Center arena?
CREATE TABLE table_name_62 (city VARCHAR, home_arena VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE passenger_change = "+32,9%"
What is the year that saw a passenger change of +32,9%?
CREATE TABLE table_name_53 (year VARCHAR, passenger_change VARCHAR)
SELECT visitor FROM table_name_15 WHERE date = "november 27"
what visitor came on november 27
CREATE TABLE table_name_15 (visitor VARCHAR, date VARCHAR)
SELECT awardee_s_ FROM table_25926120_3 WHERE name_of_award = "Best Actor"
Who won best actor?
CREATE TABLE table_25926120_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009"
What is the region 4 release that has july 20, 2009 as the region 2?
CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR)
SELECT mens_singles FROM table_14903999_1 WHERE mens_doubles = "Sveinn Logi Sölvason Tryggvi Nilsen" AND womens_singles = "Elsa Nielsen"
Who won mens singles the year sveinn logi sölvason tryggvi nilsen won mens doubles and elsa nielsen won womens singles
CREATE TABLE table_14903999_1 (mens_singles VARCHAR, mens_doubles VARCHAR, womens_singles VARCHAR)
SELECT MIN(draws) FROM table_name_27 WHERE wins < 12 AND played < 30
What is the lowest amount of draws with less than 12 wins and less than 30 played?
CREATE TABLE table_name_27 (draws INTEGER, wins VARCHAR, played VARCHAR)
SELECT result FROM table_name_54 WHERE venue = "praterstadion, vienna" AND competition = "euro 1980 qualifier"
Tell me the score of praterstadion, vienna, and competition of euro 1980 qualifier
CREATE TABLE table_name_54 (result VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham"
What year was republican, re-elected incumbent John all barham elected?
CREATE TABLE table_name_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR)
SELECT province FROM table_27369069_1 WHERE founded = 2005
which providence's soccer stadium was founded in 2005?
CREATE TABLE table_27369069_1 (province VARCHAR, founded VARCHAR)