answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_9 WHERE record = "55-24"
Name the date with record of 55-24
CREATE TABLE table_name_9 (date VARCHAR, record VARCHAR)
SELECT MIN(no) FROM table_10015132_21 WHERE years_in_toronto = "1998-2001"
What number is the player that played 1998-2001
CREATE TABLE table_10015132_21 (no INTEGER, years_in_toronto VARCHAR)
SELECT championship FROM table_name_88 WHERE winning_score = (77 - 76 - 74 - 73 = 300)
Which championship has a winning score of (77-76-74-73=300)?
CREATE TABLE table_name_88 (championship VARCHAR, winning_score VARCHAR)
SELECT opponent FROM table_16776312_3 WHERE date = "12 May 2008"
Name the opponent for 12 may 2008
CREATE TABLE table_16776312_3 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Elles"
How many languages have elles as the film title used in nomination?
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT college FROM table_1004033_1 WHERE team = "Columbus Crew"
What college did the Rookie of the Year from the Columbus Crew attend?
CREATE TABLE table_1004033_1 (college VARCHAR, team VARCHAR)
SELECT year FROM table_name_50 WHERE record = "9–1" AND tournament_champion = "duke"
When has a Record of 9–1, and a Tournament Champion of duke?
CREATE TABLE table_name_50 (year VARCHAR, record VARCHAR, tournament_champion VARCHAR)
SELECT moving_parts FROM table_name_74 WHERE technology = "lead-acid"
What are the moving parts of lead-acid?
CREATE TABLE table_name_74 (moving_parts VARCHAR, technology VARCHAR)
SELECT award FROM table_name_21 WHERE category = "best actress"
For what award was there a nomination for Best Actress?
CREATE TABLE table_name_21 (award VARCHAR, category VARCHAR)
SELECT partner FROM table_name_61 WHERE outcome = "runner-up" AND tournament = "mons, belgium"
Which partners were runner-up in the tournament in Mons, Belgium?
CREATE TABLE table_name_61 (partner VARCHAR, outcome VARCHAR, tournament VARCHAR)
SELECT name FROM table_name_68 WHERE headquarters = "the netherlands"
what is the name of the netherlands head quarters
CREATE TABLE table_name_68 (name VARCHAR, headquarters VARCHAR)
SELECT league FROM table_1986692_1 WHERE open_cup = "Final"
When final is the open cup what is the league?
CREATE TABLE table_1986692_1 (league VARCHAR, open_cup VARCHAR)
SELECT round FROM table_name_36 WHERE event = "nle - capital city carnage"
Which Round has an Event of nle - capital city carnage?
CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR)
SELECT winning_score FROM table_name_90 WHERE year = 1965
What is the Winning score in 1965?
CREATE TABLE table_name_90 (winning_score VARCHAR, year VARCHAR)
SELECT kicks FROM table_name_40 WHERE goals = "1"
Name the kicks with goals of 1
CREATE TABLE table_name_40 (kicks VARCHAR, goals VARCHAR)
SELECT as_of_september_1, _2012 FROM table_name_61 WHERE vs_all = "65.47%"
What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?
CREATE TABLE table_name_61 (as_of_september_1 VARCHAR, _2012 VARCHAR, vs_all VARCHAR)
SELECT batting_style FROM table_name_57 WHERE player = "heath streak"
Name the batting style for heath streak
CREATE TABLE table_name_57 (batting_style VARCHAR, player VARCHAR)
SELECT most_recent_date FROM table_18676973_3 WHERE country = "United Kingdom"
When united kingdom is the country what is the most recent date?
CREATE TABLE table_18676973_3 (most_recent_date VARCHAR, country VARCHAR)
SELECT status FROM table_name_32 WHERE official_name = "saint-basile"
Saint-Basile has what status?
CREATE TABLE table_name_32 (status VARCHAR, official_name VARCHAR)
SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?
CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)
SELECT date FROM table_name_26 WHERE result = "w 27-24 (ot)"
When was the game with a result of w 27-24 (ot)?
CREATE TABLE table_name_26 (date VARCHAR, result VARCHAR)
SELECT geographic_character FROM table_name_69 WHERE population__2010_ > 2539 AND urban_rural = "rural" AND population__2007_ = 2572
WHAT IS THE TYPE OF LAND WITH A 2010 POPULATION GREATER THAN 2539, A RURAL AREA, AND A 2007 POPULATION OF 2572?
CREATE TABLE table_name_69 (geographic_character VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR, urban_rural VARCHAR)
SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
what is the title when the citation is honor and the narrator is lincoln hoppe?
CREATE TABLE table_name_94 (title VARCHAR, citation VARCHAR, narrator VARCHAR)
SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
which train number arrives in lonavla at 17:45
CREATE TABLE table_29301050_1 (train_number VARCHAR, arrival_lonavla VARCHAR)
SELECT ship FROM table_name_91 WHERE built = 2012
What ship was built in 2012?
CREATE TABLE table_name_91 (ship VARCHAR, built VARCHAR)
SELECT COUNT(census_2006_population) FROM table_28891101_3 WHERE administrative_capital = "Eleme"
What is the 2006 censusn population when is the administrative capital is Eleme?
CREATE TABLE table_28891101_3 (census_2006_population VARCHAR, administrative_capital VARCHAR)
SELECT opponent FROM table_name_89 WHERE score = "6-3, 6-3"
Who was the opponent when the score was 6-3, 6-3?
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR)
SELECT SUM(game) FROM table_name_26 WHERE november = 27
what is the game when on november 27?
CREATE TABLE table_name_26 (game INTEGER, november VARCHAR)
SELECT COUNT(grid) FROM table_name_8 WHERE manufacturer = "honda" AND rider = "yuki takahashi" AND laps > 22
How many grids have a Manufacturer of honda, a Rider of yuki takahashi, and more than 22 laps?
CREATE TABLE table_name_8 (grid VARCHAR, laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT MAX(to_par) FROM table_name_66 WHERE year_s__won = "1962 , 1967"
What is the highest To Par, when Year(s) Won is "1962 , 1967"?
CREATE TABLE table_name_66 (to_par INTEGER, year_s__won VARCHAR)
SELECT T2.customer_name FROM mailshot_customers AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE outcome_code = 'Order' GROUP BY T1.customer_id HAVING COUNT(*) >= 2
Show the names of customers who have at least 2 mailshots with outcome code 'Order'.
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR)
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id ORDER BY overall_rating DESC LIMIT 3
Who are the top 3 players in terms of overall rating?
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR)
SELECT score FROM table_name_8 WHERE time = "2:44"
What was the score for the team with a time of 2:44?
CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR)
SELECT video FROM table_name_17 WHERE channel > 56.4
WHich Video has a Channel larger than 56.4?
CREATE TABLE table_name_17 (video VARCHAR, channel INTEGER)
SELECT decision FROM table_name_22 WHERE record = "28-35-1"
For the game that ended with a record of 28-35-1, what was the decision?
CREATE TABLE table_name_22 (decision VARCHAR, record VARCHAR)
SELECT engine FROM table_name_83 WHERE year = 1961
What is the name of the engine in 1961?
CREATE TABLE table_name_83 (engine VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_12 WHERE record = "43-56"
Which is the opponent when the record was 43-56?
CREATE TABLE table_name_12 (opponent VARCHAR, record VARCHAR)
SELECT ended FROM table_name_98 WHERE loan_club = "spartak moscow"
when was the loan ended when the loan club is spartak moscow?
CREATE TABLE table_name_98 (ended VARCHAR, loan_club VARCHAR)
SELECT position FROM table_name_94 WHERE pick = 246
What is pick 246's position?
CREATE TABLE table_name_94 (position VARCHAR, pick VARCHAR)
SELECT date FROM table_name_39 WHERE game = 48
On what day was Game 48 played?
CREATE TABLE table_name_39 (date VARCHAR, game VARCHAR)
SELECT result FROM table_name_45 WHERE award = "virgin media tv awards"
Which Result has an Award of virgin media tv awards?
CREATE TABLE table_name_45 (result VARCHAR, award VARCHAR)
SELECT regular_season FROM table_name_87 WHERE playoffs = "0 mls cups"
Which regular season had the playoffs of 0 mls cups?
CREATE TABLE table_name_87 (regular_season VARCHAR, playoffs VARCHAR)
SELECT location FROM table_11318462_29 WHERE school = "Brisbane Girls' Grammar school"
What is the location of the school named Brisbane Girls' Grammar School?
CREATE TABLE table_11318462_29 (location VARCHAR, school VARCHAR)
SELECT driver FROM table_name_28 WHERE points = 7 AND team = "team australia"
Which driver has 7 points for team Australia?
CREATE TABLE table_name_28 (driver VARCHAR, points VARCHAR, team VARCHAR)
SELECT rank FROM table_name_25 WHERE s_wicket = "65"
What Rank has a 65 s Wicket?
CREATE TABLE table_name_25 (rank VARCHAR, s_wicket VARCHAR)
SELECT date_of_vacancy FROM table_24172157_3 WHERE table = "Pre-season" AND team = "Liverpool"
What is the date of vacancy for the Liverpool team with a table named pre-season?
CREATE TABLE table_24172157_3 (date_of_vacancy VARCHAR, table VARCHAR, team VARCHAR)
SELECT COUNT(caps) FROM table_name_16 WHERE club_province = "munster" AND position = "lock" AND player = "mick o'driscoll"
How many Caps does the Club/province Munster, position of lock and Mick O'Driscoll have?
CREATE TABLE table_name_16 (caps VARCHAR, player VARCHAR, club_province VARCHAR, position VARCHAR)
SELECT COUNT(*) FROM country WHERE continent = "Asia"
how many countries are in Asia?
CREATE TABLE country (continent VARCHAR)
SELECT MIN(miss_air) FROM table_30008638_1
What is the least amount of Miss Airs any country has had?
CREATE TABLE table_30008638_1 (miss_air INTEGER)
SELECT date FROM table_name_76 WHERE catalog = "573 194-2"
What is the Date of Catalog 573 194-2?
CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR)
SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 1
What is the label that has the most albums?
CREATE TABLE albums (label VARCHAR)
SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp"
What was the song choice when the theme was free choice and Adeleye made it through to bootcamp?
CREATE TABLE table_name_26 (song_choice VARCHAR, theme VARCHAR, result VARCHAR)
SELECT high_rebounds FROM table_11961582_10 WHERE date = "April 23"
Who had the high rebounds for the game on april 23?
CREATE TABLE table_11961582_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"
Which Round has a College of arizona?
CREATE TABLE table_name_26 (round INTEGER, college VARCHAR)
SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer"
Name the report for raymond sommer
CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR)
SELECT record FROM table_name_34 WHERE date = "september 14"
what game took place on september 14
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
SELECT mascot FROM table_name_62 WHERE school = "hamilton community"
What is the mascot at Hamilton Community?
CREATE TABLE table_name_62 (mascot VARCHAR, school VARCHAR)
SELECT MIN(year) FROM table_name_77 WHERE host = "luxembourg"
In what year was Luxembourg Host?
CREATE TABLE table_name_77 (year INTEGER, host VARCHAR)
SELECT years_active FROM table_272865_20 WHERE asian_cup_played_as_a_captain = "Qatar 1988"
What were the years active where Asian Cup played as a captain is Qatar 1988?
CREATE TABLE table_272865_20 (years_active VARCHAR, asian_cup_played_as_a_captain VARCHAR)
SELECT MAX(december) FROM table_name_61 WHERE game > 27 AND opponent = "pittsburgh penguins" AND points < 41
What's the highest December against the Pittsburgh Penguins in a game larger than 27, with less than 41 points?
CREATE TABLE table_name_61 (december INTEGER, points VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT opponents FROM table_name_84 WHERE score = "2-1" AND competition = "pl" AND date = "december 22, 2006"
Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents?
CREATE TABLE table_name_84 (opponents VARCHAR, date VARCHAR, score VARCHAR, competition VARCHAR)
SELECT high_rebounds FROM table_23248910_11 WHERE game = 2
What were the amount of rebounds in game 2?
CREATE TABLE table_23248910_11 (high_rebounds VARCHAR, game VARCHAR)
SELECT score FROM table_name_60 WHERE february > 24 AND record = "9-8-2"
Name the score when february is more than 24 and has a record of 9-8-2
CREATE TABLE table_name_60 (score VARCHAR, february VARCHAR, record VARCHAR)
SELECT score_in_the_final FROM table_name_90 WHERE partner = "lindsay lee-waters"
With Lindsay Lee-Waters as a partner, what was the final score?
CREATE TABLE table_name_90 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT MAX(goals_conceded__gc_) FROM table_name_33 WHERE draw__pe_ > 2 AND goals_scored__gf_ > 19
Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19?
CREATE TABLE table_name_33 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR)
SELECT college_junior_club_team FROM table_2886617_8 WHERE player = "Milan Kostolny"
What college team did Milan Kostolny play for?
CREATE TABLE table_2886617_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT date FROM table_name_24 WHERE winner = "tom kite (10)"
What is the date where the winner was Tom Kite (10)?
CREATE TABLE table_name_24 (date VARCHAR, winner VARCHAR)
SELECT player FROM table_name_91 WHERE score = 70 - 73 - 69 = 212
Who had a score of 70-73-69=212?
CREATE TABLE table_name_91 (player VARCHAR, score VARCHAR)
SELECT MIN(bronze) FROM table_name_55 WHERE gold < 0
What's the lowest bronze medal amount that has fewer than 0 gold?
CREATE TABLE table_name_55 (bronze INTEGER, gold INTEGER)
SELECT record FROM table_name_75 WHERE date = "april 10"
What was the record on April 10?
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR)
SELECT customer_email, customer_name FROM customers WHERE payment_method = 'Visa'
List the names and emails of customers who payed by Visa card.
CREATE TABLE customers (customer_email VARCHAR, customer_name VARCHAR, payment_method VARCHAR)
SELECT agg FROM table_name_24 WHERE team__number2 = "2006 uefa intertoto cup"
What is the agg when team #2 is 2006 UEFA Intertoto Cup?
CREATE TABLE table_name_24 (agg VARCHAR, team__number2 VARCHAR)
SELECT MIN(pos) FROM table_14460937_2 WHERE clubs = "16"
what is the minimum pos with clubs being 16
CREATE TABLE table_14460937_2 (pos INTEGER, clubs VARCHAR)
SELECT driver FROM table_name_72 WHERE chassis = "625 553 500"
Who was the driver with chassis 625 553 500?
CREATE TABLE table_name_72 (driver VARCHAR, chassis VARCHAR)
SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
What is the famous release date of the artist with the oldest age?
CREATE TABLE artist (Famous_Release_date VARCHAR, Age VARCHAR)
SELECT championship FROM table_name_8 WHERE opponent_in_the_final = "mario ančić"
Which championship had an oppenent of mario ančić in the final?
CREATE TABLE table_name_8 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT scoring_average FROM table_22081847_1 WHERE year = 2010
If the year is 2010, what was the average score?
CREATE TABLE table_22081847_1 (scoring_average VARCHAR, year VARCHAR)
SELECT T1.FacID, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID
Show the faculty id of each faculty member, along with the number of students he or she advises.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Pottery"
Name the segment c for pottery
CREATE TABLE table_15187735_3 (segment_c VARCHAR, segment_b VARCHAR)
SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = "september 1984"
Which Format has a Catalog of 61298, and a Date of september 1984?
CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT first_leg FROM table_name_16 WHERE round = "quarter-final"
What was the first leg score during the quarter-final game?
CREATE TABLE table_name_16 (first_leg VARCHAR, round VARCHAR)
SELECT SUM(points) FROM table_name_40 WHERE goals_scored < 27 AND goals_conceded = 24 AND lost < 6
How many points are there when they have under 27 goals scored, conceded 24 goals, and lost less than 6 times?
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR)
SELECT directed_by FROM table_25604014_9 WHERE production_code = "1L10"
Name who directed the production code 1l10
CREATE TABLE table_25604014_9 (directed_by VARCHAR, production_code VARCHAR)
SELECT goals FROM table_name_65 WHERE games = "6"
Name the goals with games of 6
CREATE TABLE table_name_65 (goals VARCHAR, games VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_11 WHERE round = 9 AND nationality = "canada"
What college or club did the round 9 draft pick from Canada come from?
CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT to_par FROM table_name_30 WHERE country = "japan"
What is the player from Japan's To Par?
CREATE TABLE table_name_30 (to_par VARCHAR, country VARCHAR)
SELECT MAX(match) FROM table_name_53 WHERE opponent_team = "dalian shide siwu" AND home_away = "away"
What was the highest match when the away opponent was Dalian Shide Siwu?
CREATE TABLE table_name_53 (match INTEGER, opponent_team VARCHAR, home_away VARCHAR)
SELECT MIN(year) FROM table_name_64 WHERE engine = "ilmor 2175a 3.5 v10"
What was the lowest year that the engine Ilmor 2175a 3.5 v10 was used?
CREATE TABLE table_name_64 (year INTEGER, engine VARCHAR)
SELECT no_in_series FROM table_228973_11 WHERE directed_by = "David James Elliott"
David James Elliott directed which episode number within the series?
CREATE TABLE table_228973_11 (no_in_series VARCHAR, directed_by VARCHAR)
SELECT SUM(round) FROM table_name_21 WHERE method = "submission (choke)"
How many total rounds used the submission (choke) method?
CREATE TABLE table_name_21 (round INTEGER, method VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_17919342_1 WHERE film_title_used_in_nomination = "The Blossoming of Maximo Oliveros"
How many years was the film The Blossoming of Maximo Oliveros entered?
CREATE TABLE table_17919342_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT score FROM table_name_5 WHERE date = "april 28"
What score has april 28 as the date?
CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR)
SELECT race_1 FROM table_name_85 WHERE race_4 = "1"
What is Race 1, when Race 4 is 1?
CREATE TABLE table_name_85 (race_1 VARCHAR, race_4 VARCHAR)
SELECT us_viewers__in_millions_ FROM table_25084227_1 WHERE directed_by = "Michael Offer"
If the episode was directed by Michael Offer, how many US Viewers watched it?
CREATE TABLE table_25084227_1 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT SUM(points) FROM table_name_41 WHERE attendance = "8,000" AND date = "february 22"
What's the sum of the points when attendance is 8,000 on february 22?
CREATE TABLE table_name_41 (points INTEGER, attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_21796261_4 WHERE date = "July 10"
How many people were present at the July 10 game?
CREATE TABLE table_21796261_4 (attendance VARCHAR, date VARCHAR)
SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 3
Show the top 3 apartment type codes sorted by the average number of rooms in descending order.
CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER)
SELECT SUM(week) FROM table_name_75 WHERE winning_team = "yellow team" AND event = "foos it or lose it"
How many weeks have a Winning team of yellow team, and an Event of foos it or lose it?
CREATE TABLE table_name_75 (week INTEGER, winning_team VARCHAR, event VARCHAR)
SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Who is the instructor with the highest salary?
CREATE TABLE instructor (name VARCHAR, salary VARCHAR)
SELECT COUNT(matches_played) FROM table_27708484_3 WHERE average_goals_scored_per_match = "1.25"
how many matches were played that average goals scored 1.25?
CREATE TABLE table_27708484_3 (matches_played VARCHAR, average_goals_scored_per_match VARCHAR)