text
stringlengths
293
1.24k
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_65 (school VARCHAR, capacity VARCHAR, ages VARCHAR, ofsted VARCHAR) ### Question: Which School has Ages of 11-16, and an Ofsted smaller than 106142, and a Capacity of 1206? ### Answer: SELECT school FROM table_name_65 WHERE ages = "11-16" AND ofsted < 106142 AND capacity = 1206
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_93 (laps VARCHAR, time_retired VARCHAR) ### Question: How many laps were driven when the time/retired is +44.284? ### Answer: SELECT COUNT(laps) FROM table_name_93 WHERE time_retired = "+44.284"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_60 (tournament VARCHAR) ### Question: What is the 2012 value with an A value in 2007 and A value in 2010 in the Canada Masters? ### Answer: SELECT 2012 FROM table_name_60 WHERE 2007 = "a" AND 2010 = "a" AND tournament = "canada masters"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28498999_4 (before INTEGER, score VARCHAR) ### Question: What is the before for the score of 63-67-66-71=267? ### Answer: SELECT MIN(before) FROM table_28498999_4 WHERE score = 63 - 67 - 66 - 71 = 267
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_63 (tie_no VARCHAR, away_team VARCHAR) ### Question: What was the tie number with the away team of Sheffield Wednesday? ### Answer: SELECT tie_no FROM table_name_63 WHERE away_team = "sheffield wednesday"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1676073_12 (points_for VARCHAR, points_against VARCHAR) ### Question: How many teams had 632 points against? ### Answer: SELECT COUNT(points_for) FROM table_1676073_12 WHERE points_against = "632"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR) ### Question: What was the Home team when Farnborough Town was the Away team? ### Answer: SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR) ### Question: In what week(s) did the Broncos go up against the Cleveland Browns? ### Answer: SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_88 (gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) ### Question: Name the gold coast which has an auckland of no and melbourne of yes ### Answer: SELECT gold_coast FROM table_name_88 WHERE auckland = "no" AND melbourne = "yes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_19 (constructor VARCHAR, grid VARCHAR, laps VARCHAR) ### Question: What constructor has a grid less than 13 with under 9 laps? ### Answer: SELECT constructor FROM table_name_19 WHERE grid < 13 AND laps < 9
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_66 (week VARCHAR, opponent VARCHAR) ### Question: On what Week was the Detroit Lions the Opponent? ### Answer: SELECT week FROM table_name_66 WHERE opponent = "detroit lions"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_46 (years_for_jazz VARCHAR, school_club_team VARCHAR) ### Question: What is the Years for Jazz Club at Oregon State? ### Answer: SELECT years_for_jazz FROM table_name_46 WHERE school_club_team = "oregon state"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_35 (outcome VARCHAR, surface VARCHAR) ### Question: What is the Outcome of the Doubles played on Carpet? ### Answer: SELECT outcome FROM table_name_35 WHERE surface = "carpet"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_84 (romanised_name VARCHAR, portfolio_attachment VARCHAR) ### Question: What is the Romanised name of the Undersecretary with an education portfolio attachment? ### Answer: SELECT romanised_name FROM table_name_84 WHERE portfolio_attachment = "education"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_35 (year INTEGER, winner VARCHAR, location VARCHAR) ### Question: What is the earliest year the new york jets won at harvard stadium? ### Answer: SELECT MIN(year) FROM table_name_35 WHERE winner = "new york jets" AND location = "harvard stadium"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_41 (catalog_nr VARCHAR, title VARCHAR, format VARCHAR, label VARCHAR) ### Question: What is the Catalog-Nr of the Epic Label Stereo LP named For Little Ones? ### Answer: SELECT catalog_nr FROM table_name_41 WHERE format = "stereo lp" AND label = "epic" AND title = "for little ones"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15187735_3 (episode VARCHAR, segment_c VARCHAR) ### Question: Name the number of episode for phyllo dough ### Answer: SELECT COUNT(episode) FROM table_15187735_3 WHERE segment_c = "Phyllo Dough"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, tie_no VARCHAR) ### Question: Who is the home team with a tie no. 12? ### Answer: SELECT home_team FROM table_name_70 WHERE tie_no = "12"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_47 (spoofed_title VARCHAR, date VARCHAR) ### Question: Which Spoofed title is from February 1998? ### Answer: SELECT spoofed_title FROM table_name_47 WHERE date = "february 1998"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_38 (year__ceremony_ VARCHAR, language_s_ VARCHAR, original_title VARCHAR) ### Question: WHAT IS THE YEAR WITH DARI, AND TITLE osama (أسامة)? ### Answer: SELECT year__ceremony_ FROM table_name_38 WHERE language_s_ = "dari" AND original_title = "osama (أسامة)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11447995_2 (liscumb VARCHAR, haydon VARCHAR) ### Question: What is Liscumb when Haydon is 1632? ### Answer: SELECT liscumb FROM table_11447995_2 WHERE haydon = "1632"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR) ### Question: How many clubs does the student named "Eric Tai" belong to? ### Answer: SELECT COUNT(DISTINCT t1.clubname) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Eric" AND t3.lname = "Tai"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_48 (institution VARCHAR, nickname VARCHAR, classification VARCHAR, current_conference VARCHAR) ### Question: What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils? ### Answer: SELECT institution FROM table_name_48 WHERE classification = "ncaa division i" AND current_conference = "nec" AND nickname = "blue devils"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_22 (date VARCHAR, result VARCHAR) ### Question: When was the result 3-1? ### Answer: SELECT date FROM table_name_22 WHERE result = "3-1"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (away VARCHAR, home VARCHAR, season VARCHAR) ### Question: What is the away when the home is 3-2, and the season is 1959-60? ### Answer: SELECT away FROM table_name_61 WHERE home = "3-2" AND season = "1959-60"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14390413_1 (team VARCHAR) ### Question: Name the 1991-1992 for river plate ### Answer: SELECT 1991 AS _1992 FROM table_14390413_1 WHERE team = "River Plate"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1639689_2 (kickoff VARCHAR, date VARCHAR) ### Question: What was the kickoff time on monday, may 13? ### Answer: SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1449176_1 (density__inhabitants_km_2__ VARCHAR, common_of VARCHAR) ### Question: The common of Chieri has what population density? ### Answer: SELECT density__inhabitants_km_2__ FROM table_1449176_1 WHERE common_of = "Chieri"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_32 (object_type VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR) ### Question: Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″? ### Answer: SELECT object_type FROM table_name_32 WHERE constellation = "orion" AND ngc_number > 2174 AND declination___j2000__ = "°48′06″"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1180228_1 (dvd_name VARCHAR, num_of_discs INTEGER) ### Question: What is the name of the DVD where the number of discs is greater than 2.0 ### Answer: SELECT dvd_name FROM table_1180228_1 WHERE num_of_discs > 2.0
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19457_1 (villages VARCHAR, state_region VARCHAR) ### Question: How many villages are there in the Magway region? ### Answer: SELECT villages FROM table_19457_1 WHERE state_region = "Magway Region"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_15 (mintage VARCHAR, year VARCHAR, butterfly VARCHAR) ### Question: What mintage earlier than the year 2006 has the butterfly great spangled fritillary. ### Answer: SELECT mintage FROM table_name_15 WHERE year < 2006 AND butterfly = "great spangled fritillary"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_76 (co_drivers VARCHAR, year VARCHAR) ### Question: What were the co-drivers in 2008? ### Answer: SELECT co_drivers FROM table_name_76 WHERE year = 2008
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_12 (rating VARCHAR, season VARCHAR) ### Question: What is the rating of the season 10? ### Answer: SELECT rating FROM table_name_12 WHERE season = "season 10"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_52 (track_number INTEGER, time VARCHAR, title VARCHAR) ### Question: What is the average track number 3:25 long and a title of Great Getting up Mornin'? ### Answer: SELECT AVG(track_number) FROM table_name_52 WHERE time = "3:25" AND title = "great getting up mornin'"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR) ### Question: What are the other awards for 1995? ### Answer: SELECT other_awards FROM table_name_77 WHERE year = 1995
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_58 (tournament VARCHAR) ### Question: What Tournament of the french open had 2004 that has a 1998 of 2r? ### Answer: SELECT 2004 FROM table_name_58 WHERE 1998 = "2r" AND tournament = "french open"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR) ### Question: What resulted in a score of 22-21? ### Answer: SELECT result FROM table_name_27 WHERE score = "22-21"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_30 (language_rebroadcast VARCHAR, branding VARCHAR) ### Question: what is the language/rebroadcast for cbc radio one? ### Answer: SELECT language_rebroadcast FROM table_name_30 WHERE branding = "cbc radio one"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR) ### Question: Goals for of 288, and Points smaller than 85 what is the highest goals against? ### Answer: SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1176371_1 (location VARCHAR, la_matches VARCHAR, name_of_ground VARCHAR) ### Question: Where is ropery lane and la matches 7 location? ### Answer: SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = "Ropery Lane"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR) ### Question: What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"? ### Answer: SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = "o /ɵ/"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR) ### Question: What is the result of the hypo-meeting before 2010? ### Answer: SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_9 (total INTEGER, nation VARCHAR) ### Question: How many total medals for the netherlands? ### Answer: SELECT SUM(total) FROM table_name_9 WHERE nation = "netherlands"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_16 (series VARCHAR, date VARCHAR) ### Question: What was the series on may 27? ### Answer: SELECT series FROM table_name_16 WHERE date = "may 27"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2668243_17 (result VARCHAR, candidates VARCHAR) ### Question: Name the result for james lent (j) 52.3% silas wood (aj) 47.7% ### Answer: SELECT result FROM table_2668243_17 WHERE candidates = "James Lent (J) 52.3% Silas Wood (AJ) 47.7%"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_80 (pci_express VARCHAR, memory VARCHAR, model VARCHAR) ### Question: What is the PCI-express with a ddr2 memory and a nforce 520 model? ### Answer: SELECT pci_express FROM table_name_80 WHERE memory = "ddr2" AND model = "nforce 520"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_77 (competition VARCHAR, total VARCHAR) ### Question: Which competition led to a total weight of 428kg? ### Answer: SELECT competition FROM table_name_77 WHERE total = "428kg"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_54 (viewers__m_ INTEGER, rating VARCHAR, episode VARCHAR) ### Question: What Viewers (m) has a Rating of 1.7, and an Episode of the game of life? ### Answer: SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = "1.7" AND episode = "the game of life"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: 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) ### Question: What are the response received dates for the documents described as 'Regular' or granted with more than 100? ### Answer: 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
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11622771_1 (purse__ VARCHAR, date VARCHAR) ### Question: How many purses were there for the mar 16? ### Answer: SELECT COUNT(purse__) AS $__ FROM table_11622771_1 WHERE date = "Mar 16"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11959669_7 (score VARCHAR, date VARCHAR) ### Question: What was the final score on March 26? ### Answer: SELECT score FROM table_11959669_7 WHERE date = "March 26"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21312845_1 (written_by VARCHAR, directed_by VARCHAR) ### Question: Who wrote the episodes directed by David Straiton? ### Answer: SELECT written_by FROM table_21312845_1 WHERE directed_by = "David Straiton"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15944_5 (engine_type VARCHAR, scenario VARCHAR) ### Question: What engine type is used in a Space Shuttle Vacuum scenario? ### Answer: SELECT engine_type FROM table_15944_5 WHERE scenario = "Space shuttle vacuum"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_49 (save VARCHAR, opponent VARCHAR) ### Question: What is the save of the game with rice as the opponent? ### Answer: SELECT save FROM table_name_49 WHERE opponent = "rice"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_43 (labour_panel INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR) ### Question: What is the highest labour panel value with a cultural and educational panel greater than 1, a University of Dublin value greater than 0, and a total value less than 60? ### Answer: SELECT MAX(labour_panel) FROM table_name_43 WHERE cultural_and_educational_panel > 1 AND university_of_dublin > 0 AND total < 60
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_38 (attendance INTEGER, time VARCHAR) ### Question: What is the attendance amount of the race with a time of 2:07? ### Answer: SELECT MAX(attendance) FROM table_name_38 WHERE time = "2:07"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR) ### Question: what is the state when the peak population (year) is 134995 (1950)? ### Answer: SELECT state FROM table_name_33 WHERE peak_population__year_ = "134995 (1950)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_71 (poles INTEGER, points VARCHAR) ### Question: WHAT IS THE AVERAGE POLES WITH POINTS N/A? ### Answer: SELECT AVG(poles) FROM table_name_71 WHERE points = "n/a"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_30 (tournament VARCHAR, margin_of_victory VARCHAR) ### Question: What is Tournament, when Margin is Victory of 6 Strokes? ### Answer: SELECT tournament FROM table_name_30 WHERE margin_of_victory = "6 strokes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_73 (gross VARCHAR, director VARCHAR) ### Question: WHAT IS THE GROSS WITH A DIRECTOR OF RICHARD TUGGLE? ### Answer: SELECT gross FROM table_name_73 WHERE director = "richard tuggle"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_17 (number_of_deputies INTEGER, number_of_votes_received VARCHAR, election_date VARCHAR) ### Question: What was deputies with the lowest number of unknown received votes, in an election year after 1986? ### Answer: SELECT MIN(number_of_deputies) FROM table_name_17 WHERE number_of_votes_received = "unknown" AND election_date > 1986
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19625976_1 (result VARCHAR, film_title_used_in_nomination VARCHAR) ### Question: If the film title nominated is Baran, what was the result? ### Answer: SELECT result FROM table_19625976_1 WHERE film_title_used_in_nomination = "Baran"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_82 (share VARCHAR, audience VARCHAR) ### Question: What was the share when the audience was 3.944.000? ### Answer: SELECT share FROM table_name_82 WHERE audience = "3.944.000"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_37 (nation VARCHAR, record VARCHAR) ### Question: What is the Nation with a Record that is 7.39? ### Answer: SELECT nation FROM table_name_37 WHERE record = "7.39"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_50 (mountain_range VARCHAR, mountain_peak VARCHAR) ### Question: what is the mountain range when the mountain peak is mauna kea? ### Answer: SELECT mountain_range FROM table_name_50 WHERE mountain_peak = "mauna kea"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_75 (pole VARCHAR, class VARCHAR) ### Question: How many poles had a moto2 class? ### Answer: SELECT pole FROM table_name_75 WHERE class = "moto2"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (title VARCHAR, last_year VARCHAR, first_year VARCHAR, publisher VARCHAR) ### Question: Which EC Comics title ran from 1950 to 1953? ### Answer: SELECT title FROM table_name_61 WHERE first_year = "1950" AND publisher = "ec comics" AND last_year = "1953"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Student (StuID VARCHAR, age INTEGER); CREATE TABLE Participates_in (StuID VARCHAR, age INTEGER) ### Question: Show the ids for all the students who participate in an activity and are under 20. ### Answer: SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_30 (location VARCHAR, event VARCHAR) ### Question: What location did the event kotc: mortal sins take place? ### Answer: SELECT location FROM table_name_30 WHERE event = "kotc: mortal sins"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11167610_1 (engine VARCHAR, performance VARCHAR) ### Question: what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph) ### Answer: SELECT engine FROM table_11167610_1 WHERE performance = "0–100km/h: 10.5s, VMax km/h (mph)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Reviewer (name VARCHAR, title VARCHAR); CREATE TABLE Movie (name VARCHAR, title VARCHAR) ### Question: Return all reviewer names and movie names together in a single list. ### Answer: SELECT name FROM Reviewer UNION SELECT title FROM Movie
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1939235_1 (division INTEGER, regular_season VARCHAR) ### Question: When 5th is the regular season what is the highest season? ### Answer: SELECT MAX(division) FROM table_1939235_1 WHERE regular_season = "5th"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_91 (last_title VARCHAR, titles VARCHAR, position_in_2012 VARCHAR) ### Question: what is the last title when the titles is more than 12 and the position in 2012 is 7th ### Answer: SELECT last_title FROM table_name_91 WHERE titles > 12 AND position_in_2012 = "7th"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_95 (score VARCHAR, date VARCHAR) ### Question: What was the score of the March 14 game? ### Answer: SELECT score FROM table_name_95 WHERE date = "march 14"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR) ### Question: What are the lowest laps of grid 17? ### Answer: SELECT MIN(laps) FROM table_name_69 WHERE grid = 17
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_61 (away_team VARCHAR, home_team VARCHAR) ### Question: What away team did Melbourne play as the home team? ### Answer: SELECT away_team FROM table_name_61 WHERE home_team = "melbourne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_47 (host_city VARCHAR, season VARCHAR) ### Question: What is the host city during the 2012 season? ### Answer: SELECT host_city FROM table_name_47 WHERE season = 2012
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (res VARCHAR, record VARCHAR) ### Question: Which result has a Record of 16-6? ### Answer: SELECT res FROM table_name_20 WHERE record = "16-6"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR) ### Question: What is the class of the Charlotte Camel gt 500 race? ### Answer: SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_33 (date VARCHAR, competition VARCHAR, runners_up VARCHAR) ### Question: What date did the Fai Cup with Derry City F.C. as runners-up take place? ### Answer: SELECT date FROM table_name_33 WHERE competition = "fai cup" AND runners_up = "derry city f.c."
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1805191_34 (candidates VARCHAR, incumbent VARCHAR) ### Question: How many times did Robin Hayes run? ### Answer: SELECT COUNT(candidates) FROM table_1805191_34 WHERE incumbent = "Robin Hayes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_87 (Id VARCHAR) ### Question: What is the 2008 value that was 2nd in 2006? ### Answer: SELECT 2008 FROM table_name_87 WHERE 2006 = "2nd"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_8 (builder VARCHAR, built INTEGER) ### Question: Which builder has a Built smaller than 1880? ### Answer: SELECT builder FROM table_name_8 WHERE built < 1880
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_50 (losses VARCHAR, played INTEGER) ### Question: What is the total number of losses for the over 30 games played? ### Answer: SELECT COUNT(losses) FROM table_name_50 WHERE played > 30
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_66 (wins INTEGER, rank VARCHAR, country VARCHAR, player VARCHAR) ### Question: Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4? ### Answer: SELECT MAX(wins) FROM table_name_66 WHERE country = "united states" AND player = "andy bean" AND rank < 4
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_20354_5 (transcription VARCHAR, thai_name VARCHAR) ### Question: What's the transcription for the Thai name พฤษภาคม? ### Answer: SELECT transcription FROM table_20354_5 WHERE thai_name = "พฤษภาคม"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE csu_fees (campusfee INTEGER) ### Question: Find the count of universities whose campus fee is greater than the average campus fee. ### Answer: SELECT COUNT(*) FROM csu_fees WHERE campusfee > (SELECT AVG(campusfee) FROM csu_fees)
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) ### Question: What is the record for the game played on September 27? ### Answer: SELECT record FROM table_name_26 WHERE date = "september 27"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_67 (vuelta_wins VARCHAR, name VARCHAR, points VARCHAR, country VARCHAR) ### Question: How many times is vuelta wins when points is more than 0, country is spain and the name is josé pérez-francés? ### Answer: SELECT COUNT(vuelta_wins) FROM table_name_67 WHERE points > 0 AND country = "spain" AND name = "josé pérez-francés"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_45 (date VARCHAR, attendance INTEGER) ### Question: What game had more than 50,324 in attendance? ### Answer: SELECT date FROM table_name_45 WHERE attendance > 50 OFFSET 324
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR) ### Question: Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? ### Answer: SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_28 (height VARCHAR, school VARCHAR) ### Question: How tall is the player from Nacogdoches High School? ### Answer: SELECT height FROM table_name_28 WHERE school = "nacogdoches high school"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_32 (trofeo_fast_team VARCHAR, stage VARCHAR) ### Question: who was the trofeo fast team in stage 10? ### Answer: SELECT trofeo_fast_team FROM table_name_32 WHERE stage = "10"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR) ### Question: What is the highest crowd population when the away team is Geelong? ### Answer: SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_48 (home_team VARCHAR) ### Question: What is melbourne's home team score? ### Answer: SELECT home_team AS score FROM table_name_48 WHERE home_team = "melbourne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_87 (ordered VARCHAR, name VARCHAR) ### Question: What ordered has helena as the name? ### Answer: SELECT ordered FROM table_name_87 WHERE name = "helena"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26519486_1 (member_countries VARCHAR, languages VARCHAR) ### Question: Name the member countries for finnish swedish ### Answer: SELECT member_countries FROM table_26519486_1 WHERE languages = "Finnish Swedish"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_10975034_2 (player VARCHAR, college VARCHAR) ### Question: Which player from the 2004 CFL draft attended Wilfrid Laurier? ### Answer: SELECT player FROM table_10975034_2 WHERE college = "Wilfrid Laurier"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_51 (points INTEGER, year INTEGER) ### Question: What are the lowest points past the year 1978? ### Answer: SELECT MIN(points) FROM table_name_51 WHERE year > 1978