answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT country FROM table_20754016_2 WHERE hometown = "Salto"
What country is the contestant from Salto from?
CREATE TABLE table_20754016_2 (country VARCHAR, hometown VARCHAR)
SELECT away_team AS score FROM table_name_49 WHERE home_team = "collingwood"
When the Home team of collingwood played, what was the opposing Away team score?
CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR)
SELECT versions FROM table_name_80 WHERE origin = "czechoslovakia"
Tell me the versions for czechoslovakia?
CREATE TABLE table_name_80 (versions VARCHAR, origin VARCHAR)
SELECT AVG(goals_against) FROM table_name_15 WHERE club = "cd castellón" AND points < 24
Which Goals against have a Club of cd castellón, and Points smaller than 24?
CREATE TABLE table_name_15 (goals_against INTEGER, club VARCHAR, points VARCHAR)
SELECT MAX(platforms) FROM table_name_15 WHERE stations = "centrale tram stop"
What would be the highest Platforms for the Centrale Tram Stop Stations?
CREATE TABLE table_name_15 (platforms INTEGER, stations VARCHAR)
SELECT tv_time FROM table_name_35 WHERE date = "november 22, 1998"
Can you tell me the TV Time that has the Date of november 22, 1998?
CREATE TABLE table_name_35 (tv_time VARCHAR, date VARCHAR)
SELECT country FROM table_104858_1 WHERE year_current_scouting_organization_joined_wosm = "1930" AND year_member_organization_was_founded = "1926"
Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?
CREATE TABLE table_104858_1 (country VARCHAR, year_current_scouting_organization_joined_wosm VARCHAR, year_member_organization_was_founded VARCHAR)
SELECT office FROM table_name_81 WHERE representative = "scott pelath"
Which Office has a Representative of scott pelath?
CREATE TABLE table_name_81 (office VARCHAR, representative VARCHAR)
SELECT venue FROM table_name_4 WHERE home_team = "geelong"
Where did Geelong play as the home team?
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR)
SELECT built FROM table_name_78 WHERE county = "blount" AND listed = "1981-08-20" AND location = "cleveland"
In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?
CREATE TABLE table_name_78 (built VARCHAR, location VARCHAR, county VARCHAR, listed VARCHAR)
SELECT result FROM table_name_14 WHERE opponent_number = "at michigan state"
What was the result when they played at Michigan State?
CREATE TABLE table_name_14 (result VARCHAR, opponent_number VARCHAR)
SELECT MAX(game) FROM table_21034801_1 WHERE record = "4-0"
What was the numer of the game when the record was 4-0?
CREATE TABLE table_21034801_1 (game INTEGER, record VARCHAR)
SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR)
SELECT date FROM table_name_49 WHERE competition = "king's cup 1996"
What day was king's cup 1996?
CREATE TABLE table_name_49 (date VARCHAR, competition VARCHAR)
SELECT owner FROM table_name_43 WHERE year > 1985 AND winner = "give a toast"
Who was the owner of Give a Toast after 1985?
CREATE TABLE table_name_43 (owner VARCHAR, year VARCHAR, winner VARCHAR)
SELECT flag FROM table_19872699_1 WHERE builder = "Green Marine"
Which flag was on the Green Marine's boat?
CREATE TABLE table_19872699_1 (flag VARCHAR, builder VARCHAR)
SELECT city_of_license FROM table_name_34 WHERE call_sign = "wriq"
Which city of license has a wriq Call sign?
CREATE TABLE table_name_34 (city_of_license VARCHAR, call_sign VARCHAR)
SELECT gold FROM table_name_7 WHERE total > 12 AND nation = "canada"
How many golds for Canada (12 total)?
CREATE TABLE table_name_7 (gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT country FROM table_name_74 WHERE score = 70 - 79 - 74 - 68 = 291
What country was the player from with a score of 70-79-74-68=291?
CREATE TABLE table_name_74 (country VARCHAR, score VARCHAR)
SELECT MIN(rank) FROM table_name_44 WHERE games = 37 AND points > 613
Which rank is the lowest with 37 games and more than 613 points?
CREATE TABLE table_name_44 (rank INTEGER, games VARCHAR, points VARCHAR)
SELECT COUNT(*) FROM Products
How many products are there?
CREATE TABLE Products (Id VARCHAR)
SELECT team__number2 FROM table_name_89 WHERE team__number1 = "hapoel tel aviv"
Who played against Hapoel tel aviv when they were team #1?
CREATE TABLE table_name_89 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT series__number FROM table_29087004_3 WHERE written_by = "Evan Gore"
Which episode/s were written by Evan Gore?
CREATE TABLE table_29087004_3 (series__number VARCHAR, written_by VARCHAR)
SELECT city FROM table_name_55 WHERE state = "georgia"
Which city is in Georgia?
CREATE TABLE table_name_55 (city VARCHAR, state VARCHAR)
SELECT place FROM table_name_51 WHERE to_par = "+2" AND player = "mark o'meara"
Wht did Mark O'Meara place when the to par was +2?
CREATE TABLE table_name_51 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT COUNT(incumbent) FROM table_1341568_6 WHERE district = "California 34"
How many incumbents represent district California 34?
CREATE TABLE table_1341568_6 (incumbent VARCHAR, district VARCHAR)
SELECT record FROM table_name_30 WHERE date = "march 14"
What was the record on March 14?
CREATE TABLE table_name_30 (record VARCHAR, date VARCHAR)
SELECT MAX(total) FROM table_name_46 WHERE nation = "georgia" AND rank < 11
What is the highest Total when Georgia is the nation with less than 11 rank?
CREATE TABLE table_name_46 (total INTEGER, nation VARCHAR, rank VARCHAR)
SELECT school FROM table_name_94 WHERE position = "quarterback"
Which school has a quarterback?
CREATE TABLE table_name_94 (school VARCHAR, position VARCHAR)
SELECT SUM(preliminary) FROM table_name_84 WHERE interview = 9.654 AND average < 9.733
What is the sum of Preliminary scores where the interview score is 9.654 and the average score is lower than 9.733?
CREATE TABLE table_name_84 (preliminary INTEGER, interview VARCHAR, average VARCHAR)
SELECT result FROM table_1342426_5 WHERE incumbent = "William J. Driver"
Name the result for william j. driver
CREATE TABLE table_1342426_5 (result VARCHAR, incumbent VARCHAR)
SELECT MIN(seasons) FROM table_name_36 WHERE years = "1982" AND lost > 9
What is the lowest number of seasons that the head coach of 1982 had with larger than 9 losses?
CREATE TABLE table_name_36 (seasons INTEGER, years VARCHAR, lost VARCHAR)
SELECT team FROM table_22669044_10 WHERE high_points = "Hakim Warrick (14)"
Who was the opponent in the game in which Hakim Warrick (14) did the most high points?
CREATE TABLE table_22669044_10 (team VARCHAR, high_points VARCHAR)
SELECT T1.response_received_date FROM Documents AS T1 JOIN Document_Types AS T2 ON T1.document_type_code = T2.document_type_code JOIN Grants AS T3 ON T1.grant_id = T3.grant_id WHERE T2.document_description = 'Regular' OR T3.grant_amount > 100
What are the response received dates for the documents described as 'Regular' or granted with more than 100?
CREATE TABLE Documents (response_received_date VARCHAR, document_type_code VARCHAR, grant_id VARCHAR); CREATE TABLE Document_Types (document_type_code VARCHAR, document_description VARCHAR); CREATE TABLE Grants (grant_id VARCHAR, grant_amount VARCHAR)
SELECT AVG(attendance) FROM table_name_10 WHERE week > 16
What is the average attendance after week 16?
CREATE TABLE table_name_10 (attendance INTEGER, week INTEGER)
SELECT wins FROM table_2622469_1 WHERE year = 1983
What were the wins of 1983?
CREATE TABLE table_2622469_1 (wins VARCHAR, year VARCHAR)
SELECT year FROM table_name_78 WHERE award = "tv adicto golden awards" AND category = "female revelation"
In what year was there an award for TV Adicto Golden Awards and the category Female Revelation?
CREATE TABLE table_name_78 (year VARCHAR, award VARCHAR, category VARCHAR)
SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland"
What is the 2FM for SW Ireland?
CREATE TABLE table_name_91 (service_area VARCHAR)
SELECT fatalities FROM table_name_78 WHERE time = "12:38:46"
What number of Fatalties is associated with the Time of 12:38:46?
CREATE TABLE table_name_78 (fatalities VARCHAR, time VARCHAR)
SELECT laps FROM table_name_41 WHERE driver = "jean-christophe boullion"
What were the laps of driver Jean-Christophe Boullion?
CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
SELECT award_winning_film FROM table_18220102_1 WHERE date__closing_ = "September 4"
Which award-winning film has a closing date of September 4?
CREATE TABLE table_18220102_1 (award_winning_film VARCHAR, date__closing_ VARCHAR)
SELECT score FROM table_name_27 WHERE place = "t3"
Which score has t3 as the place?
CREATE TABLE table_name_27 (score VARCHAR, place VARCHAR)
SELECT T3.Name FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name HAVING COUNT(*) > 1
Show the names of journalists that have reported more than one event.
CREATE TABLE journalist (Name VARCHAR, journalist_ID VARCHAR); CREATE TABLE news_report (Event_ID VARCHAR, journalist_ID VARCHAR); CREATE TABLE event (Event_ID VARCHAR)
SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 0
What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?
CREATE TABLE table_name_23 (squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR)
SELECT AVG(number_of_s_eva) FROM table_name_50 WHERE lunar_lander = "orion"
What is the average number of EVA for the Orion?
CREATE TABLE table_name_50 (number_of_s_eva INTEGER, lunar_lander VARCHAR)
SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987
What is the average finish that has 24 as the start, with a year after 1987?
CREATE TABLE table_name_89 (finish INTEGER, start VARCHAR, year VARCHAR)
SELECT status FROM table_name_56 WHERE "role" = "role"
What status has a role?
CREATE TABLE table_name_56 (status VARCHAR)
SELECT launched FROM table_name_65 WHERE homeport__as_of_july_2013_ = "sold to chile" AND pennant_number = "f80"
What kind of Launched has a Homeport (as of July 2013) of sold to chile, and a Pennant number of f80?
CREATE TABLE table_name_65 (launched VARCHAR, homeport__as_of_july_2013_ VARCHAR, pennant_number VARCHAR)
SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll."
The plural abbreviation of ll. uses what plural word?
CREATE TABLE table_name_94 (plural_word VARCHAR, plural_abbreviation VARCHAR)
SELECT date FROM table_name_18 WHERE game_site = "shea stadium" AND week = 5
Which Date has a Game site of shea stadium, and a Week of 5?
CREATE TABLE table_name_18 (date VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT regular_season_champion_s_ FROM table_name_4 WHERE tournament_champion = "west virginia" AND year = "1955–56"
Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955–56?
CREATE TABLE table_name_4 (regular_season_champion_s_ VARCHAR, tournament_champion VARCHAR, year VARCHAR)
SELECT team FROM table_20016339_1 WHERE motorcycle = "Honda"
What's the name of the team who had a Honda motorcycle?
CREATE TABLE table_20016339_1 (team VARCHAR, motorcycle VARCHAR)
SELECT visitor FROM table_name_56 WHERE date = "march 31"
What is the Visitor on March 31?
CREATE TABLE table_name_56 (visitor VARCHAR, date VARCHAR)
SELECT last_update FROM table_name_75 WHERE name = "joe surratt"
for the name of joe surratt what is the last update?
CREATE TABLE table_name_75 (last_update VARCHAR, name VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "beohari"
What is Beohari's reserved for (SC/ST/None)?
CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT score FROM table_name_43 WHERE home = "toronto" AND date = "january 28"
What was teh score of the game where Toronto was the home team on January 28?
CREATE TABLE table_name_43 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT soap_opera FROM table_name_81 WHERE rank > 1 AND character = "emily bishop"
What soap opera has a rank larger than 1, and a Character named Emily Bishop?
CREATE TABLE table_name_81 (soap_opera VARCHAR, rank VARCHAR, character VARCHAR)
SELECT entrant FROM table_name_4 WHERE driver = "jack fairman" AND chassis = "t45"
What company was the entrant for the race with Jack Fairman as the driver with a chassis of t45?
CREATE TABLE table_name_4 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR)
SELECT SUM(grid) FROM table_name_60 WHERE time = "+16.687"
What is the sum of Grid, when Time is "+16.687"?
CREATE TABLE table_name_60 (grid INTEGER, time VARCHAR)
SELECT creation, name, budget_in_billions FROM department
List the creation year, name and budget of each department.
CREATE TABLE department (creation VARCHAR, name VARCHAR, budget_in_billions VARCHAR)
SELECT MAX(year) FROM table_name_16 WHERE next_highest_spender = "aarp" AND us_cham_spending = "$39,805,000" AND us_cham_rank > 1
Which Year is the highest one that has a Next Highest Spender of aarp, and a US Cham Spending of $39,805,000, and a US Cham Rank larger than 1?
CREATE TABLE table_name_16 (year INTEGER, us_cham_rank VARCHAR, next_highest_spender VARCHAR, us_cham_spending VARCHAR)
SELECT high_rebounds FROM table_27755603_2 WHERE high_points = "Rodney Stuckey (16)"
Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points?
CREATE TABLE table_27755603_2 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT competition FROM table_name_56 WHERE town = "budva" AND opponent = "italy"
what is the competition played in budva against italy?
CREATE TABLE table_name_56 (competition VARCHAR, town VARCHAR, opponent VARCHAR)
SELECT manufacturer FROM table_name_43 WHERE grid = 11
Name the manufacturer with grid of 11
CREATE TABLE table_name_43 (manufacturer VARCHAR, grid VARCHAR)
SELECT debut FROM table_name_82 WHERE born = "poole"
What is the debut for the person born in Poole?
CREATE TABLE table_name_82 (debut VARCHAR, born VARCHAR)
SELECT visitor FROM table_name_19 WHERE date = "march 2, 2008"
Who is the visitor team of the game on March 2, 2008?
CREATE TABLE table_name_19 (visitor VARCHAR, date VARCHAR)
SELECT year FROM table_name_86 WHERE location = "dinas" AND date = "13 january"
Which Year has a Location of dinas on 13 january?
CREATE TABLE table_name_86 (year VARCHAR, location VARCHAR, date VARCHAR)
SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = "Alejandro Valverde" AND points_classification = "Alessandro Petacchi"
How many teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?
CREATE TABLE table_15059783_1 (team_classification VARCHAR, combination_classification VARCHAR, points_classification VARCHAR)
SELECT category FROM table_name_45 WHERE year > 1996 AND result = "won" AND title = "brokeback mountain" AND award = "golden globe award"
Which Category has a Year larger than 1996, and a Result of won, and a Title of brokeback mountain, and an Award of golden globe award?
CREATE TABLE table_name_45 (category VARCHAR, award VARCHAR, title VARCHAR, year VARCHAR, result VARCHAR)
SELECT team FROM table_name_87 WHERE college = "stanford"
What is the Team for Stanford College?
CREATE TABLE table_name_87 (team VARCHAR, college VARCHAR)
SELECT date FROM table_name_63 WHERE distance = "3,000 m"
Which Date has a Distance of 3,000 m?
CREATE TABLE table_name_63 (date VARCHAR, distance VARCHAR)
SELECT country FROM table_name_96 WHERE location = "aberdeen"
In what country is Aberdeen?
CREATE TABLE table_name_96 (country VARCHAR, location VARCHAR)
SELECT rating FROM table_name_23 WHERE viewers__households_in_millions_ = "18.17"
What was the rating of the season that had 18.17 million household viewers?
CREATE TABLE table_name_23 (rating VARCHAR, viewers__households_in_millions_ VARCHAR)
SELECT country FROM table_name_97 WHERE network = "channel 1"
Which Country has a Network of channel 1?
CREATE TABLE table_name_97 (country VARCHAR, network VARCHAR)
SELECT AVG(attendance) FROM table_name_38 WHERE date = "september 19, 1971" AND week > 1
What was the attendance on September 19, 1971, after week 1?
CREATE TABLE table_name_38 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_17120964_8 WHERE result = "Lost 5-3"
How many attendance figures are given for the game where the final score was lost 5-3?
CREATE TABLE table_17120964_8 (attendance VARCHAR, result VARCHAR)
SELECT school FROM table_name_20 WHERE pick > 89 AND position = "back" AND round = 16
Which school picked a back in round 16, after pick 89?
CREATE TABLE table_name_20 (school VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT tournament FROM table_name_2 WHERE 2001 = "2–4"
2001 of 2–4 was in which tournament?
CREATE TABLE table_name_2 (tournament VARCHAR)
SELECT position FROM table_name_78 WHERE time = "3:01.78"
What Position has a Time of 3:01.78?
CREATE TABLE table_name_78 (position VARCHAR, time VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_80 WHERE location = "ohio" AND tournament = "american golf classic"
How much was the first place prize for the American golf classic located in Ohio?
CREATE TABLE table_name_80 (location VARCHAR, tournament VARCHAR)
SELECT SUM(scottish_cup) FROM table_name_47 WHERE league_cup < 2 AND total > 6 AND position = "forward"
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
CREATE TABLE table_name_47 (scottish_cup INTEGER, position VARCHAR, league_cup VARCHAR, total VARCHAR)
SELECT home_team FROM table_name_48 WHERE date = "april 13, 2008" AND away_team = "itabuna"
What is the name of the home team on April 13, 2008 when Itabuna was the away team?
CREATE TABLE table_name_48 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 4
What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?
CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008
What position did the player play in the european cross country championships in 2008?
CREATE TABLE table_name_90 (position VARCHAR, competition VARCHAR, year VARCHAR)
SELECT english_title FROM table_22128871_1 WHERE result = "Nominee"
What is every English title for the result of nominee?
CREATE TABLE table_22128871_1 (english_title VARCHAR, result VARCHAR)
SELECT league FROM table_1214035_1 WHERE open_cup = "Quarter Finals"
For which league is the open cup the quarter finals
CREATE TABLE table_1214035_1 (league VARCHAR, open_cup VARCHAR)
SELECT outgoing_manager FROM table_name_15 WHERE team = "livingston"
Tell me the outgoing manager for livingston
CREATE TABLE table_name_15 (outgoing_manager VARCHAR, team VARCHAR)
SELECT builder FROM table_name_44 WHERE lot_no = 30702
What builder has lot number 30702?
CREATE TABLE table_name_44 (builder VARCHAR, lot_no VARCHAR)
SELECT grid FROM table_name_14 WHERE team = "dreyer & reinbold racing" AND points = "26"
What is the grid of team dreyer & reinbold racing, which has 26 points?
CREATE TABLE table_name_14 (grid VARCHAR, team VARCHAR, points VARCHAR)
SELECT competition FROM table_name_17 WHERE year = 2003
What was the competition held in 2003?
CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR)
SELECT etymology FROM table_name_58 WHERE rank = 12
What Etymology ranked 12?
CREATE TABLE table_name_58 (etymology VARCHAR, rank VARCHAR)
SELECT score FROM table_name_44 WHERE loss = "kern (0-2)"
What was the score of the game when there was a loss of Kern (0-2)?
CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR)
SELECT longitude FROM table_18600760_20 WHERE township = "Tatman"
What longitude is tatman township?
CREATE TABLE table_18600760_20 (longitude VARCHAR, township VARCHAR)
SELECT player FROM table_name_35 WHERE score = 70 - 72 - 70 = 212
What player scored 70-72-70=212?
CREATE TABLE table_name_35 (player VARCHAR, score VARCHAR)
SELECT hometown FROM table_11677100_11 WHERE school = "West Brook Senior High school"
WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM?
CREATE TABLE table_11677100_11 (hometown VARCHAR, school VARCHAR)
SELECT COUNT(earnings__) AS €_ FROM table_28540609_2 WHERE best_finish = "T38"
How many earnings values are associated with players who had a best finish of T38?
CREATE TABLE table_28540609_2 (earnings__ VARCHAR, best_finish VARCHAR)
SELECT MIN(players) FROM table_10682862_68
What's the smallest number of players?
CREATE TABLE table_10682862_68 (players INTEGER)
SELECT high_points FROM table_23285805_8 WHERE game = 69
Who has the high points for the 69 game?
CREATE TABLE table_23285805_8 (high_points VARCHAR, game VARCHAR)
SELECT COUNT(pos) FROM table_14460937_2 WHERE member_association = "China PR"
how many pos with member association being china pr
CREATE TABLE table_14460937_2 (pos VARCHAR, member_association VARCHAR)
SELECT sport FROM table_name_11 WHERE league = "continental basketball league" AND venue = "avalon middle school"
Which Sport has a League of continental basketball league, and a Venue of avalon middle school?
CREATE TABLE table_name_11 (sport VARCHAR, league VARCHAR, venue VARCHAR)