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_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR) ### Question: What is the total of played where lost equals 4 and drawn equals 1? ### Answer: SELECT played FROM table_20760802_1 WHERE lost = "4" AND drawn = "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_23 (player VARCHAR, college_junior_club_team__league_ VARCHAR) ### Question: What is Player, when College/Junior/Club Team (League) is "Val d'Or Foreurs ( QMJHL )"? ### Answer: SELECT player FROM table_name_23 WHERE college_junior_club_team__league_ = "val d'or foreurs ( qmjhl )"
Below is an context that describes a 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 (result VARCHAR, match VARCHAR) ### Question: What was the result of match 25? ### Answer: SELECT result FROM table_name_97 WHERE match = "25"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1342270_3 (result VARCHAR, district VARCHAR) ### Question: what are all the result with district being alabama 1 ### Answer: SELECT result FROM table_1342270_3 WHERE district = "Alabama 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_98 (points INTEGER, games VARCHAR, name VARCHAR) ### Question: What is the lowest value for Points, when Games is greater than 34, and when Name is Andrew Panko? ### Answer: SELECT MIN(points) FROM table_name_98 WHERE games > 34 AND name = "andrew panko"
Below is an context that describes 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 (country VARCHAR) ### Question: Find the country that has the most stadiums. ### Answer: SELECT country FROM stadium GROUP BY country 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_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR) ### Question: What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? ### Answer: SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.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_87 (Id VARCHAR) ### Question: What is the 1990 value with a 24 in 1995? ### Answer: SELECT 1990 FROM table_name_87 WHERE 1995 = "24"
Below is an context that describes a 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 (competition VARCHAR, venue VARCHAR) ### Question: What competition took place in Berlin, Germany? ### Answer: SELECT competition FROM table_name_47 WHERE venue = "berlin, germany"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17111812_1 (fourth VARCHAR, sixth VARCHAR) ### Question: Who was in 4th when in 6th is Air Traffic? ### Answer: SELECT fourth FROM table_17111812_1 WHERE sixth = "Air Traffic"
Below is an context that describes a 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 (attendance INTEGER, result VARCHAR, week VARCHAR) ### Question: What is the lowest attendance that has l 42-35 as the result, with a week less than 13? ### Answer: SELECT MIN(attendance) FROM table_name_82 WHERE result = "l 42-35" AND week < 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_name_36 (date VARCHAR, tournament VARCHAR, surface VARCHAR, round VARCHAR) ### Question: Name the date for grass surface for quarterfinal at the nsw building society open tournament ### Answer: SELECT date FROM table_name_36 WHERE surface = "grass" AND round = "quarterfinal" AND tournament = "nsw building society 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_17319931_1 (driver VARCHAR, time_retired VARCHAR, points VARCHAR) ### Question: How many drivers where there when the time/retired +3 laps and points were 24? ### Answer: SELECT COUNT(driver) FROM table_17319931_1 WHERE time_retired = "+3 laps" AND points = "24"
Below is an context that describes a 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 (birth VARCHAR, ceased_to_be_queen VARCHAR) ### Question: What is the birth date of the woman who ceased to be Queen on 18 Jun 1297? ### Answer: SELECT birth FROM table_name_47 WHERE ceased_to_be_queen = "18 jun 1297"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2241101_1 (team VARCHAR, average_speed__mph_ VARCHAR) ### Question: What team had average speed of 107.063 mph? ### Answer: SELECT team FROM table_2241101_1 WHERE average_speed__mph_ = "107.063"
Below is an context that describes a 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 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR) ### Question: Which NGC number has an Object type of open cluster, and a Right ascension (J2000) of 06h01m06s? ### Answer: SELECT MAX(ngc_number) FROM table_name_61 WHERE object_type = "open cluster" AND right_ascension___j2000__ = "06h01m06s"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11734041_11 (player VARCHAR, height_in_ft VARCHAR) ### Question: Which player had a height of 6-0? ### Answer: SELECT player FROM table_11734041_11 WHERE height_in_ft = "6-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_67 (conference_joined VARCHAR, location VARCHAR, mascot VARCHAR) ### Question: Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears? ### Answer: SELECT conference_joined FROM table_name_67 WHERE location = "terre haute" AND mascot = "golden 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 table_name_16 (opponent VARCHAR, date VARCHAR) ### Question: Who was the opponent on August 30? ### Answer: SELECT opponent FROM table_name_16 WHERE date = "august 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_74 (year VARCHAR, regular_season VARCHAR) ### Question: What year did the Nashville Metros have the Regular Season 2nd, central? ### Answer: SELECT year FROM table_name_74 WHERE regular_season = "2nd, central"
Below is an context that describes a 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 (round VARCHAR, position VARCHAR) ### Question: What is the total number of Round, when Position is 2B? ### Answer: SELECT COUNT(round) FROM table_name_77 WHERE position = "2b"
Below is an context that describes a 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 (date VARCHAR, source VARCHAR, murray VARCHAR) ### Question: What is the date of the poll where Murray had 11% from the Suffolk University source? ### Answer: SELECT date FROM table_name_1 WHERE source = "suffolk university" AND murray = "11%"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11891841_2 (type VARCHAR, country VARCHAR) ### Question: What is the type where the country is esp? ### Answer: SELECT type FROM table_11891841_2 WHERE country = "ESp"
Below is an context that describes a 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 (platforms VARCHAR, brigade VARCHAR, hazmat VARCHAR, type VARCHAR) ### Question: Which Platforms have a Hazmat of –, and a Type of urban & rural, and a Brigade of lara? ### Answer: SELECT platforms FROM table_name_38 WHERE hazmat = "–" AND type = "urban & rural" AND brigade = "lara"
Below is an context that describes a 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 (socket VARCHAR, frequency VARCHAR, release_date VARCHAR) ### Question: Which Socket has a Frequency of 2200mhz, and a Release date on june 4, 2008? ### Answer: SELECT socket FROM table_name_30 WHERE frequency = "2200mhz" AND release_date = "june 4, 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_67 (club VARCHAR, date_of_appointment VARCHAR) ### Question: Name the club with date of appointment of 1 november 2007 ### Answer: SELECT club FROM table_name_67 WHERE date_of_appointment = "1 november 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_51 (winner VARCHAR, rally_leader VARCHAR, name VARCHAR) ### Question: Name the winner with rally leader of c. atkinson and name of agia sotira 1 ### Answer: SELECT winner FROM table_name_51 WHERE rally_leader = "c. atkinson" AND name = "agia sotira 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_92 (set_1 VARCHAR, score VARCHAR, set_3 VARCHAR) ### Question: What is the Set 1 with a Score of 3–0, and has a Set 3 of 15–12? ### Answer: SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–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 airlines (country VARCHAR) ### Question: How many airlines does Russia has? ### Answer: SELECT COUNT(*) FROM airlines WHERE country = 'Russia'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1555308_1 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR) ### Question: In which condition(s) is bleeding time prolonged and prothrombin time unaffected? ### Answer: SELECT condition FROM table_1555308_1 WHERE bleeding_time = "Prolonged" AND prothrombin_time = "Unaffected"
Below is an context that describes a 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 (party VARCHAR, first_elected VARCHAR) ### Question: Which party was elected first in 1998? ### Answer: SELECT party FROM table_1805191_34 WHERE first_elected = 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_52 (height INTEGER, player VARCHAR) ### Question: What is stephen arigbabu's height? ### Answer: SELECT MIN(height) FROM table_name_52 WHERE player = "stephen arigbabu"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR) ### Question: Name th margin of victory when date is 10 jul 2011 ### Answer: SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_261895_1 (type VARCHAR, nickname VARCHAR) ### Question: how many categories fall under the category of britons? ### Answer: SELECT COUNT(type) FROM table_261895_1 WHERE nickname = "Britons"
Below is an context that describes a 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 (against INTEGER, lost INTEGER) ### Question: Which average against has a lost less than 1? ### Answer: SELECT AVG(against) FROM table_name_78 WHERE lost < 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 election (Committee VARCHAR, Party VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Party VARCHAR) ### Question: Which committees have delegates from both democratic party and liberal party? ### Answer: SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.Party = "Democratic" INTERSECT SELECT T1.Committee FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T2.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 table_name_97 (home_team VARCHAR, away_team VARCHAR) ### Question: In the tie where Southampton was the away team, who was the home team? ### Answer: SELECT home_team FROM table_name_97 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_15026994_2 (episode VARCHAR, viewing_figure VARCHAR) ### Question: What are all episodes with a viewing figure of 6.72 million? ### Answer: SELECT episode FROM table_15026994_2 WHERE viewing_figure = "6.72 million"
Below is an context that describes a 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 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) ### Question: Which final score had a surface of hard (i) on October 22, 2000? ### Answer: SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard (i)" AND date = "october 22, 2000"
Below is an context that describes a 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 (report VARCHAR, winning_driver VARCHAR) ### Question: Name the Report which has heinrich-joachim von morgen? ### Answer: SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_134729_3 (target_city__market VARCHAR, city_of_license VARCHAR) ### Question: What market is Wessington Springs in ### Answer: SELECT target_city__market FROM table_134729_3 WHERE city_of_license = "Wessington Springs"
Below is an context that describes a 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 (objectnumber VARCHAR, location VARCHAR, wheels VARCHAR) ### Question: What is the Object Number for the item with wheels 4-4-0 and a location of Barrow Hill? ### Answer: SELECT objectnumber FROM table_name_95 WHERE location = "barrow hill" AND wheels = "4-4-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_20098479_1 (production_code INTEGER) ### Question: What is the lowest production code ### Answer: SELECT MIN(production_code) FROM table_20098479_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_77 (result VARCHAR, date VARCHAR) ### Question: What was the Result on November 9, 1958? ### Answer: SELECT result FROM table_name_77 WHERE date = "november 9, 1958"
Below is an context that describes a 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 (play_by_play VARCHAR, color_commentator_s_ VARCHAR, year VARCHAR) ### Question: What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005? ### Answer: SELECT play_by_play FROM table_name_11 WHERE color_commentator_s_ = "eric wynalda" AND year < 2005
Below is an context that describes a 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 (game INTEGER, record VARCHAR) ### Question: Which game had a record of 45-16? ### Answer: SELECT AVG(game) FROM table_name_12 WHERE record = "45-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_name_31 (laps VARCHAR, grid VARCHAR, time_retired VARCHAR) ### Question: How many laps for a grid larger than 1 with a Time/Retired of halfshaft? ### Answer: SELECT laps FROM table_name_31 WHERE grid > 1 AND time_retired = "halfshaft"
Below is an context that describes a 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 (opposition VARCHAR, team VARCHAR) ### Question: Who is the opponent when the team is Cork? ### Answer: SELECT opposition FROM table_name_32 WHERE team = "cork"
Below is an context that describes a 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 (status VARCHAR, style VARCHAR) ### Question: what's the status in the style of ballet/ gymnastics? ### Answer: SELECT status FROM table_name_73 WHERE style = "ballet/ gymnastics"
Below is an context that describes a 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 (team_nickname VARCHAR, joined_tschl INTEGER) ### Question: what is the team nickname that joined tschl after 2010? ### Answer: SELECT team_nickname FROM table_name_78 WHERE joined_tschl > 2010
Below is an context that describes a 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_59 (year VARCHAR, role VARCHAR, title VARCHAR) ### Question: What is the Year, when Role is "himself", and when Title is "Epik High's Love And Delusion"? ### Answer: SELECT year FROM table_name_59 WHERE role = "himself" AND title = "epik high's love and delusion"
Below is an context that describes a 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_34 (county VARCHAR, irish_name VARCHAR) ### Question: Irish name of an dún (contae an dúin) has what county town? ### Answer: SELECT county AS town FROM table_name_34 WHERE irish_name = "an dún (contae an dúin)"
Below is an context that describes a 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 (Id VARCHAR) ### Question: What is the value for 2007 when 2008 is Q1? ### Answer: SELECT 2007 FROM table_name_68 WHERE 2008 = "q1"
Below is an context that describes a 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 (prize VARCHAR, season VARCHAR) ### Question: What is Prize, when Season is "2"? ### Answer: SELECT prize FROM table_name_56 WHERE season = "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_26609958_1 (groundwater_discharge__million_m_3__ INTEGER, hydrographic_basin VARCHAR) ### Question: When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)? ### Answer: SELECT MIN(groundwater_discharge__million_m_3__) FROM table_26609958_1 WHERE hydrographic_basin = "Cabarita River"
Below is an context that describes a 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_2 (reporters VARCHAR, year VARCHAR) ### Question: Name the reporters for 2003 ### Answer: SELECT reporters FROM table_22514845_2 WHERE year = 2003
Below is an context that describes a 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 (population INTEGER, _percentage_lds VARCHAR, total_congregations VARCHAR) ### Question: What is the highest Population, when % LDS is 0.54%, and when Total Congregations is greater than 2? ### Answer: SELECT MAX(population) FROM table_name_13 WHERE _percentage_lds = "0.54%" AND total_congregations > 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_80 (area__km_2__ INTEGER, code VARCHAR, population VARCHAR) ### Question: What is the average area for code 98030 with population over 312? ### Answer: SELECT AVG(area__km_2__) FROM table_name_80 WHERE code = 98030 AND population > 312
Below is an context that describes a 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 (all_time INTEGER, first_title VARCHAR, amateur_era VARCHAR) ### Question: What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0? ### Answer: SELECT MIN(all_time) FROM table_name_35 WHERE first_title = 2007 AND amateur_era > 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_77 (season VARCHAR, points VARCHAR, podiums VARCHAR, races VARCHAR) ### Question: Which Season has 0 Podiums, 1 Race, and 0 Points? ### Answer: SELECT season FROM table_name_77 WHERE podiums = "0" AND races = "1" AND points = "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_68 (to_par VARCHAR, place VARCHAR) ### Question: Which To par has a Place in 8? ### Answer: SELECT to_par FROM table_name_68 WHERE place = "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_31 (place VARCHAR, player VARCHAR) ### Question: what is the place for bryce molder? ### Answer: SELECT place FROM table_name_31 WHERE player = "bryce molder"
Below is an context that describes 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_type_code VARCHAR, product_price INTEGER) ### Question: What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type? ### Answer: SELECT MAX(product_price), MIN(product_price), product_type_code FROM products GROUP BY product_type_code ORDER BY product_type_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_49 (population INTEGER, type VARCHAR, region VARCHAR) ### Question: How many people have a vl type in a region greater than 3? ### Answer: SELECT SUM(population) FROM table_name_49 WHERE type = "vl" AND region > 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_79 (quantity INTEGER, class_to_1928 VARCHAR) ### Question: What is the smallest quantity having a Class to 1928 of BDi-21? ### Answer: SELECT MIN(quantity) FROM table_name_79 WHERE class_to_1928 = "bdi-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_21716139_1 (train_name VARCHAR, category VARCHAR, frequency VARCHAR) ### Question: What trains have a category of express and a weekly frequency? ### Answer: SELECT train_name FROM table_21716139_1 WHERE category = "Express" AND frequency = "Weekly"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1140076_2 (report VARCHAR, race VARCHAR) ### Question: What is the report listed for the race in San Marino Grand Prix? ### Answer: SELECT report FROM table_1140076_2 WHERE race = "San Marino Grand Prix"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Ref_template_types (template_type_code VARCHAR, template_type_description VARCHAR) ### Question: What is the template type code for template type description "Book". ### Answer: SELECT template_type_code FROM Ref_template_types WHERE template_type_description = "Book"
Below is an context that describes a 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 (_number_of_bids INTEGER, win__percentage VARCHAR, conference VARCHAR) ### Question: How many bids were there for the .500 win percentage in the Ohio Valley conference? ### Answer: SELECT SUM(_number_of_bids) FROM table_name_7 WHERE win__percentage = ".500" AND conference = "ohio valley"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25375093_1 (podiums INTEGER, position VARCHAR) ### Question: Name the least podiums for 9th position ### Answer: SELECT MIN(podiums) FROM table_25375093_1 WHERE position = "9th"
Below is an context that describes a 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 (money___$__ VARCHAR, player VARCHAR) ### Question: what is the money ($) for player justin leonard? ### Answer: SELECT money___$__ FROM table_name_99 WHERE player = "justin leonard"
Below is an context that describes a 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 (games VARCHAR, event VARCHAR, medal VARCHAR) ### Question: During which games did Tunisia win gold in the men's 5000 m? ### Answer: SELECT games FROM table_name_24 WHERE event = "men's 5000 m" AND medal = "gold"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_12451376_1 (writer_s_ VARCHAR, director VARCHAR) ### Question: Who wrote the episode when the director was dean white? ### Answer: SELECT writer_s_ FROM table_12451376_1 WHERE director = "Dean White"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15861776_1 (no_in_series VARCHAR, tv_broadcast VARCHAR) ### Question: What episode in the series is TV broadcast s03e20? ### Answer: SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = "S03E20"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2668254_22 (incumbent VARCHAR, candidates VARCHAR) ### Question: Who was the incumbent when the candidate was william drayton (j)? ### Answer: SELECT incumbent FROM table_2668254_22 WHERE candidates = "William Drayton (J)"
Below is an context that describes a 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 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) ### Question: How many tickets were sold/available when the gross revenue (2011) was $5,948,390? ### Answer: SELECT tickets_sold___available FROM table_name_4 WHERE gross_revenue__2011_ = "$5,948,390"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_10650711_1 (position VARCHAR, player VARCHAR) ### Question: what's the position where player is anthony blaylock ### Answer: SELECT position FROM table_10650711_1 WHERE player = "Anthony Blaylock"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1876825_5 (title VARCHAR, production_code VARCHAR) ### Question: What is title of episode 06-02-407? ### Answer: SELECT title FROM table_1876825_5 WHERE production_code = "06-02-407"
Below is an context that describes a 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 (scored INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR) ### Question: What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws? ### Answer: SELECT MAX(scored) FROM table_name_99 WHERE position > 5 AND wins < 4 AND draws > 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_29 (venue VARCHAR, home_team VARCHAR) ### Question: Where was the game played where the home team was Collingwood? ### Answer: SELECT venue FROM table_name_29 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_15162503_1 (result VARCHAR, viewers_selection VARCHAR) ### Question: What was the final result when the viewers selected ejay? ### Answer: SELECT result FROM table_15162503_1 WHERE viewers_selection = "Ejay"
Below is an context that describes a 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 (game INTEGER, november VARCHAR, record VARCHAR) ### Question: When the record is listed as 2-0-0, and the November date is less than 27, what is the sum of the game? ### Answer: SELECT SUM(game) FROM table_name_71 WHERE november < 27 AND record = "2-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_18069789_1 (year_ VARCHAR, e_ VARCHAR, director VARCHAR) ### Question: when was otar iosseliani's film selected ### Answer: SELECT year_[e_] AS __ceremony_ FROM table_18069789_1 WHERE director = "Otar Iosseliani"
Below is an context that describes a 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 (round INTEGER, time VARCHAR) ### Question: What the round with the time 1:15? ### Answer: SELECT AVG(round) FROM table_name_99 WHERE time = "1: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_2562572_5 (population__2002_ INTEGER, urban_settlement VARCHAR) ### Question: Name the population for 2002 being ada ### Answer: SELECT MIN(population__2002_) FROM table_2562572_5 WHERE urban_settlement = "Ada"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR) ### Question: What is the description of the service type which offers both the photo product and the film product? ### Answer: SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_18047346_4 (iata_code VARCHAR, passengers VARCHAR) ### Question: If the passengers are 15,505,566, what is the iata code? ### Answer: SELECT iata_code FROM table_18047346_4 WHERE passengers = "15,505,566"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE services (Id VARCHAR) ### Question: How many services are there? ### Answer: SELECT COUNT(*) FROM services
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_12193259_1 (mens_singles VARCHAR, season VARCHAR) ### Question: Name the mens singles for 1944/1945 ### Answer: SELECT mens_singles FROM table_12193259_1 WHERE season = "1944/1945"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE broadcast (program_id VARCHAR, Time_of_day VARCHAR); CREATE TABLE program (owner VARCHAR, program_id VARCHAR) ### Question: find the program owners that have some programs in both morning and night time. ### Answer: SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning" INTERSECT SELECT t1.owner FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Night"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21076286_2 (broadcast_network VARCHAR, broadcast_scope VARCHAR) ### Question: Name the broadcast network for chiba prefecture ### Answer: SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Chiba Prefecture"
Below is an context that describes 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 (country VARCHAR) ### Question: How many airports are there per country? Order the countries by decreasing number of airports. ### Answer: SELECT COUNT(*), country FROM airports GROUP BY country 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_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR) ### Question: What type is the sorrento to sapri course with a distance of km (mi)? ### Answer: SELECT type FROM table_name_23 WHERE distance = "km (mi)" AND course = "sorrento to sapri"
Below is an context that describes a 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 (site VARCHAR, cost___us$__ VARCHAR, editor VARCHAR) ### Question: Which site has a Cost free and a Editor of jsvi? ### Answer: SELECT site FROM table_name_46 WHERE cost___us$__ = "free" AND editor = "jsvi"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR) ### Question: What is the original air date of the episode with production code is 319? ### Answer: SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319
Below is an context that describes a 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 (round INTEGER, pick INTEGER) ### Question: Which Round has a Pick smaller than 6? ### Answer: SELECT SUM(round) FROM table_name_77 WHERE pick < 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_23829490_1 (media_type VARCHAR, genre VARCHAR) ### Question: What is every media type for the World genre? ### Answer: SELECT media_type FROM table_23829490_1 WHERE genre = "World"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, name VARCHAR) ### Question: How many Area's are there for Armstrong? ### Answer: SELECT COUNT(area__km²_) FROM table_28367242_1 WHERE name = "Armstrong"
Below is an context that describes a 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, odds VARCHAR, date VARCHAR) ### Question: What was the score for a game with the odds of p + 2 after 1847? ### Answer: SELECT score FROM table_name_36 WHERE odds = "p + 2" AND date > 1847
Below is an context that describes a 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 (team VARCHAR, pos VARCHAR) ### Question: Which team is in 14th position? ### Answer: SELECT team FROM table_name_20 WHERE pos = "14th"