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_47 (away_team VARCHAR, venue VARCHAR) ### Question: What is the away team score of the game that was played at princes park? ### Answer: SELECT away_team AS score FROM table_name_47 WHERE venue = "princes park"
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_2 (replaced_by VARCHAR, team VARCHAR) ### Question: What is the name of the replacement manager for the Bolton Wanderers? ### Answer: SELECT replaced_by FROM table_name_2 WHERE team = "bolton wanderers"
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_21796261_4 (attendance VARCHAR, date VARCHAR) ### Question: How many people were present at the July 10 game? ### Answer: SELECT attendance FROM table_21796261_4 WHERE date = "July 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_2655016_4 (episode_title VARCHAR, nick_prod__number VARCHAR) ### Question: What's the name of the episode associated with Nick production number 342? ### Answer: SELECT episode_title FROM table_2655016_4 WHERE nick_prod__number = 342
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 (director_s_ VARCHAR, recipient VARCHAR) ### Question: Who directed a film for Cracking Film Productions? ### Answer: SELECT director_s_ FROM table_name_80 WHERE recipient = "cracking film productions"
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_25330991_3 (reidsville VARCHAR, information VARCHAR) ### Question: Name the reidsville for enrollment ### Answer: SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment"
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_42 (name VARCHAR, release_date VARCHAR, location VARCHAR) ### Question: What is the name with a release date of December 1966, and a Location of UK? ### Answer: SELECT name FROM table_name_42 WHERE release_date = "december 1966" AND location = "uk"
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_44 (engine VARCHAR, driver VARCHAR) ### Question: I want the engine for luigi villoresi ### Answer: SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi"
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_97 (class VARCHAR, wheels VARCHAR) ### Question: What is the value for the item "Class" when the value of the item "Wheels" is 137? ### Answer: SELECT class FROM table_name_97 WHERE wheels = 137
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 (album VARCHAR, lifetime_achievement_award VARCHAR) ### Question: Which album awarded Paul McGuinness a Lifetime Achievement Award? ### Answer: SELECT album FROM table_name_20 WHERE lifetime_achievement_award = "paul mcguinness"
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 (nationality VARCHAR, name VARCHAR) ### Question: Swimmer Aurore Mongel has what nationality? ### Answer: SELECT nationality FROM table_name_88 WHERE name = "aurore mongel"
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_56 (round_4 INTEGER, score VARCHAR, year VARCHAR) ### Question: What is the highest score in round 4 and total of 284 in a year more recent than 1998? ### Answer: SELECT MAX(round_4) FROM table_name_56 WHERE score = 284 AND year > 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_12 (home_team VARCHAR, away_team VARCHAR) ### Question: What is the home team's score when the away team is south melbourne? ### Answer: SELECT home_team AS score FROM table_name_12 WHERE away_team = "south 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_55 (transfer_window VARCHAR, status VARCHAR) ### Question: What is the transfer window for the player whose status was loan ended? ### Answer: SELECT transfer_window FROM table_name_55 WHERE status = "loan ended"
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 (enrollment INTEGER, mascot VARCHAR) ### Question: What's the least enrolled when the mascot was the Trojans? ### Answer: SELECT MIN(enrollment) FROM table_name_8 WHERE mascot = "trojans"
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 university (Enrollment INTEGER) ### Question: What is the maximum enrollment across all schools? ### Answer: SELECT MAX(Enrollment) FROM university
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_30083499_1 (coefficient VARCHAR, tournament VARCHAR) ### Question: the 2010 clausura tournament? ### Answer: SELECT coefficient FROM table_30083499_1 WHERE tournament = "2010 Clausura"
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 ship (lost_in_battle VARCHAR, location VARCHAR); CREATE TABLE battle (name VARCHAR, RESULT VARCHAR, bulgarian_commander VARCHAR); CREATE TABLE battle (name VARCHAR, result VARCHAR, bulgarian_commander VARCHAR, id VARCHAR) ### Question: Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'. ### Answer: SELECT name, RESULT, bulgarian_commander FROM battle EXCEPT SELECT T1.name, T1.result, T1.bulgarian_commander FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.location = 'English Channel'
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 (performances INTEGER, role VARCHAR) ### Question: Name the most performances for geoffrey fitton ### Answer: SELECT MAX(performances) FROM table_name_43 WHERE role = "geoffrey fitton"
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 (tournament VARCHAR) ### Question: WHAT IS THE 2010 PERFORMANCE THAT HAD 2009 0F 0, AND FINALS TOURNAMENT? ### Answer: SELECT 2010 FROM table_name_19 WHERE 2009 = "0" AND tournament = "finals"
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_36 (score VARCHAR, record VARCHAR) ### Question: Which Score has a Record of 5-4? ### Answer: SELECT score FROM table_name_36 WHERE record = "5-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 stadium (name VARCHAR, capacity VARCHAR, average VARCHAR) ### Question: What is the name and capacity for the stadium with highest average attendance? ### Answer: SELECT name, capacity FROM stadium ORDER BY average DESC LIMIT 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_67 (authority VARCHAR, gender VARCHAR, name VARCHAR) ### Question: Name the authority for coed gender and chanel college ### Answer: SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college"
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_14875671_1 (date VARCHAR, attendance VARCHAR) ### Question: What was the date when the attendance was 63995 ### Answer: SELECT date FROM table_14875671_1 WHERE attendance = 63995
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 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) ### Question: What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall? ### Answer: SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND total > 18 AND bronze < 8
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_42 (android VARCHAR, other_unix VARCHAR) ### Question: Which Android has anOther Unix of unknown? ### Answer: SELECT android FROM table_name_42 WHERE other_unix = "unknown"
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_98 (play VARCHAR, country VARCHAR, company VARCHAR) ### Question: Which Play is from Cyprus, from the Company Magdalena Zira Theatre? ### Answer: SELECT play FROM table_name_98 WHERE country = "cyprus" AND company = "magdalena zira theatre"
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 party (Governor VARCHAR, Party_ID VARCHAR); CREATE TABLE election (Party VARCHAR, District VARCHAR) ### Question: Who were the governors of the parties associated with delegates from district 1? ### Answer: SELECT T2.Governor FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 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_4 (week INTEGER, result VARCHAR, attendance VARCHAR) ### Question: What was the average week of a game with a result of l 10-7 attended by 37,500? ### Answer: SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 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_16751596_12 (democrat VARCHAR, lead_margin VARCHAR) ### Question: When the lead margin was 35, what were the Democrat: Vivian Davis Figures? ### Answer: SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE lead_margin = 35
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_2249029_1 (gdp_world_rank VARCHAR, asian_rank VARCHAR) ### Question: Name the gdp world rank for asian rank being 15 ### Answer: SELECT gdp_world_rank FROM table_2249029_1 WHERE asian_rank = 15
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 people (people_id VARCHAR, Birth_Date VARCHAR); CREATE TABLE body_builder (total VARCHAR, people_id VARCHAR) ### Question: What are the total scores of the body builders whose birthday contains the string "January" ? ### Answer: SELECT T1.total FROM body_builder AS T1 JOIN people AS T2 ON T1.people_id = T2.people_id WHERE T2.Birth_Date LIKE "%January%"
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 (host VARCHAR, venue VARCHAR) ### Question: What was the host of the round at Hammons Student Center? ### Answer: SELECT host FROM table_name_12 WHERE venue = "hammons student center"
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 (school_club_team VARCHAR, player VARCHAR) ### Question: Which team was Roy de Walt a player on? ### Answer: SELECT school_club_team FROM table_name_20 WHERE player = "roy de walt"
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_24115349_4 (kennedy_votes VARCHAR, coakley_votes VARCHAR) ### Question: How many votes did kennedy win when coaklely won 2139 votes? ### Answer: SELECT COUNT(kennedy_votes) FROM table_24115349_4 WHERE coakley_votes = 2139
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 (final_year INTEGER, notes VARCHAR, first_year VARCHAR) ### Question: What is the most minimal Final year that has a Notes of replaced by i-75 and m-25, and a First year larger than 1926? ### Answer: SELECT MIN(final_year) FROM table_name_45 WHERE notes = "replaced by i-75 and m-25" AND first_year > 1926
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, away_team VARCHAR) ### Question: What is the score of the home team that played Collingwood? ### Answer: SELECT home_team AS score FROM table_name_70 WHERE away_team = "collingwood"
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_23186738_6 (location_attendance VARCHAR, record VARCHAR) ### Question: Name the location attendance of 5-15 ### Answer: SELECT location_attendance FROM table_23186738_6 WHERE record = "5-15"
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_4 (opponent VARCHAR, week VARCHAR) ### Question: Who was the opponent on week 5? ### Answer: SELECT opponent FROM table_name_4 WHERE week = "5"
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 (nfl_team VARCHAR, position VARCHAR, round VARCHAR, overall VARCHAR, pick VARCHAR) ### Question: Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118? ### Answer: SELECT nfl_team FROM table_name_91 WHERE overall > 118 AND pick > 9 AND round > 5 AND position = "de"
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_20424140_3 (number_of_dances INTEGER) ### Question: What's the minimal number of dances a couple has danced? ### Answer: SELECT MIN(number_of_dances) FROM table_20424140_3
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_25 (süskən VARCHAR, malax VARCHAR) ### Question: What is the Süskən village with a Malax village meşəbaş? ### Answer: SELECT süskən FROM table_name_25 WHERE malax = "meşəbaş"
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_85 (draws INTEGER, lexton_plains VARCHAR, against VARCHAR) ### Question: Which Draws have a Lexton Plains of skipton, and an Against larger than 1212? ### Answer: SELECT MAX(draws) FROM table_name_85 WHERE lexton_plains = "skipton" AND against > 1212
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 (result VARCHAR, date VARCHAR) ### Question: What was the final game result that was played on December 2? ### Answer: SELECT result FROM table_name_80 WHERE date = "december 2"
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 (spike INTEGER, name VARCHAR, block VARCHAR) ### Question: What is the average Spike, when Name is Gustavo Porporatto, and when Block is greater than 323? ### Answer: SELECT AVG(spike) FROM table_name_67 WHERE name = "gustavo porporatto" AND block > 323
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 (team_2 VARCHAR, venue VARCHAR) ### Question: Can you tell me the Team 2 that has the Venue of binh duong stadium, vietnam? ### Answer: SELECT team_2 FROM table_name_27 WHERE venue = "binh duong stadium, vietnam"
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_24649082_1 (production_code VARCHAR, written_by VARCHAR) ### Question: What is the production code for the episode written by J. H. Wyman & Jeff Pinkner? ### Answer: SELECT production_code FROM table_24649082_1 WHERE written_by = "J. H. Wyman & Jeff Pinkner"
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_29 (away_team VARCHAR, tie_no VARCHAR) ### Question: Who was the away team when the Tie no was 34? ### Answer: SELECT away_team FROM table_name_29 WHERE tie_no = "34"
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 (myspace_band VARCHAR, original_airdate VARCHAR) ### Question: What is the name of the MySpace Band with an Original Airdate of 25 march 2008? ### Answer: SELECT myspace_band FROM table_name_77 WHERE original_airdate = "25 march 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_18600760_13 (pop__2010_ INTEGER, latitude VARCHAR) ### Question: What is the population associated with latitude 48.676125? ### Answer: SELECT MAX(pop__2010_) FROM table_18600760_13 WHERE latitude = "48.676125"
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 pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR) ### Question: Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841? ### Answer: SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)
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_55 (format VARCHAR, date VARCHAR) ### Question: What format was released April 16, 2009? ### Answer: SELECT format FROM table_name_55 WHERE date = "april 16, 2009"
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 (position VARCHAR, round VARCHAR) ### Question: What was the position of the player who was picked in round 22? ### Answer: SELECT position FROM table_name_49 WHERE round = 22
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 (week INTEGER, date VARCHAR) ### Question: Which week was the 1995-10-01 game on? ### Answer: SELECT MAX(week) FROM table_name_71 WHERE date = "1995-10-01"
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 (title VARCHAR, tv_companions_featured VARCHAR) ### Question: What is Title, when TV Companions Featured is "K-9"? ### Answer: SELECT title FROM table_name_35 WHERE tv_companions_featured = "k-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_1 (wheel_arrangement VARCHAR, year_made VARCHAR) ### Question: What wheel arrangement was made in 1910? ### Answer: SELECT wheel_arrangement FROM table_name_1 WHERE year_made = "1910"
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_25 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR, player VARCHAR) ### Question: What the average amount of field goals Clark has if he has less than 3 touch downs and less than 5 points? ### Answer: SELECT AVG(field_goals) FROM table_name_25 WHERE touchdowns < 3 AND player = "clark" AND points < 5
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 (goals VARCHAR, result VARCHAR, date VARCHAR) ### Question: How many goals have a result of 0-1 on march 28, 2007? ### Answer: SELECT COUNT(goals) FROM table_name_48 WHERE result = "0-1" AND date = "march 28, 2007"
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_62 (year VARCHAR, player VARCHAR) ### Question: Which year had J.R. Reid as a player? ### Answer: SELECT year FROM table_name_62 WHERE player = "j.r. reid"
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 (builder VARCHAR, completed INTEGER) ### Question: Which builder completed after 1889? ### Answer: SELECT builder FROM table_name_93 WHERE completed > 1889
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_13 (pick INTEGER, college VARCHAR) ### Question: What is the lowest pick number for players from king's (ny)? ### Answer: SELECT MIN(pick) FROM table_name_13 WHERE college = "king's (ny)"
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 VARCHAR, league VARCHAR, position VARCHAR) ### Question: What year was the League of malaysian super league, and the Position was 10/14? ### Answer: SELECT year FROM table_name_38 WHERE league = "malaysian super league" AND position = "10/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_61 (location VARCHAR, team VARCHAR) ### Question: What is the Location when the team was seve ballesteros & manuel piñero? ### Answer: SELECT location FROM table_name_61 WHERE team = "seve ballesteros & manuel piñero"
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 (to_par VARCHAR, winning_score VARCHAR) ### Question: Which To par has a Winning score of 64-68-66-63=261? ### Answer: SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261
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_7 (gold INTEGER, rank VARCHAR, bronze VARCHAR) ### Question: What is the smallest number of gold medals corresponding to the total rank with more than 4 bronze medals? ### Answer: SELECT MIN(gold) FROM table_name_7 WHERE rank = "total" AND bronze > 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_name_10 (crowd INTEGER, venue VARCHAR) ### Question: What is the smallest crowd at punt road oval? ### Answer: SELECT MIN(crowd) FROM table_name_10 WHERE venue = "punt road oval"
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 (total INTEGER, free VARCHAR, technical VARCHAR) ### Question: What is the total for the person with free of 47.667, and technical less than 47.417? ### Answer: SELECT SUM(total) FROM table_name_69 WHERE free = 47.667 AND technical < 47.417
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 (winning_driver VARCHAR, pole_position VARCHAR) ### Question: Who's the Winning driver with a Pole position of bryan herta? ### Answer: SELECT winning_driver FROM table_name_46 WHERE pole_position = "bryan herta"
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_79 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) ### Question: What is the highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets? ### Answer: SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99
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_14903881_1 (womens_doubles VARCHAR, mens_doubles VARCHAR) ### Question: Name the womens doubles when mens doubles is charalambos kazilas stepan partemian ### Answer: SELECT womens_doubles FROM table_14903881_1 WHERE mens_doubles = "Charalambos Kazilas Stepan Partemian"
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_39 (home_team VARCHAR, crowd INTEGER) ### Question: What was the score of the home team when there were more than 5,500 people in the crowd? ### Answer: SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 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_20 (tournament VARCHAR, date VARCHAR) ### Question: Which tournament was held on July 13, 2008? ### Answer: SELECT tournament FROM table_name_20 WHERE date = "july 13, 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_93 (updated_in_past_30_days VARCHAR, registration VARCHAR) ### Question: What is Updated In Past 30 Days, when Registration is "Open to people 13 and over"? ### Answer: SELECT updated_in_past_30_days FROM table_name_93 WHERE registration = "open to people 13 and over"
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_23819979_3 (final_position VARCHAR, competition VARCHAR) ### Question: Name the final position for copa libertadores ### Answer: SELECT final_position FROM table_23819979_3 WHERE competition = "Copa Libertadores"
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_1723080_1 (run_time VARCHAR, viewers__in_millions_ VARCHAR) ### Question: What is run time when there were 7.4 million viewers? ### Answer: SELECT run_time FROM table_1723080_1 WHERE viewers__in_millions_ = "7.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_1557752_1 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR) ### Question: If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time? ### Answer: SELECT prothrombin_time FROM table_1557752_1 WHERE partial_thromboplastin_time = "Prolonged" AND bleeding_time = "Prolonged"
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_85 (subjunctive VARCHAR, inverse_subjunctive VARCHAR) ### Question: What subjunctive also has an inverse subjunctive of måchadns? ### Answer: SELECT subjunctive FROM table_name_85 WHERE inverse_subjunctive = "måchadns"
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 (date VARCHAR, winning_driver VARCHAR, name VARCHAR) ### Question: Tell me the date for rudolf caracciola for avusrennen ### Answer: SELECT date FROM table_name_91 WHERE winning_driver = "rudolf caracciola" AND name = "avusrennen"
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 (manufacturer VARCHAR, locomotive_number VARCHAR) ### Question: What manufacturer makes locomotive number CTN 46? ### Answer: SELECT manufacturer FROM table_name_73 WHERE locomotive_number = "ctn 46"
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 (position VARCHAR, birthplace VARCHAR) ### Question: What is the Position when the person's birthplace was toledo, ohio? ### Answer: SELECT position FROM table_name_32 WHERE birthplace = "toledo, ohio"
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_96 (date VARCHAR, result VARCHAR) ### Question: WHEN has a Result of w 23–17? ### Answer: SELECT date FROM table_name_96 WHERE result = "w 23–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_9 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### Question: What was the manner of depature of the manager with a date of appointment on 23 November 2008? ### Answer: SELECT manner_of_departure FROM table_name_9 WHERE date_of_appointment = "23 november 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_85 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) ### Question: Which Player has position of power forward and School/Club Team of Depaul? ### Answer: SELECT player FROM table_name_85 WHERE position = "power forward" AND school_club_team = "depaul"
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_11251109_3 (viewers__m_ VARCHAR, air_date VARCHAR) ### Question: What is the viewership on november 9, 2007? ### Answer: SELECT viewers__m_ FROM table_11251109_3 WHERE air_date = "November 9, 2007"
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_21 (term_in_office VARCHAR, order VARCHAR) ### Question: What is the Term in office with an Order that is 9? ### Answer: SELECT term_in_office FROM table_name_21 WHERE order = "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_28 (rank VARCHAR, speed VARCHAR, rider VARCHAR) ### Question: What is the rank of rider gary johnson, who had a speed of 120.979 mph? ### Answer: SELECT rank FROM table_name_28 WHERE speed = "120.979 mph" AND rider = "gary johnson"
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 station (city VARCHAR) ### Question: What is the number of distinct cities the stations are located at? ### Answer: SELECT COUNT(DISTINCT city) FROM station
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_25008327_8 (словјански VARCHAR, polish VARCHAR) ### Question: What is every value for словјански if polish is książka? ### Answer: SELECT словјански FROM table_25008327_8 WHERE polish = "książka"
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_2668347_14 (party VARCHAR, incumbent VARCHAR) ### Question: how many times was the incumbent is john b. yates? ### Answer: SELECT COUNT(party) FROM table_2668347_14 WHERE incumbent = "John B. Yates"
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 department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE CLASS (crs_code VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR) ### Question: Find the number of classes in each school. ### Answer: SELECT COUNT(*), T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code = T2.crs_code JOIN department AS T3 ON T2.dept_code = T3.dept_code GROUP BY T3.school_code
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_68 (outcome VARCHAR, date VARCHAR) ### Question: What outcome has September 23, 2013 as the date? ### Answer: SELECT outcome FROM table_name_68 WHERE date = "september 23, 2013"
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_83 (position VARCHAR, year VARCHAR) ### Question: What position is 1999? ### Answer: SELECT position FROM table_name_83 WHERE year = 1999
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 (home_team VARCHAR, away_team VARCHAR) ### Question: What home team has Southampton as the away team? ### Answer: SELECT home_team FROM table_name_71 WHERE away_team = "southampton"
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 (size INTEGER, ihsaa_class VARCHAR, location VARCHAR) ### Question: Which Size has an IHSAA Class of aa, and a Location of milan? ### Answer: SELECT SUM(size) FROM table_name_76 WHERE ihsaa_class = "aa" AND location = "milan"
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_57 (year VARCHAR) ### Question: Which year's label was label? ### Answer: SELECT year FROM table_name_57 WHERE "label" = "label"
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_81 (series__number INTEGER, directed_by VARCHAR, written_by VARCHAR) ### Question: What series number was directed by milan cheylov and written by will dixon? ### Answer: SELECT AVG(series__number) FROM table_name_81 WHERE directed_by = "milan cheylov" AND written_by = "will dixon"
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 (crowd INTEGER, away_team VARCHAR) ### Question: What was the largest crowd when Collingwood was the away team? ### Answer: SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
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_98 (location VARCHAR, odds VARCHAR, score VARCHAR) ### Question: Where was the match located when the odds were p + 1 and the score was 1/3? ### Answer: SELECT location FROM table_name_98 WHERE odds = "p + 1" AND score = "1/3"
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 (draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR, position VARCHAR) ### Question: How many draws have goals for less than 56, 10 as the postion, with goals against less than 45? ### Answer: SELECT COUNT(draws) FROM table_name_26 WHERE goals_for < 56 AND position = 10 AND goals_against < 45
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_72 (former_team VARCHAR, pick INTEGER) ### Question: Which Former Team has a Pick larger than 20? ### Answer: SELECT former_team FROM table_name_72 WHERE pick > 20