question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many bronze medals for the United Kingdom when the silver was less than 0?
CREATE TABLE table_name_18 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_18 WHERE nation = "united kingdom" AND silver < 0
Loss of gonzález (0–3) had what attendance?
CREATE TABLE table_name_32 (attendance VARCHAR, loss VARCHAR)
SELECT attendance FROM table_name_32 WHERE loss = "gonzález (0–3)"
What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure?
CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR)
SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure"
What is the 2001 tournament with a 2005 4r?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT 2001 FROM table_name_83 WHERE 2005 = "4r"
What is the first leg score in that match where Marseille was the first team?
CREATE TABLE table_name_85 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_85 WHERE team_1 = "marseille"
Tell me the driver for ford cosworth dfv 3.0 v8 and chassis of ts19 ts20
CREATE TABLE table_name_22 (driver VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND chassis = "ts19 ts20"
How many different chromosomal locations are there in the family il-1f8?
CREATE TABLE table_29871617_1 (chromosomal_location VARCHAR, family_name VARCHAR)
SELECT COUNT(chromosomal_location) FROM table_29871617_1 WHERE family_name = "IL-1F8"
How many losses did the division who appeared less than 16 times have?
CREATE TABLE table_name_95 (losses VARCHAR, appearances INTEGER)
SELECT losses FROM table_name_95 WHERE appearances < 16
Find the ids of the students who participate in Canoeing and Kayaking.
CREATE TABLE activity (actid VARCHAR, activity_name VARCHAR); CREATE TABLE participates_in (stuid VARCHAR)
SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid = T2.actid WHERE T2.activity_name = 'Kayaking'
List the names of technicians in ascending order of age.
CREATE TABLE technician (Name VARCHAR, Age VARCHAR)
SELECT Name FROM technician ORDER BY Age
What is the To par of the player with Money of 7,750 or more?
CREATE TABLE table_name_19 (to_par VARCHAR, money___£__ INTEGER)
SELECT to_par FROM table_name_19 WHERE money___£__ > 7 OFFSET 750
What is the lowest value for apps in 2009 season in a division less than 1?
CREATE TABLE table_name_86 (apps INTEGER, season VARCHAR, division VARCHAR)
SELECT MIN(apps) FROM table_name_86 WHERE season = "2009" AND division < 1
What is the sum of the people in attendance when there was a Loss of clement (5–7)?
CREATE TABLE table_name_83 (attendance INTEGER, loss VARCHAR)
SELECT SUM(attendance) FROM table_name_83 WHERE loss = "clement (5–7)"
How many games are associated with over 0 golds and a first year before 2008?
CREATE TABLE table_name_61 (games INTEGER, gold VARCHAR, first VARCHAR)
SELECT SUM(games) FROM table_name_61 WHERE gold > 0 AND first < 2008
Show the name of each county along with the corresponding number of delegates from that county.
CREATE TABLE election (District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR)
SELECT T1.County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id
What campus opened in 1970?
CREATE TABLE table_name_12 (campus VARCHAR, year_opened VARCHAR)
SELECT campus FROM table_name_12 WHERE year_opened = "1970"
Who has the high points when 3-2 is the series?
CREATE TABLE table_22871316_11 (high_points VARCHAR, series VARCHAR)
SELECT high_points FROM table_22871316_11 WHERE series = "3-2"
When is the earliest year that there's a judd engine?
CREATE TABLE table_name_40 (year INTEGER, engine VARCHAR)
SELECT MIN(year) FROM table_name_40 WHERE engine = "judd"
What was result of goal 4?
CREATE TABLE table_name_11 (result VARCHAR, goal VARCHAR)
SELECT result FROM table_name_11 WHERE goal = 4
what is the average tournaments played when cuts made is 14?
CREATE TABLE table_name_63 (tournaments_played INTEGER, cuts_made VARCHAR)
SELECT AVG(tournaments_played) FROM table_name_63 WHERE cuts_made = 14
What is Term End, when Political Party is Albanian Fascist Party, and when Term Start is 12 April 1939?
CREATE TABLE table_name_78 (term_end VARCHAR, political_party VARCHAR, term_start VARCHAR)
SELECT term_end FROM table_name_78 WHERE political_party = "albanian fascist party" AND term_start = "12 april 1939"
Which Score has Points of 36, and a Game of 30?
CREATE TABLE table_name_6 (score VARCHAR, points VARCHAR, game VARCHAR)
SELECT score FROM table_name_6 WHERE points = 36 AND game = 30
Name the wrestlers with days held of 428
CREATE TABLE table_name_83 (wrestlers VARCHAR, days_held VARCHAR)
SELECT wrestlers FROM table_name_83 WHERE days_held = "428"
What was the language for the movie "Late Bloomers"?
CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers"
What is the maximum specific impulse with a 4423 m/s effective exhaust velocity?
CREATE TABLE table_15944_5 (specific_impulse__s_ INTEGER, effective_exhaust_velocity__m_s_ VARCHAR)
SELECT MAX(specific_impulse__s_) FROM table_15944_5 WHERE effective_exhaust_velocity__m_s_ = 4423
Which accelerator name contains substring "Opera"?
CREATE TABLE web_client_accelerator (name VARCHAR)
SELECT name FROM web_client_accelerator WHERE name LIKE "%Opera%"
How many locations are there for the athletic nickname is blue crusaders?
CREATE TABLE table_22171978_1 (location VARCHAR, athletic_nickname VARCHAR)
SELECT COUNT(location) FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders"
What is Score, when Game is greater than 49, and when Opponent is "Pittsburgh Ironmen"?
CREATE TABLE table_name_10 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_10 WHERE game > 49 AND opponent = "pittsburgh ironmen"
Manager of art griggs had what lowest year?
CREATE TABLE table_name_86 (year INTEGER, manager VARCHAR)
SELECT MIN(year) FROM table_name_86 WHERE manager = "art griggs"
What are the winnings for position 7?
CREATE TABLE table_23239946_3 (winnings__ INTEGER, position VARCHAR)
SELECT MAX(winnings__) AS $_ FROM table_23239946_3 WHERE position = 7
What is the genus & species of the animal whose accession number is XP_002439156.1?
CREATE TABLE table_26957063_3 (genus_ VARCHAR, _species VARCHAR, ncbi_accession_number VARCHAR)
SELECT genus_ & _species FROM table_26957063_3 WHERE ncbi_accession_number = "XP_002439156.1"
What date did the Chicago Bears beat the Green bay Packers 31-20?
CREATE TABLE table_name_32 (date VARCHAR, loser VARCHAR, location VARCHAR)
SELECT date FROM table_name_32 WHERE loser = "green bay packers" AND location = "green bay"
What is the Branding of Frequency 00 94.5?
CREATE TABLE table_name_70 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_70 WHERE frequency = "00 94.5"
When roy richardson 476cc aermacchi is the rider what is the time for saturday august 9th?
CREATE TABLE table_23465864_3 (sat_29_aug VARCHAR, rider VARCHAR)
SELECT sat_29_aug FROM table_23465864_3 WHERE rider = "Roy Richardson 476cc Aermacchi"
How many championships did the team or teams established in 1976 win?
CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR)
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976
Name the score for opponent of cleveland
CREATE TABLE table_19169116_8 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_19169116_8 WHERE opponent = "Cleveland"
What type of cartridge is used by a Weatherby?
CREATE TABLE table_16010376_1 (cartridge VARCHAR, source VARCHAR)
SELECT cartridge FROM table_16010376_1 WHERE source = "Weatherby"
What school does Kerry Wood play for?
CREATE TABLE table_11677100_3 (school VARCHAR, player VARCHAR)
SELECT school FROM table_11677100_3 WHERE player = "Kerry Wood"
for the name of jamar jackson what is the total of Number?
CREATE TABLE table_name_99 (number VARCHAR, name VARCHAR)
SELECT COUNT(number) FROM table_name_99 WHERE name = "jamar jackson"
What is the lowest Year, when Tournament is "Beijing"?
CREATE TABLE table_name_51 (year INTEGER, tournament VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE tournament = "beijing"
What actor was nominted for an award in the film Anastasiya Slutskaya?
CREATE TABLE table_10236830_6 (actors_name VARCHAR, film_name VARCHAR)
SELECT actors_name FROM table_10236830_6 WHERE film_name = "Anastasiya Slutskaya"
What grid is associated with 67 laps?
CREATE TABLE table_name_45 (grid VARCHAR, laps VARCHAR)
SELECT grid FROM table_name_45 WHERE laps = 67
What is the largest % Won with a Lost smaller than 0?
CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER)
SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 0
What was the lowest Attendance on 8 October 1986?
CREATE TABLE table_name_1 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_1 WHERE date = "8 october 1986"
How many races were in the Mallala Motor Sport Park circuit?
CREATE TABLE table_name_48 (race VARCHAR, circuit VARCHAR)
SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport park"
What is the Place of the half marathon Event?
CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR)
SELECT place FROM table_name_88 WHERE event = "half marathon"
What is the entry for Upper index Kcal/ Nm 3 for the row with an entry that has a Lower index MJ/ Nm 3 of 47.91, and an Upper index MJ/ Nm 3 larger than 53.28?
CREATE TABLE table_name_93 (upper_index_kcal__nm_3 INTEGER, lower_index_mj__nm_3 VARCHAR, upper_index_mj__nm_3 VARCHAR)
SELECT SUM(upper_index_kcal__nm_3) FROM table_name_93 WHERE lower_index_mj__nm_3 = 47.91 AND upper_index_mj__nm_3 > 53.28
What is the date for the mount panorama circuit?
CREATE TABLE table_26686908_2 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_26686908_2 WHERE circuit = "Mount Panorama circuit"
What is the council area for the Larkhall urban sub-area?
CREATE TABLE table_name_51 (council_area VARCHAR, urban_sub_area VARCHAR)
SELECT council_area FROM table_name_51 WHERE urban_sub_area = "larkhall"
What was the number in attendance for the Detroit Lions game?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_21 WHERE opponent = "detroit lions"
Which opponent has a loss of erickson (8-19)?
CREATE TABLE table_name_46 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_46 WHERE loss = "erickson (8-19)"
What type of planet has a radial velocity of 45.2 m/s?
CREATE TABLE table_name_56 (planet VARCHAR, radial_velocity__m_s_ INTEGER)
SELECT planet AS Type FROM table_name_56 WHERE radial_velocity__m_s_ > 45.2
What is the value in 2008 when 1R is 2009 and 3R?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT 2008 FROM table_name_77 WHERE 2009 = "1r" AND 2006 = "3r"
Who was the opponent for the game that had 90,287 in attendance?
CREATE TABLE table_name_77 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_77 WHERE attendance = "90,287"
What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11?
CREATE TABLE table_name_82 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_82 WHERE opponent = "los angeles rams" AND week < 11
What is the home team's score for the game at Junction Oval?
CREATE TABLE table_name_42 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_42 WHERE venue = "junction oval"
Which team won at the symmons plains raceway?
CREATE TABLE table_name_42 (team VARCHAR, circuit VARCHAR)
SELECT team FROM table_name_42 WHERE circuit = "symmons plains raceway"
How many figures are there for No votes for the Forest Rehabilitation Debt Limit Amendment?
CREATE TABLE table_256286_45 (no_votes VARCHAR, description VARCHAR)
SELECT COUNT(no_votes) FROM table_256286_45 WHERE description = "Forest Rehabilitation Debt Limit Amendment"
When the result was l 13-7 ot, who was the opponent?
CREATE TABLE table_name_27 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_27 WHERE result = "l 13-7 ot"
Which driver has a Time/Retired of +6 laps?
CREATE TABLE table_name_21 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_21 WHERE time_retired = "+6 laps"
Name the total number of opponent in the final for 6–2, 6–1, 6–3
CREATE TABLE table_23235767_4 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
SELECT COUNT(opponent_in_the_final) FROM table_23235767_4 WHERE score_in_the_final = "6–2, 6–1, 6–3"
Which date was for Japan?
CREATE TABLE table_name_66 (date VARCHAR, country VARCHAR)
SELECT date FROM table_name_66 WHERE country = "japan"
What city or Raion (district) has 8,600 Bessarabian Bulgarians?
CREATE TABLE table_name_58 (raion__district__or_city VARCHAR, bessarabian_bulgarians VARCHAR)
SELECT raion__district__or_city FROM table_name_58 WHERE bessarabian_bulgarians = "8,600"
In what year and location did Liu Guozheng win the Mens Singles?
CREATE TABLE table_28138035_35 (year_location VARCHAR, mens_singles VARCHAR)
SELECT year_location FROM table_28138035_35 WHERE mens_singles = "Liu Guozheng"
What is the title of the episode watched by 0.88 million U.S. viewers?
CREATE TABLE table_28680377_2 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT title FROM table_28680377_2 WHERE us_viewers__million_ = "0.88"
How many mountains classifications when Rui Costa is the winner?
CREATE TABLE table_25999087_2 (mountains_classification VARCHAR, winner VARCHAR)
SELECT COUNT(mountains_classification) FROM table_25999087_2 WHERE winner = "Rui Costa"
What team was the home team when Tottenham Hotspur is the away team?
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_86 WHERE away_team = "tottenham hotspur"
Which Goals have Ends of 30 june 2010, and Since larger than 2007?
CREATE TABLE table_name_14 (goals VARCHAR, ends VARCHAR, since VARCHAR)
SELECT goals FROM table_name_14 WHERE ends = "30 june 2010" AND since > 2007
What is the distance for the 5 September race?
CREATE TABLE table_name_69 (distance VARCHAR, date VARCHAR)
SELECT distance FROM table_name_69 WHERE date = "5 september"
Find the total number of hours have done for all students in each department.
CREATE TABLE student (dept_code VARCHAR, stu_hrs INTEGER)
SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code
What is Type for Rite Albanian?
CREATE TABLE table_name_63 (type VARCHAR, rite VARCHAR)
SELECT type FROM table_name_63 WHERE rite = "albanian"
What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
CREATE TABLE Staff (date_of_birth VARCHAR, first_name VARCHAR, last_name VARCHAR)
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
When was the last win for the club that had a final loss in 2011?
CREATE TABLE table_name_34 (last_win VARCHAR, last_final_lost VARCHAR)
SELECT last_win FROM table_name_34 WHERE last_final_lost = "2011"
Name the Years as tallest has a Height metres / ft of 07.0 150 / 493 [b ]?
CREATE TABLE table_name_95 (years_as_tallest VARCHAR, height_metres___ft VARCHAR)
SELECT years_as_tallest FROM table_name_95 WHERE height_metres___ft = "07.0 150 / 493 [b ]"
Who is the host in the city of Philadelphia?
CREATE TABLE table_name_61 (host VARCHAR, city VARCHAR)
SELECT host FROM table_name_61 WHERE city = "philadelphia"
How many episodes had a production code 120?
CREATE TABLE table_27720737_1 (series__number VARCHAR, production_code VARCHAR)
SELECT COUNT(series__number) FROM table_27720737_1 WHERE production_code = 120
Which 2009 has a 2012 larger than 9,265?
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT MAX(2009) FROM table_name_61 WHERE 2012 > 9 OFFSET 265
What is the PAL B, G, H for the PAL I 4.43361875mhz?
CREATE TABLE table_name_60 (pal_b VARCHAR, g VARCHAR, h VARCHAR, pal_i VARCHAR)
SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz"
Which Year(s) won has a Total larger than 295?
CREATE TABLE table_name_31 (year_s__won VARCHAR, total INTEGER)
SELECT year_s__won FROM table_name_31 WHERE total > 295
what is the gdp ( bn ) where capital is capital?
CREATE TABLE table_12108_1 (gdp___bn__ VARCHAR)
SELECT gdp___bn__ FROM table_12108_1 WHERE "capital" = "capital"
What was the qualification with more than 585 laps?
CREATE TABLE table_name_16 (qual VARCHAR, laps VARCHAR)
SELECT qual FROM table_name_16 WHERE laps = 585
Name the poles for season 2006
CREATE TABLE table_27786562_1 (poles VARCHAR, season VARCHAR)
SELECT poles FROM table_27786562_1 WHERE season = 2006
What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?
CREATE TABLE table_name_66 (_2_clubs VARCHAR, total VARCHAR)
SELECT MIN(4 AS _hoops), _2_clubs FROM table_name_66 WHERE total = 38.25
How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated?
CREATE TABLE table_name_72 (votes VARCHAR, _percentage_of_national_vote VARCHAR, candidates_nominated VARCHAR)
SELECT COUNT(votes) FROM table_name_72 WHERE _percentage_of_national_vote = 13.11 AND candidates_nominated > 39
What is the fewest points that has more than 29 goals?
CREATE TABLE table_name_42 (points INTEGER, goal_difference INTEGER)
SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29
What's the least amount of points that Walter Wolf Racing had after 1974?
CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = "walter wolf racing"
What college did Jim Bennett attend?
CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR)
SELECT college FROM table_26996293_1 WHERE player = "Jim Bennett"
what is the least amount of cattle head
CREATE TABLE table_29012710_1 (number_of_dairy_cows INTEGER)
SELECT MIN(number_of_dairy_cows) FROM table_29012710_1
Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain?
CREATE TABLE table_name_82 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR)
SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain"
Which country has a Youth (15-24) Literacy Rate Total of 100% and has an Adult Women Literacy rate of 92%?
CREATE TABLE table_name_60 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, adult_women VARCHAR)
SELECT country FROM table_name_60 WHERE youth__15_24__literacy_rate_total = "100%" AND adult_women = "92%"
The Zeehond was built by whom?
CREATE TABLE table_name_49 (builder VARCHAR, ship VARCHAR)
SELECT builder FROM table_name_49 WHERE ship = "zeehond"
What is the lowest Ofsted number for a primary with a CE faith, intake of 30 and a DCSF number lower than 3349?
CREATE TABLE table_name_72 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR, faith VARCHAR)
SELECT MIN(ofsted_number) FROM table_name_72 WHERE type = "primary" AND faith = "ce" AND intake = 30 AND dcsf_number < 3349
Name the release date for album # 2nd
CREATE TABLE table_1893815_1 (release_date VARCHAR, album_number VARCHAR)
SELECT release_date FROM table_1893815_1 WHERE album_number = "2nd"
How much money did the player Ed Oliver win?
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver"
Which event had a total of defending champion?
CREATE TABLE table_name_39 (event VARCHAR, total VARCHAR)
SELECT event FROM table_name_39 WHERE total = "defending champion"
What format is Première Chaîne?
CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR)
SELECT format FROM table_name_44 WHERE branding = "première chaîne"
Who had the high assists when the team was @ Minnesota?
CREATE TABLE table_17323092_7 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_17323092_7 WHERE team = "@ Minnesota"
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team.
CREATE TABLE table_23292220_6 (episode VARCHAR, jasons_team VARCHAR)
SELECT episode FROM table_23292220_6 WHERE jasons_team = "Duncan James and Johnny Vegas"
What was the final score when the Temple Owls beat Virginia Tech?
CREATE TABLE table_25461946_5 (score VARCHAR, team VARCHAR)
SELECT score FROM table_25461946_5 WHERE team = "Virginia Tech"
How many million viewers watched the episode that runs 25:55 minutes?
CREATE TABLE table_1785117_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT viewers__in_millions_ FROM table_1785117_1 WHERE run_time = "25:55"