question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the transfer window of the Leeds United source with a move from Motherwell?
CREATE TABLE table_name_52 (transfer_window VARCHAR, source VARCHAR, moving_from VARCHAR)
SELECT transfer_window FROM table_name_52 WHERE source = "leeds united" AND moving_from = "motherwell"
What is the election date for those politicians who left office on 1850-11-15?
CREATE TABLE table_26362472_1 (election_date VARCHAR, left_office VARCHAR)
SELECT COUNT(election_date) FROM table_26362472_1 WHERE left_office = "1850-11-15"
What is Country, when Killed is "100.9", and when Year is greater than 1939.9?
CREATE TABLE table_name_87 (country VARCHAR, killed VARCHAR, year VARCHAR)
SELECT country FROM table_name_87 WHERE killed = 100.9 AND year > 1939.9
Who are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director?
CREATE TABLE table_10470082_7 (villains VARCHAR, storyteller VARCHAR, director VARCHAR)
SELECT villains FROM table_10470082_7 WHERE storyteller = "Megan" AND director = "Lorette LeBlanc"
Name the entered for famous for page 3 model
CREATE TABLE table_14345690_4 (entered VARCHAR, famous_for VARCHAR)
SELECT entered FROM table_14345690_4 WHERE famous_for = "Page 3 Model"
what was the result where the candidates are sam m. gibbons (d) unopposed?
CREATE TABLE table_1341663_10 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1341663_10 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
What is the 2006 total with a 2010 value greater than 417.9?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
CREATE TABLE table_name_24 (antonio_thomas VARCHAR, hikaru_sato VARCHAR)
SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"
Show the number of documents.
CREATE TABLE Documents (Id VARCHAR)
SELECT COUNT(*) FROM Documents
Which 2008 has a City of durban?
CREATE TABLE table_name_56 (city VARCHAR)
SELECT AVG(2008) FROM table_name_56 WHERE city = "durban"
Tell me the name in polish for radom seat
CREATE TABLE table_name_36 (name_in_polish VARCHAR, seat VARCHAR)
SELECT name_in_polish FROM table_name_36 WHERE seat = "radom"
How many new stations have a lenght (miles) of 6.0?
CREATE TABLE table_1817879_2 (_number_of_new_stations VARCHAR, length__miles_ VARCHAR)
SELECT COUNT(_number_of_new_stations) FROM table_1817879_2 WHERE length__miles_ = "6.0"
What colours have a House Name of ogun?
CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR)
SELECT colours FROM table_name_93 WHERE house_name = "ogun"
How many legs were own by alan tabern?
CREATE TABLE table_27906667_2 (legs_won INTEGER, player VARCHAR)
SELECT MAX(legs_won) FROM table_27906667_2 WHERE player = "Alan Tabern"
Which Former Team has a Pick larger than 20?
CREATE TABLE table_name_72 (former_team VARCHAR, pick INTEGER)
SELECT former_team FROM table_name_72 WHERE pick > 20
Which Total has a Score of 1–3, and a Set 1 of 29–31?
CREATE TABLE table_name_9 (total VARCHAR, score VARCHAR, set_1 VARCHAR)
SELECT total FROM table_name_9 WHERE score = "1–3" AND set_1 = "29–31"
Who are the candidates in the race where Wright Patman is the incumbent?
CREATE TABLE table_1342315_42 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342315_42 WHERE incumbent = "Wright Patman"
List the number of goals scored to equal 58.
CREATE TABLE table_18018214_2 (goals_conceded INTEGER, points VARCHAR)
SELECT MIN(goals_conceded) FROM table_18018214_2 WHERE points = 58
What is the award for the Choice TV: Breakout Star Female category?
CREATE TABLE table_name_36 (award VARCHAR, category VARCHAR)
SELECT award FROM table_name_36 WHERE category = "choice tv: breakout star female"
What was the wicket ranking for the match that had a fielding team of Sri Lanka?
CREATE TABLE table_name_73 (wicket VARCHAR, fielding_team VARCHAR)
SELECT wicket FROM table_name_73 WHERE fielding_team = "sri lanka"
How many votes did kennedy win when coaklely won 2139 votes?
CREATE TABLE table_24115349_4 (kennedy_votes VARCHAR, coakley_votes VARCHAR)
SELECT COUNT(kennedy_votes) FROM table_24115349_4 WHERE coakley_votes = 2139
How many positions does Greg Bryant play?
CREATE TABLE table_11677691_11 (position VARCHAR, player VARCHAR)
SELECT COUNT(position) FROM table_11677691_11 WHERE player = "Greg Bryant"
What is the lowest Points when against is 50, and there are less than 20 played?
CREATE TABLE table_name_80 (points INTEGER, against VARCHAR, played VARCHAR)
SELECT MIN(points) FROM table_name_80 WHERE against = 50 AND played < 20
How many millions of viewers did Episode number 16 have?
CREATE TABLE table_26139378_1 (viewers__in_millions_ VARCHAR, episode__number VARCHAR)
SELECT viewers__in_millions_ FROM table_26139378_1 WHERE episode__number = 16
What is the circuit located in baltimore , maryland?
CREATE TABLE table_30134667_2 (circuit VARCHAR, location VARCHAR)
SELECT circuit FROM table_30134667_2 WHERE location = "Baltimore , Maryland"
Which co-driver has fewer than 282 laps and type P tyres?
CREATE TABLE table_name_44 (co_drivers VARCHAR, laps VARCHAR, tyres VARCHAR)
SELECT co_drivers FROM table_name_44 WHERE laps < 282 AND tyres = "p"
Which Segment C that has an Episode lower than 230, and a Segment A consisting of wax figures?
CREATE TABLE table_name_79 (segment_c VARCHAR, episode VARCHAR, segment_a VARCHAR)
SELECT segment_c FROM table_name_79 WHERE episode < 230 AND segment_a = "wax figures"
What's the latest year that daisy garcia reyes did not place in miss world?
CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR)
SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes"
Find the first name and gender of the student who has allergy to milk but not cat.
CREATE TABLE Student (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR); CREATE TABLE Has_allergy (fname VARCHAR, sex VARCHAR, StuID VARCHAR, Allergy VARCHAR)
SELECT fname, sex FROM Student WHERE StuID IN (SELECT StuID FROM Has_allergy WHERE Allergy = "Milk" EXCEPT SELECT StuID FROM Has_allergy WHERE Allergy = "Cat")
What is Country, when Place is "T3", and when Score is "67-70=137"?
CREATE TABLE table_name_24 (country VARCHAR, place VARCHAR, score VARCHAR)
SELECT country FROM table_name_24 WHERE place = "t3" AND score = 67 - 70 = 137
Which chassis was made in 1993?
CREATE TABLE table_name_94 (chassis VARCHAR, year VARCHAR)
SELECT chassis FROM table_name_94 WHERE year = 1993
Name the total number of segment d for wooden s barrel
CREATE TABLE table_15187735_10 (segment_d VARCHAR, segment_a VARCHAR)
SELECT COUNT(segment_d) FROM table_15187735_10 WHERE segment_a = "Wooden s Barrel"
What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?
CREATE TABLE table_name_72 (overall VARCHAR, name VARCHAR, pick VARCHAR, college VARCHAR)
SELECT overall FROM table_name_72 WHERE pick < 9 AND college = "michigan state" AND name = "buck mystrom"
Nigeria competed on July2, 1999.
CREATE TABLE table_1231316_5 (date VARCHAR, nation VARCHAR)
SELECT date FROM table_1231316_5 WHERE nation = "Nigeria"
What is the premiere on the mega channel?
CREATE TABLE table_11323532_2 (premiere VARCHAR, channel VARCHAR)
SELECT premiere FROM table_11323532_2 WHERE channel = "Mega channel"
Which treasurer has a President of sebastian ihler?
CREATE TABLE table_name_74 (treasurer VARCHAR, president VARCHAR)
SELECT treasurer FROM table_name_74 WHERE president = "sebastian ihler"
Tell me the venue for notes of 10.93 secs
CREATE TABLE table_name_45 (venue VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_45 WHERE notes = "10.93 secs"
The golfer in place 1 if from what country?
CREATE TABLE table_name_13 (country VARCHAR, place VARCHAR)
SELECT country FROM table_name_13 WHERE place = "1"
With a Suited Match of 13:1, what is the Double Non-Suited Match?
CREATE TABLE table_name_74 (Double VARCHAR, suited_match VARCHAR)
SELECT Double AS non_suited_match FROM table_name_74 WHERE suited_match = "13:1"
How many episodes were written by Jack Burditt & Robert Carlock
CREATE TABLE table_15938543_1 (production_code VARCHAR, written_by VARCHAR)
SELECT COUNT(production_code) FROM table_15938543_1 WHERE written_by = "Jack Burditt & Robert Carlock"
What are the names of races that were held after 2017 and the circuits were in the country of Spain?
CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017
What is Australia´s finish?
CREATE TABLE table_name_79 (finish VARCHAR, country VARCHAR)
SELECT finish FROM table_name_79 WHERE country = "australia"
How many different games had David Lee (13) with High rebounds?
CREATE TABLE table_17060277_6 (score VARCHAR, high_rebounds VARCHAR)
SELECT COUNT(score) FROM table_17060277_6 WHERE high_rebounds = "David Lee (13)"
What is the capacity of the Pinto Valley mine in Gila county?
CREATE TABLE table_name_67 (capacity__thousands_of_metric_tons_ VARCHAR, county VARCHAR, mine VARCHAR)
SELECT capacity__thousands_of_metric_tons_ FROM table_name_67 WHERE county = "gila" AND mine = "pinto valley"
Which Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5?
CREATE TABLE table_name_69 (bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND rank < 5
Which 3rd run has rank of 8?
CREATE TABLE table_name_55 (rank VARCHAR)
SELECT 3 AS rd_run FROM table_name_55 WHERE rank = 8
What team did team carlton play while away?
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_42 WHERE away_team = "carlton"
What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for?
CREATE TABLE table_name_38 (school_club_team VARCHAR, round VARCHAR, overall VARCHAR)
SELECT school_club_team FROM table_name_38 WHERE round > 13 AND overall = 384
Which category was Gene Barry nominated in?
CREATE TABLE table_name_54 (category VARCHAR, result VARCHAR, nominee VARCHAR)
SELECT category FROM table_name_54 WHERE result = "nominated" AND nominee = "gene barry"
What was the record on January 17?
CREATE TABLE table_name_61 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_61 WHERE date = "january 17"
Who has a position of sg?
CREATE TABLE table_name_86 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_86 WHERE position = "sg"
What is the highest population of Deuel county's 1,819 households?
CREATE TABLE table_name_22 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
SELECT MAX(population) FROM table_name_22 WHERE county = "deuel" AND number_of_households < 1 OFFSET 819
When did the term begin that ended January 3, 1995?
CREATE TABLE table_224672_2 (term_began VARCHAR, term_ended VARCHAR)
SELECT term_began FROM table_224672_2 WHERE term_ended = "January 3, 1995"
What is the Date of the Event with a Time of 2:23:47?
CREATE TABLE table_name_23 (date VARCHAR, time VARCHAR)
SELECT date FROM table_name_23 WHERE time = "2:23:47"
Kaluvanchikudy is the main town in what DS division?
CREATE TABLE table_12485020_1 (ds_division VARCHAR, main_town VARCHAR)
SELECT ds_division FROM table_12485020_1 WHERE main_town = "Kaluvanchikudy"
What is the party of the youngest people?
CREATE TABLE people (Party VARCHAR, Age VARCHAR)
SELECT Party FROM people ORDER BY Age LIMIT 1
What is Mark Cannon's College?
CREATE TABLE table_name_45 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_45 WHERE player = "mark cannon"
Which county includes Himco Dump?
CREATE TABLE table_name_80 (county VARCHAR, name VARCHAR)
SELECT county FROM table_name_80 WHERE name = "himco dump"
Who manufactured the car with the jawa 249cc engine that was made in the years 1956-1963?
CREATE TABLE table_name_58 (manufacturer VARCHAR, engine_make_capacity VARCHAR, year VARCHAR)
SELECT manufacturer FROM table_name_58 WHERE engine_make_capacity = "jawa 249cc" AND year = "1956-1963"
What is the method of the match with a win res., 1 round, and a 3-2 record?
CREATE TABLE table_name_44 (method VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT method FROM table_name_44 WHERE res = "win" AND round = 1 AND record = "3-2"
How many points did team Rothmans Honda have in 1992?
CREATE TABLE table_name_7 (points INTEGER, team VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_7 WHERE team = "rothmans honda" AND year = 1992
What is the IATA of Leonardo da Vinci-Fiumicino Airport?
CREATE TABLE table_name_39 (iata VARCHAR, airport VARCHAR)
SELECT iata FROM table_name_39 WHERE airport = "leonardo da vinci-fiumicino airport"
Which type of institution is in Amherst, MA?
CREATE TABLE table_name_1 (type VARCHAR, location VARCHAR)
SELECT type FROM table_name_1 WHERE location = "amherst, ma"
Name the original air date for 15.74 viewers
CREATE TABLE table_19501664_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT original_air_date FROM table_19501664_1 WHERE us_viewers__millions_ = "15.74"
Is art school public or private?
CREATE TABLE table_2076595_1 (control VARCHAR, type VARCHAR)
SELECT control FROM table_2076595_1 WHERE type = "Art school"
What is every value for location attendance on date of November 18?
CREATE TABLE table_23248940_6 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_23248940_6 WHERE date = "November 18"
Which flag is most widely used among all ships?
CREATE TABLE ship (flag VARCHAR)
SELECT flag FROM ship GROUP BY flag ORDER BY COUNT(*) DESC LIMIT 1
What is the height of the school club team members in clemson?
CREATE TABLE table_11734041_7 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT height_in_ft FROM table_11734041_7 WHERE school_club_team_country = "Clemson"
What was his record when he went over 1 round?
CREATE TABLE table_name_81 (record VARCHAR, round INTEGER)
SELECT record FROM table_name_81 WHERE round > 1
What is the average membership with 3.33% LDS and less than 47 branches?
CREATE TABLE table_name_15 (membership INTEGER, _percentage_lds VARCHAR, branches VARCHAR)
SELECT AVG(membership) FROM table_name_15 WHERE _percentage_lds = "3.33%" AND branches < 47
What language has NO, as the HDTV, sky famiglia as the package/option, and national geographic channel as the television service?
CREATE TABLE table_name_23 (language VARCHAR, television_service VARCHAR, hdtv VARCHAR, package_option VARCHAR)
SELECT language FROM table_name_23 WHERE hdtv = "no" AND package_option = "sky famiglia" AND television_service = "national geographic channel"
What is the most current year with a previous conference of Mid-Indiana in Converse?
CREATE TABLE table_name_35 (year_joined INTEGER, previous_conference VARCHAR, location VARCHAR)
SELECT MAX(year_joined) FROM table_name_35 WHERE previous_conference = "mid-indiana" AND location = "converse"
What is the IATA code for Delhi?
CREATE TABLE table_name_56 (iata VARCHAR, city VARCHAR)
SELECT iata FROM table_name_56 WHERE city = "delhi"
What is the least silver that has mexico as a nation and a gold less than 0?
CREATE TABLE table_name_69 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MIN(silver) FROM table_name_69 WHERE nation = "mexico" AND gold < 0
What were all USAF space flights when the aximum speed was 3822?
CREATE TABLE table_221315_3 (usaf_space_flights VARCHAR, max_speed__mph_ VARCHAR)
SELECT usaf_space_flights FROM table_221315_3 WHERE max_speed__mph_ = 3822
What is the language of the film directed by Federico Fellini?
CREATE TABLE table_name_27 (language VARCHAR, director VARCHAR)
SELECT language FROM table_name_27 WHERE director = "federico fellini"
what was the primary conference when joining the csfl for the institution that joined in 2004-05?
CREATE TABLE table_262501_1 (primary_conference_when_joining_the_csfl VARCHAR, joined VARCHAR)
SELECT primary_conference_when_joining_the_csfl FROM table_262501_1 WHERE joined = "2004-05"
Who is every player with a height of 6-5?
CREATE TABLE table_22824297_1 (player VARCHAR, height VARCHAR)
SELECT player FROM table_22824297_1 WHERE height = "6-5"
Tell me the average rank for dharma productions before 2013
CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR)
SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013
Which Number of households has a County of cook, and Population smaller than 5,176?
CREATE TABLE table_name_98 (number_of_households INTEGER, county VARCHAR, population VARCHAR)
SELECT AVG(number_of_households) FROM table_name_98 WHERE county = "cook" AND population < 5 OFFSET 176
The game with Bashley as the home team had what maximum attendance?
CREATE TABLE table_name_76 (attendance INTEGER, home_team VARCHAR)
SELECT MAX(attendance) FROM table_name_76 WHERE home_team = "bashley"
What candidates ran in the election when john s. wood was the incumbent?
CREATE TABLE table_1342331_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342331_11 WHERE incumbent = "John S. Wood"
What is the home team for victoria park?
CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_93 WHERE venue = "victoria park"
Name the outcome for wimbledon
CREATE TABLE table_2009095_2 (outcome VARCHAR, championship VARCHAR)
SELECT outcome FROM table_2009095_2 WHERE championship = "Wimbledon"
What is the height for Nikola Franković?
CREATE TABLE table_name_45 (height VARCHAR, name VARCHAR)
SELECT height FROM table_name_45 WHERE name = "nikola franković"
Which years did the player from Providence play for Memphis?
CREATE TABLE table_name_62 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT years_for_grizzlies FROM table_name_62 WHERE school_club_team = "providence"
What date was the match played where Amy Frazier was the opponent?
CREATE TABLE table_name_80 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier"
What was the population of Green County?
CREATE TABLE table_name_15 (population INTEGER, county VARCHAR)
SELECT MIN(population) FROM table_name_15 WHERE county = "green"
What is the date of the game at the Arden Street Oval?
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_49 WHERE venue = "arden street oval"
What was the score of the Kings game when they had a record of 8–11–1?
CREATE TABLE table_name_27 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_27 WHERE record = "8–11–1"
What's the address of the union bank of California tower?
CREATE TABLE table_name_27 (street_address VARCHAR, name VARCHAR)
SELECT street_address FROM table_name_27 WHERE name = "union bank of california tower"
How many titles are there for the original air date April 3, 2012?
CREATE TABLE table_26150013_1 (title VARCHAR, original_air_date VARCHAR)
SELECT COUNT(title) FROM table_26150013_1 WHERE original_air_date = "April 3, 2012"
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?
CREATE TABLE table_name_35 (grand_slam VARCHAR, winner VARCHAR, year VARCHAR, round VARCHAR)
SELECT grand_slam FROM table_name_35 WHERE year = 1987 AND round = "first round" AND winner = "ivan lendl"
Can you tell me the sum of the Pick # that has the CFL Team of edmonton?
CREATE TABLE table_name_69 (pick__number INTEGER, cfl_team VARCHAR)
SELECT SUM(pick__number) FROM table_name_69 WHERE cfl_team = "edmonton"
How many winners did Minas, which has 0 third places, have?
CREATE TABLE table_name_47 (winners VARCHAR, third_place VARCHAR, team VARCHAR)
SELECT winners FROM table_name_47 WHERE third_place = "0" AND team = "minas"
What are the first name, last name and id of the player with the most all star game experiences? Also list the count.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR)
SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1
What is the project detail for the project with document "King Book"?
CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Documents (project_id VARCHAR, document_name VARCHAR)
SELECT T1.project_details FROM Projects AS T1 JOIN Documents AS T2 ON T1.project_id = T2.project_id WHERE T2.document_name = "King Book"
What is Metro's win percentage?
CREATE TABLE table_name_4 (win__percentage VARCHAR, conference VARCHAR)
SELECT win__percentage FROM table_name_4 WHERE conference = "metro"
How many episodes were released on DVD in the US on October 13, 2009?
CREATE TABLE table_14855908_3 (episodes VARCHAR, region_1__us_ VARCHAR)
SELECT episodes FROM table_14855908_3 WHERE region_1__us_ = "October 13, 2009"
Where did the Centurions play the Hamburg Sea Devils?
CREATE TABLE table_27764201_2 (game_site VARCHAR, opponent VARCHAR)
SELECT game_site FROM table_27764201_2 WHERE opponent = "Hamburg Sea Devils"