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_1 (place VARCHAR, player VARCHAR, score VARCHAR) ### Question: What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"? ### Answer: SELECT place FROM table_name_1 WHERE score = 70 - 68 = 138 AND player = "andrew magee"
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_78 (bronze INTEGER, nation VARCHAR, gold VARCHAR, rank VARCHAR) ### Question: Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china? ### Answer: SELECT MAX(bronze) FROM table_name_78 WHERE gold < 1 AND rank = "17" AND nation = "china"
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 (host_location VARCHAR, year VARCHAR) ### Question: Who was the 2nd place team when the location was Tulsa, OK before 1956? ### Answer: SELECT 2 AS nd_place_team FROM table_name_93 WHERE host_location = "tulsa, ok" AND year < 1956
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 Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) ### Question: What is the name of the high schooler who has the greatest number of likes? ### Answer: SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) 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_2 (city VARCHAR, stadium VARCHAR) ### Question: What city is Gwang-Yang stadium in? ### Answer: SELECT city FROM table_name_2 WHERE stadium = "gwang-yang 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_17 (power VARCHAR, city_of_license VARCHAR) ### Question: What power has thunder bay as the city of license? ### Answer: SELECT power FROM table_name_17 WHERE city_of_license = "thunder bay"
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 (away_team VARCHAR, home_team VARCHAR) ### Question: Who was South Melbourne's away team opponent? ### Answer: SELECT away_team FROM table_name_8 WHERE home_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 airports (name VARCHAR, apid VARCHAR); CREATE TABLE routes (src_apid VARCHAR) ### Question: Find the number of routes and airport name for each source airport, order the results by decreasing number of routes. ### Answer: SELECT COUNT(*), T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.src_apid GROUP BY T1.name ORDER BY COUNT(*) DESC
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_2562572_52 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR) ### Question: What is the largest ethnic group (2002) when cyrillic name is брестач? ### Answer: SELECT largest_ethnic_group__2002_ FROM table_2562572_52 WHERE cyrillic_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 table_name_41 (tournament VARCHAR) ### Question: What is Tournament, when 2009 is "Grand Slam Tournaments"? ### Answer: SELECT tournament FROM table_name_41 WHERE 2009 = "grand slam tournaments"
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 Flight (destination VARCHAR) ### Question: Show all destinations and the number of flights to each destination. ### Answer: SELECT destination, COUNT(*) FROM Flight GROUP BY destination
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 Document_locations (location_code VARCHAR) ### Question: What are the different location codes for documents? ### Answer: SELECT DISTINCT location_code FROM Document_locations
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_20668268_1 (name VARCHAR, owner VARCHAR) ### Question: What was the name of the entrant with an owner named David Johnson? ### Answer: SELECT name FROM table_20668268_1 WHERE owner = "David 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 table_17964087_2 (chinese_name VARCHAR, romanised_name VARCHAR) ### Question: What is the chinese name for whom chan chi-yuen, paul is listed as the romanised name? ### Answer: SELECT chinese_name FROM table_17964087_2 WHERE romanised_name = "Chan Chi-yuen, Paul"
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_1013129_8 (college_junior_club_team VARCHAR, player VARCHAR) ### Question: What team is Keith Mccambridge on? ### Answer: SELECT college_junior_club_team FROM table_1013129_8 WHERE player = "Keith McCambridge"
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_11589522_3 (original_air_date VARCHAR, written_by VARCHAR) ### Question: what's the original air date where written by is iain morris & damon beesley ### Answer: SELECT original_air_date FROM table_11589522_3 WHERE written_by = "Iain Morris & Damon Beesley"
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_18 (player VARCHAR, pick__number VARCHAR, nationality VARCHAR, position VARCHAR) ### Question: What which player from Canada was picked #49 and plays left wing? ### Answer: SELECT player FROM table_name_18 WHERE nationality = "canada" AND position = "left wing" AND pick__number = "49"
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_28201906_1 (drawn INTEGER) ### Question: What is the lowest number of drawn games by a team? ### Answer: SELECT MIN(drawn) FROM table_28201906_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_49 (crowd INTEGER, away_team VARCHAR) ### Question: What is the largest crowd when the away team is Hawthorn? ### Answer: SELECT MAX(crowd) FROM table_name_49 WHERE away_team = "hawthorn"
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_22514845_4 (trophy_presentation VARCHAR, year VARCHAR) ### Question: Who is the trophy presentation in the year 1987? ### Answer: SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987
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 (event VARCHAR, games VARCHAR, medal VARCHAR) ### Question: Name the Event of the Games of 1950 auckland and a Medal of bronze? ### Answer: SELECT event FROM table_name_60 WHERE games = "1950 auckland" AND medal = "bronze"
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_19589113_5 (total_population_2001 INTEGER, growth_rate_1991_01 VARCHAR) ### Question: What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08? ### Answer: SELECT MIN(total_population_2001) FROM table_19589113_5 WHERE growth_rate_1991_01 = "33.08"
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_25548630_1 (poles INTEGER) ### Question: What are the most poles listed? ### Answer: SELECT MAX(poles) FROM table_25548630_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_84 (power VARCHAR, engine_code VARCHAR) ### Question: What is the power of the engine with an engine code m44b19? ### Answer: SELECT power FROM table_name_84 WHERE engine_code = "m44b19"
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 (highest_finish VARCHAR, most_recent_finish VARCHAR) ### Question: What is the Highest finish with a Most recent finish that was 2nd? ### Answer: SELECT highest_finish FROM table_name_48 WHERE most_recent_finish = "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_47 (venue VARCHAR, score VARCHAR) ### Question: What is the Venue of the game with a Score of 0–0? ### Answer: SELECT venue FROM table_name_47 WHERE score = "0–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_name_85 (player VARCHAR, place VARCHAR, score VARCHAR) ### Question: What player is in the place of t1 and has the score of 67-70=137? ### Answer: SELECT player FROM table_name_85 WHERE place = "t1" AND score = 67 - 70 = 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_50 (runs_allowed INTEGER, rank VARCHAR, losses VARCHAR) ### Question: How many runs allowed did the team ranked 2 with more than 2 losses have? ### Answer: SELECT AVG(runs_allowed) FROM table_name_50 WHERE rank = 2 AND losses > 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_95 (length VARCHAR, race VARCHAR) ### Question: What is the length of the First Union six hours at the Glen? ### Answer: SELECT length FROM table_name_95 WHERE race = "first union six hours at the glen"
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 (rank VARCHAR, surname VARCHAR) ### Question: What did the Surname Lindberg rank? ### Answer: SELECT COUNT(rank) FROM table_name_47 WHERE surname = "lindberg"
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_1926240_1 (color_system VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR) ### Question: How many color systems has a bit rate of 5.734? ### Answer: SELECT COUNT(color_system) FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "5.734"
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 (completed VARCHAR, builder VARCHAR, name VARCHAR) ### Question: When did chatham complete the Hmsmedusa? ### Answer: SELECT completed FROM table_name_91 WHERE builder = "chatham" AND name = "hmsmedusa"
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 (democratic VARCHAR, district VARCHAR, republican VARCHAR) ### Question: Which Democratic has a District smaller than 7, and a Republican of dan mansell? ### Answer: SELECT democratic FROM table_name_99 WHERE district < 7 AND republican = "dan mansell"
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_29747178_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR) ### Question: Who directed the episode that was watched by 2.67 million U.S. viewers? ### Answer: SELECT directed_by FROM table_29747178_3 WHERE us_viewers__million_ = "2.67"
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_6 (saturated_fat VARCHAR, polyunsaturated_fat VARCHAR) ### Question: What is the saturated fat with 28g of polyunsaturated fat? ### Answer: SELECT saturated_fat FROM table_name_6 WHERE polyunsaturated_fat = "28g"
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_14 (type VARCHAR, course VARCHAR) ### Question: What type of race took place on the course Orta San Giulio to Milan? ### Answer: SELECT type FROM table_name_14 WHERE course = "orta san giulio to 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_96 (hangul VARCHAR, greek VARCHAR) ### Question: What is the Hangul equivalent of the Greek ϝ, υ? ### Answer: SELECT hangul FROM table_name_96 WHERE greek = "ϝ, υ"
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_40 (age_groups VARCHAR, sport VARCHAR) ### Question: What is the age group for figure skating? ### Answer: SELECT age_groups FROM table_name_40 WHERE sport = "figure skating"
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 (appearances INTEGER, goals VARCHAR, nationality VARCHAR) ### Question: What is the least amount of appearances by new zealand when they scored 4 goals? ### Answer: SELECT MIN(appearances) FROM table_name_85 WHERE goals = 4 AND nationality = "new zealand"
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 (margin_of_victory VARCHAR, runner_up VARCHAR) ### Question: What was the margin of victory when Brandt Snedeker was runner-up? ### Answer: SELECT margin_of_victory FROM table_name_38 WHERE runner_up = "brandt snedeker"
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 products (product_name VARCHAR) ### Question: List the names of all distinct products in alphabetical order. ### Answer: SELECT DISTINCT product_name FROM products ORDER BY product_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 player (Player_name VARCHAR, Votes VARCHAR) ### Question: List the names of players in ascending order of votes. ### Answer: SELECT Player_name FROM player ORDER BY Votes
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 (date VARCHAR, week VARCHAR) ### Question: What's the game date for week 7? ### Answer: SELECT date FROM table_name_32 WHERE week = 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_51 (week INTEGER, result VARCHAR, attendance VARCHAR) ### Question: what is the week when the result is w 14-13 and the attendance is higher than 53,295? ### Answer: SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295
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_31 (points INTEGER, goals_for VARCHAR, goals_against VARCHAR) ### Question: What are the total number of points with more than 225 goals and a Goals against of 190? ### Answer: SELECT SUM(points) FROM table_name_31 WHERE goals_for > 225 AND goals_against = 190
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 Grants (organisation_id VARCHAR, grant_amount INTEGER); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_details VARCHAR) ### Question: Find the organisation ids and details of the organisations which are involved in ### Answer: SELECT T2.organisation_id, T2.organisation_details FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_id HAVING SUM(T1.grant_amount) > 6000
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 (home_team VARCHAR, away_team VARCHAR) ### Question: Which home team competed against the away team of Melbourne? ### Answer: SELECT home_team FROM table_name_56 WHERE away_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_37 (result VARCHAR, venue VARCHAR, date VARCHAR) ### Question: what is the result when the venue is singapore on september 8, 1996? ### Answer: SELECT result FROM table_name_37 WHERE venue = "singapore" AND date = "september 8, 1996"
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 (score VARCHAR, tournament VARCHAR) ### Question: What was the score in the Tournament of Frankfurt? ### Answer: SELECT score FROM table_name_66 WHERE tournament = "frankfurt"
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_18 (owner_s_ VARCHAR, description VARCHAR) ### Question: Which Owner(s) has a Description of hunslet engine company 0-6-0st? ### Answer: SELECT owner_s_ FROM table_name_18 WHERE description = "hunslet engine company 0-6-0st"
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 (rank INTEGER, points VARCHAR, name VARCHAR) ### Question: What is the average rank of Roman Koudelka, who has less than 274.4 points? ### Answer: SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = "roman koudelka"
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 (class VARCHAR, identifier VARCHAR) ### Question: What class has cbon-fm-23 as the identifier? ### Answer: SELECT class FROM table_name_28 WHERE identifier = "cbon-fm-23"
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_89 (country VARCHAR, town VARCHAR) ### Question: what country has dubai ### Answer: SELECT country FROM table_name_89 WHERE town = "dubai"
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_64 (position VARCHAR, venue VARCHAR) ### Question: What Position is listed against a Venue of Debrecen, Hungary ### Answer: SELECT position FROM table_name_64 WHERE venue = "debrecen, hungary"
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_64 (comments VARCHAR, year_made VARCHAR) ### Question: What comments are made in 1875? ### Answer: SELECT comments FROM table_name_64 WHERE year_made = "1875"
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_214920_1 (land_area VARCHAR, density__pop_per_km2_ VARCHAR) ### Question: What is the land area of the RCM having a density of 21.1? ### Answer: SELECT land_area FROM table_214920_1 WHERE density__pop_per_km2_ = "21.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_15824796_4 (series__number INTEGER) ### Question: What is the lowest number of series? ### Answer: SELECT MIN(series__number) FROM table_15824796_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_171666_1 (national_share___percentage_ VARCHAR, area__km²_ VARCHAR) ### Question: What is the national share of the country whose area is 148064 km^2? ### Answer: SELECT national_share___percentage_ FROM table_171666_1 WHERE area__km²_ = 148064
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_18598175_2 (elimination_number INTEGER, time VARCHAR) ### Question: What was the elimination number of the fighter who fought within 26:15? ### Answer: SELECT MAX(elimination_number) FROM table_18598175_2 WHERE time = "26: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_74 (tournament VARCHAR) ### Question: What's the tournament name when they had an A in 2011 & 2012? ### Answer: SELECT tournament FROM table_name_74 WHERE 2012 = "a" AND 2011 = "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_53 (lane INTEGER, name VARCHAR) ### Question: What is the smallest lane number of Xue Ruipeng? ### Answer: SELECT MIN(lane) FROM table_name_53 WHERE name = "xue ruipeng"
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_171748_3 (change_over_previous_year_as_a_whole VARCHAR, change_over_same_quarter_the_previous_year VARCHAR) ### Question: What's the change over previous year as a whole in the period in which the change over same quarter the previous year was up 2.8%? ### Answer: SELECT change_over_previous_year_as_a_whole FROM table_171748_3 WHERE change_over_same_quarter_the_previous_year = "Up 2.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_38 (draws INTEGER, byes INTEGER) ### Question: For the teams that had fewer than 1 Byes, what was the lowest number of Draws? ### Answer: SELECT MIN(draws) FROM table_name_38 WHERE byes < 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_50 (first_party VARCHAR, second_member VARCHAR, second_party VARCHAR) ### Question: Which of the first parties has second member as Charles Robert Colvile, and a liberal second party? ### Answer: SELECT first_party FROM table_name_50 WHERE second_member = "charles robert colvile" AND second_party = "liberal"
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 (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR) ### Question: Which shipping agent shipped the most documents? List the shipping agent name and the number of documents. ### Answer: SELECT Ref_Shipping_Agents.shipping_agent_name, COUNT(Documents.document_id) FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code GROUP BY Ref_Shipping_Agents.shipping_agent_code ORDER BY COUNT(Documents.document_id) 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_51 (fcc_info VARCHAR, call_sign VARCHAR) ### Question: Name the FCC info for call sign of k208eq ### Answer: SELECT fcc_info FROM table_name_51 WHERE call_sign = "k208eq"
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 (crowd INTEGER, home_team VARCHAR) ### Question: What is the total Crowd with a Home team of collingwood? ### Answer: SELECT SUM(crowd) FROM table_name_98 WHERE home_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_30058355_2 (mon_22_aug VARCHAR, wed_24_aug VARCHAR) ### Question: What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph? ### Answer: SELECT mon_22_aug FROM table_30058355_2 WHERE wed_24_aug = "19' 56.16 113.553mph"
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 school (enrollment INTEGER) ### Question: What are the total and average enrollment of all schools? ### Answer: SELECT SUM(enrollment), AVG(enrollment) FROM 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_99 (laps INTEGER, points VARCHAR, driver VARCHAR) ### Question: What is the lowest number of laps for kyle petty with under 118 points? ### Answer: SELECT MIN(laps) FROM table_name_99 WHERE points < 118 AND driver = "kyle petty"
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 (manufacturer VARCHAR, class VARCHAR) ### Question: What manufacturer made class b-2? ### Answer: SELECT manufacturer FROM table_name_47 WHERE class = "b-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 Flight (aid VARCHAR, flno VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR) ### Question: What is the aircraft name for the flight with number 99 ### Answer: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 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_17766232_7 (year_s_ VARCHAR, final_television_commentator VARCHAR) ### Question: In how many years was Tom Fleming the final television commentator? ### Answer: SELECT COUNT(year_s_) FROM table_17766232_7 WHERE final_television_commentator = "Tom Fleming"
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 (round INTEGER, pick VARCHAR) ### Question: Which Round has a Pick of 25 (via hamilton)? ### Answer: SELECT SUM(round) FROM table_name_88 WHERE pick = "25 (via hamilton)"
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_203802_2 (county_councils___2011__ INTEGER, english_party_name VARCHAR) ### Question: How many county councils for the communist party of norway ### Answer: SELECT MAX(county_councils___2011__) FROM table_203802_2 WHERE english_party_name = "Communist Party of Norway"
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_23 (date VARCHAR, week VARCHAR) ### Question: What is the date of week 8? ### Answer: SELECT date FROM table_name_23 WHERE week = 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_50 (quantity_rebuilt INTEGER, class VARCHAR) ### Question: What the least quantity having a T2A class? ### Answer: SELECT MIN(quantity_rebuilt) FROM table_name_50 WHERE class = "t2a"
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 (grid INTEGER, laps INTEGER) ### Question: What is the maximum grid when the laps were greater than 22? ### Answer: SELECT MAX(grid) FROM table_name_44 WHERE laps > 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_54 (time VARCHAR, song_title VARCHAR) ### Question: How long is the song titled burning love? ### Answer: SELECT time FROM table_name_54 WHERE song_title = "burning love"
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 (total VARCHAR, to_par VARCHAR, year_s__won VARCHAR) ### Question: Which player won in 1987 and ended with a score of +9? ### Answer: SELECT total FROM table_name_75 WHERE to_par = "+9" AND year_s__won = "1987"
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_24 (oberliga_bayern VARCHAR, season VARCHAR) ### Question: Which Oberliga Bayern has a Season of 1981-82? ### Answer: SELECT oberliga_bayern FROM table_name_24 WHERE season = "1981-82"
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_92 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR) ### Question: Which College/Junior/Club Team (League) are from sweden? ### Answer: SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden"
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_22993636_5 (three_pointers INTEGER, steals VARCHAR) ### Question: What is the lowest number of 3 pointers that occured in games with 52 steals? ### Answer: SELECT MIN(three_pointers) FROM table_22993636_5 WHERE steals = 52
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 (date VARCHAR, opponent VARCHAR) ### Question: Opponent of chicago bears involved what date? ### Answer: SELECT date FROM table_name_95 WHERE opponent = "chicago bears"
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 available_policies (customer_phone VARCHAR, policy_type_code VARCHAR) ### Question: What are all the customer phone numbers under the most popular policy type? ### Answer: SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY COUNT(*) 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_27537518_4 (attendance INTEGER, score VARCHAR) ### Question: What was the 6-4 score's maximum attendance? ### Answer: SELECT MAX(attendance) FROM table_27537518_4 WHERE score = "6-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_58 (coach VARCHAR, founded VARCHAR, team VARCHAR) ### Question: Which coach founded the Western Strikers team after 1963? ### Answer: SELECT coach FROM table_name_58 WHERE founded > 1963 AND team = "western strikers"
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_28693349_2 (free_throws INTEGER, player VARCHAR) ### Question: How many free throws did Charles Pearman score? ### Answer: SELECT MAX(free_throws) FROM table_28693349_2 WHERE player = "Charles Pearman"
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_14 (licence_number VARCHAR, maximum_diameter VARCHAR) ### Question: What is the license number where the maximum diameter is 400 mm? ### Answer: SELECT licence_number FROM table_name_14 WHERE maximum_diameter = "400 mm"
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 (profession VARCHAR, name VARCHAR, entered_the_house VARCHAR, evicted VARCHAR) ### Question: What is the profession of Skaj Vikler, who entered the house on day 1 and was evicted on day 29? ### Answer: SELECT profession FROM table_name_1 WHERE entered_the_house = "day 1" AND evicted = "day 29" AND name = "skaj vikler"
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 (artist VARCHAR, country VARCHAR) ### Question: what artist cam from uruguay ### Answer: SELECT artist FROM table_name_81 WHERE country = "uruguay"
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 (finish VARCHAR, player VARCHAR) ### Question: What is the finish of player Hale Irwin? ### Answer: SELECT finish FROM table_name_25 WHERE player = "hale irwin"
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_24122653_2 (episode VARCHAR, vote VARCHAR) ### Question: What was the total number of episodes that had a 3-1 vote? ### Answer: SELECT COUNT(episode) FROM table_24122653_2 WHERE vote = "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_75 (incumbent VARCHAR, district VARCHAR, results VARCHAR, party VARCHAR) ### Question: What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"? ### Answer: SELECT incumbent FROM table_name_75 WHERE results = "re-elected" AND party = "democratic" AND district = "minnesota 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_3 (death VARCHAR, birth VARCHAR) ### Question: When did the person die who was born on 18 november 1630? ### Answer: SELECT death FROM table_name_3 WHERE birth = "18 november 1630"
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_11 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR) ### Question: What is the highest top-25 of the tournament with less than 22 events and more than 1 top-10? ### Answer: SELECT MAX(top_25) FROM table_name_11 WHERE events < 22 AND top_10 > 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_25055040_22 (mountains_classification VARCHAR, most_courageous VARCHAR) ### Question: Who won the mountains classification when Maarten Tjallingii won most corageous? ### Answer: SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = "Maarten Tjallingii"
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 (score VARCHAR, tie_no VARCHAR) ### Question: What was the score for the match with tie number 23? ### Answer: SELECT score FROM table_name_76 WHERE tie_no = "23"
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 routes (dst_apid VARCHAR, alid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR) ### Question: Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'. ### Answer: SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'
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 (home_team VARCHAR, venue VARCHAR) ### Question: Which home team plays at the Western Oval? ### Answer: SELECT home_team FROM table_name_50 WHERE venue = "western oval"