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 party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR) ### Question: What are the names of parties with at least 2 events? ### Answer: SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 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_19839391_3 (stats INTEGER, pitcher VARCHAR) ### Question: What are Doug Davis' maximum pitching stats? ### Answer: SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = "Doug Davis"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1153898_1 (ddm_class VARCHAR, comparisons VARCHAR) ### Question: Is the drawing tablet support part of the DDM class? ### Answer: SELECT ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support"
Below is an context that describes a sql 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 (points INTEGER, extra_points VARCHAR, player VARCHAR) ### Question: What are the average points White made with 0 extra points? ### Answer: SELECT AVG(points) FROM table_name_14 WHERE extra_points = 0 AND player = "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_name_90 (population_density__per_km²_ INTEGER, population__2011_ VARCHAR, change___percentage_ VARCHAR, land_area__km²_ VARCHAR) ### Question: Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790? ### Answer: SELECT MAX(population_density__per_km²_) FROM table_name_90 WHERE change___percentage_ > 4.9 AND land_area__km²_ < 15.59 AND population__2011_ > 790
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_29871617_1 (name VARCHAR, family_name VARCHAR) ### Question: What are the names listed in the family il-1f2? ### Answer: SELECT name FROM table_29871617_1 WHERE family_name = "IL-1F2"
Below is an context that describes a sql 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 (visitor VARCHAR, date VARCHAR) ### Question: Which team was the visitor on January 10? ### Answer: SELECT visitor FROM table_name_69 WHERE date = "january 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_26615633_1 (species VARCHAR, jewel VARCHAR) ### Question: What is the species when jewel is coal? ### Answer: SELECT species FROM table_26615633_1 WHERE jewel = "Coal"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR) ### Question: Which eagle riders whose ova (harmony gold dub) is dr. kozaburo nambu? ### Answer: SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Dr. Kozaburo Nambu"
Below is an context that describes a sql 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 (lane VARCHAR, swimmer VARCHAR) ### Question: Which lane is Goksu Bicer in? ### Answer: SELECT lane FROM table_name_37 WHERE swimmer = "goksu bicer"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, score VARCHAR) ### Question: What is Player, when Place is "T9", and when Score is "73-70=143"? ### Answer: SELECT player FROM table_name_90 WHERE place = "t9" AND score = 73 - 70 = 143
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11545282_11 (player VARCHAR, no VARCHAR) ### Question: Who is player number 51? ### Answer: SELECT player FROM table_11545282_11 WHERE no = "51"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR) ### Question: Who was the composer of ain shams? ### Answer: SELECT composer FROM table_28005100_1 WHERE title = "Ain Shams"
Below is an context that describes a sql 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 (result VARCHAR, year VARCHAR) ### Question: What was the Result in 2013? ### Answer: SELECT result FROM table_name_48 WHERE year = 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_27 (yards INTEGER, sacks VARCHAR, average VARCHAR) ### Question: What are the most yards for 2 sacks and an average greater than 0? ### Answer: SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 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 ARTIST (ArtistId VARCHAR, Name VARCHAR); CREATE TABLE ALBUM (ArtistId VARCHAR) ### Question: Find the title of all the albums of the artist "AC/DC". ### Answer: SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"
Below is an context that describes a sql 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 (figures INTEGER, total INTEGER) ### Question: What is the sum of the figure skating scores whose total is less than 117.78? ### Answer: SELECT SUM(figures) FROM table_name_13 WHERE total < 117.78
Below is an context that describes a sql 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 (caps INTEGER, club_province VARCHAR, date_of_birth__age_ VARCHAR) ### Question: Which Caps is the lowest one that has a Club/province of ospreys, and a Date of Birth (Age) of 19 september 1985? ### Answer: SELECT MIN(caps) FROM table_name_70 WHERE club_province = "ospreys" AND date_of_birth__age_ = "19 september 1985"
Below is an context that describes a sql 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 (date VARCHAR, record VARCHAR) ### Question: On what date was the record 62–84? ### Answer: SELECT date FROM table_name_38 WHERE record = "62–84"
Below is an context that describes a sql 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 (crowd INTEGER, venue VARCHAR) ### Question: What is the largest crowd at arden street oval? ### Answer: SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street 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_97 (score VARCHAR, scorers VARCHAR) ### Question: What is the score when the scorers show match report? ### Answer: SELECT score FROM table_name_97 WHERE scorers = "match report"
Below is an context that describes a sql 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 (january INTEGER, opponent VARCHAR, game VARCHAR) ### Question: What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks? ### Answer: SELECT AVG(january) FROM table_name_72 WHERE opponent = "vancouver canucks" AND game > 39
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (race VARCHAR, length VARCHAR) ### Question: What is the race 12 hours in length? ### Answer: SELECT race FROM table_name_20 WHERE length = "12 hours"
Below is an context that describes a sql 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 (Id VARCHAR) ### Question: What is the categorization in 2012 when it was A in 2008 and 1R in 2011? ### Answer: SELECT 2012 FROM table_name_13 WHERE 2008 = "a" AND 2011 = "1r"
Below is an context that describes a sql 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 (rider VARCHAR, grid VARCHAR) ### Question: Who is the driver of the car that started in grid 14? ### Answer: SELECT rider FROM table_name_18 WHERE grid = "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_19542477_9 (song_s__—_weeks VARCHAR, artist_s_ VARCHAR) ### Question: What is the title of every song, and how many weeks was each song at #1 for One Direction? ### Answer: SELECT song_s__—_weeks FROM table_19542477_9 WHERE artist_s_ = "One Direction"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE TV_Channel (Content VARCHAR, series_name VARCHAR) ### Question: What is the content of TV Channel with serial name "Sky Radio"? ### Answer: SELECT Content FROM TV_Channel WHERE series_name = "Sky Radio"
Below is an context that describes a sql 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 (position INTEGER, goal_difference VARCHAR, goals_against VARCHAR, points VARCHAR) ### Question: What is the lowest position of the club with 53 goals against, 26 points, and a -11 goal difference? ### Answer: SELECT MIN(position) FROM table_name_70 WHERE goals_against = 53 AND points = 26 AND goal_difference > -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_name_52 (tennis VARCHAR, school VARCHAR) ### Question: What is the tennis status for youngstown state? ### Answer: SELECT tennis FROM table_name_52 WHERE school = "youngstown state"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR) ### Question: List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born. ### Answer: SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_30120555_1 (civil_parish VARCHAR, townland VARCHAR) ### Question: How many different civil parishes is Canrooska a part of? ### Answer: SELECT COUNT(civil_parish) FROM table_30120555_1 WHERE townland = "Canrooska"
Below is an context that describes a sql 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, position VARCHAR, tries VARCHAR, points VARCHAR) ### Question: I want to know the player with tries more than 1 and position of hooker with points less than 54 ### Answer: SELECT player FROM table_name_18 WHERE tries > 1 AND points < 54 AND position = "hooker"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14748457_1 (station__and_code_ VARCHAR, station_users_2008_9 VARCHAR) ### Question: whatis hte station code where users are 130368? ### Answer: SELECT station__and_code_ FROM table_14748457_1 WHERE station_users_2008_9 = "130368"
Below is an context that describes a sql 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 (rider VARCHAR, speed VARCHAR, time VARCHAR) ### Question: What Rider had a Speed of 108.347mph and Time of 1:02.40.93? ### Answer: SELECT rider FROM table_name_12 WHERE speed = "108.347mph" AND time = "1:02.40.93"
Below is an context that describes a sql 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 (state VARCHAR, team VARCHAR) ### Question: What is the State with Gwangju Fc as the team? ### Answer: SELECT state FROM table_name_10 WHERE team = "gwangju fc"
Below is an context that describes a sql 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 (leading_scorer VARCHAR, visitor VARCHAR) ### Question: Who was the leading scorer in the game where the visiting team was the Pistons? ### Answer: SELECT leading_scorer FROM table_name_35 WHERE visitor = "pistons"
Below is an context that describes a sql 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 (draw INTEGER, televoting INTEGER) ### Question: Televoting smaller than 2 had what highest draw? ### Answer: SELECT MAX(draw) FROM table_name_25 WHERE televoting < 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_25572068_1 (series VARCHAR, winning_team VARCHAR, date VARCHAR) ### Question: In what series was TDS Racing the winning team on 9 October? ### Answer: SELECT series FROM table_25572068_1 WHERE winning_team = "TDS Racing" AND date = "9 October"
Below is an context that describes a sql 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 (year INTEGER, category VARCHAR, award VARCHAR) ### Question: What's the earliest year that had a category of best supporting actress at the asian film awards? ### Answer: SELECT MIN(year) FROM table_name_46 WHERE category = "best supporting actress" AND award = "asian film awards"
Below is an context that describes a sql 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 (nationality VARCHAR, ranking VARCHAR) ### Question: What was the nationality of the player ranking 3? ### Answer: SELECT nationality FROM table_name_13 WHERE ranking = "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_98 (score VARCHAR, country VARCHAR, player VARCHAR) ### Question: What is Score, when Country is "United States", and when Player is "Raymond Floyd"? ### Answer: SELECT score FROM table_name_98 WHERE country = "united states" AND player = "raymond floyd"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14603212_5 (school_year VARCHAR, class_aAAA VARCHAR, Gregory VARCHAR, Portland VARCHAR) ### Question: What are all the school years where class AAAA is in Gregory-Portland? ### Answer: SELECT school_year FROM table_14603212_5 WHERE class_aAAA = Gregory - Portland
Below is an context that describes a sql 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 (round INTEGER, pick VARCHAR) ### Question: What is the average round of the number 16 pick? ### Answer: SELECT AVG(round) FROM table_name_72 WHERE pick = "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_36 (points VARCHAR, drawn INTEGER) ### Question: How many Points have a Drawn smaller than 0? ### Answer: SELECT COUNT(points) FROM table_name_36 WHERE drawn < 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_26982362_2 (directed_by VARCHAR, original_airdate VARCHAR) ### Question: The episode with the original airdate October 8, 2010, is directed by who? ### Answer: SELECT directed_by FROM table_26982362_2 WHERE original_airdate = "October 8, 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_2518850_4 (high_school_name VARCHAR, prefecture VARCHAR) ### Question: Which high school is located in Kyoto? ### Answer: SELECT high_school_name FROM table_2518850_4 WHERE prefecture = "Kyoto"
Below is an context that describes a sql 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 (year INTEGER, album___song VARCHAR) ### Question: What is the most recent year with the Album/Song "the best worst-case scenario"? ### Answer: SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario"
Below is an context that describes a sql 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 (party VARCHAR, end_date VARCHAR) ### Question: Name the party with end date of 22 november 1980 ### Answer: SELECT party FROM table_name_2 WHERE end_date = "22 november 1980"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_15 (result VARCHAR, year INTEGER) ### Question: What was the result for the years after 2001? ### Answer: SELECT result FROM table_name_15 WHERE year > 2001
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21313327_1 (written_by VARCHAR, no_in_season VARCHAR) ### Question: In season number 3, who were the writers? ### Answer: SELECT written_by FROM table_21313327_1 WHERE no_in_season = 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_52 (rated_power VARCHAR, finish_construction VARCHAR) ### Question: What is the rated power for the reactor that ended construction on May 10, 1978? ### Answer: SELECT rated_power FROM table_name_52 WHERE finish_construction = "may 10, 1978"
Below is an context that describes a sql 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 (rtm_build VARCHAR, name VARCHAR) ### Question: What is the RTM build of the Windows Home Server 2011? ### Answer: SELECT rtm_build FROM table_name_74 WHERE name = "windows home server 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_name_16 (date VARCHAR, catalog VARCHAR, label VARCHAR, format VARCHAR) ### Question: What is the date of the label Alfa records, a CD format, and an alca-9201 catalog? ### Answer: SELECT date FROM table_name_16 WHERE label = "alfa records" AND format = "cd" AND catalog = "alca-9201"
Below is an context that describes a sql 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 (elite_eight VARCHAR, conference VARCHAR) ### Question: What is the elite eight result for the big west? ### Answer: SELECT elite_eight FROM table_name_56 WHERE conference = "big west"
Below is an context that describes a sql 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 (lane INTEGER, name VARCHAR) ### Question: What is Elizabeth Simmonds' average lane number? ### Answer: SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds"
Below is an context that describes a sql 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 (score VARCHAR, country VARCHAR, to_par VARCHAR) ### Question: What is the score of the United States, which has a to par of +5? ### Answer: SELECT score FROM table_name_84 WHERE country = "united states" AND to_par = "+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_67 (play VARCHAR, author VARCHAR, base VARCHAR) ### Question: What play has a base of Athens and was written by Aeschylus? ### Answer: SELECT play FROM table_name_67 WHERE author = "aeschylus" AND base = "athens"
Below is an context that describes a sql 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 (notes VARCHAR, rank VARCHAR) ### Question: What is the Notes of the Country with a Rank of 4? ### Answer: SELECT notes FROM table_name_31 WHERE rank = 4
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR) ### Question: what builder launched the name minerva ### Answer: SELECT launched FROM table_name_97 WHERE name = "minerva"
Below is an context that describes a sql 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 (finish VARCHAR, year_s__won VARCHAR) ### Question: What is Finish, when Year(s) Won is "1962 , 1967"? ### Answer: SELECT finish FROM table_name_58 WHERE year_s__won = "1962 , 1967"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1147701_4 (model_name VARCHAR, engine_code VARCHAR) ### Question: what's the model name with engine code being b5204 t5 ### Answer: SELECT model_name FROM table_1147701_4 WHERE engine_code = "B5204 T5"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27734286_1 (record VARCHAR, high_points VARCHAR) ### Question: What record has c. j. miles (20) in the high points? ### Answer: SELECT record FROM table_27734286_1 WHERE high_points = "C. J. Miles (20)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27571406_1 (season VARCHAR, team_name VARCHAR) ### Question: In what season did Pons Racing compete? ### Answer: SELECT season FROM table_27571406_1 WHERE team_name = "Pons Racing"
Below is an context that describes a sql 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 (years VARCHAR, decile VARCHAR) ### Question: The Decile of 6 has which corresponding Years? ### Answer: SELECT years FROM table_name_91 WHERE decile = "6"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_20 (khmer VARCHAR, other VARCHAR) ### Question: for the other of mouy, what's the khmer? ### Answer: SELECT khmer FROM table_name_20 WHERE other = "mouy"
Below is an context that describes a sql 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 (source VARCHAR, net_worth_us$__billions_ VARCHAR) ### Question: What's the source of wealth of the person worth $17 billion? ### Answer: SELECT source FROM table_name_10 WHERE net_worth_us$__billions_ = 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_22 (transfer_fee VARCHAR, name VARCHAR) ### Question: What is the transfer fee for Jimmy Gibson? ### Answer: SELECT transfer_fee FROM table_name_22 WHERE name = "jimmy gibson"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) ### Question: What is the name of the department that has the largest number of students enrolled? ### Answer: SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_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_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR) ### Question: Which series # had 0.852 U.S. viewers(millions)? ### Answer: SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.852"
Below is an context that describes a sql 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 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR) ### Question: Which Years in Orlando has a Nationality of united states, and a School/Club Team of illinois? ### Answer: SELECT years_in_orlando FROM table_name_23 WHERE nationality = "united states" AND school_club_team = "illinois"
Below is an context that describes a sql 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 (extra_points INTEGER, points INTEGER) ### Question: Whicih Extra points are the average ones that have Points smaller than 6? ### Answer: SELECT AVG(extra_points) FROM table_name_35 WHERE points < 6
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR) ### Question: what is the road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)? ### Answer: SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)"
Below is an context that describes a sql 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 (Id VARCHAR) ### Question: Which 2007 has a 2003 of 2r, and a 2004 of 1r? ### Answer: SELECT 2007 FROM table_name_7 WHERE 2003 = "2r" AND 2004 = "1r"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24143253_2 (current_marital_status VARCHAR, name VARCHAR) ### Question: What is Stella Farentino's current relationship status? ### Answer: SELECT current_marital_status FROM table_24143253_2 WHERE name = "Stella Farentino"
Below is an context that describes a sql 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 (date VARCHAR, visiting_team VARCHAR) ### Question: Tell me the date for pittsburgh steelers ### Answer: SELECT date FROM table_name_16 WHERE visiting_team = "pittsburgh steelers"
Below is an context that describes a sql 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 (date VARCHAR, race VARCHAR) ### Question: Name the date for the italian grand prix ### Answer: SELECT date FROM table_name_67 WHERE race = "italian 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 table_name_60 (week INTEGER, date VARCHAR, attendance VARCHAR) ### Question: What was the latest week with a date of November 12, 1967 and less than 34,761 in attendance? ### Answer: SELECT MAX(week) FROM table_name_60 WHERE date = "november 12, 1967" AND attendance < 34 OFFSET 761
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_12077540_1 (import VARCHAR, product VARCHAR) ### Question: There are 5 imports of plywood. ### Answer: SELECT import FROM table_12077540_1 WHERE product = "Plywood"
Below is an context that describes a sql 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 (winner VARCHAR, runner_up VARCHAR, title VARCHAR) ### Question: Who was the winner in the game that had a title of 32nd, and Waseda as the runner-up? ### Answer: SELECT winner FROM table_name_56 WHERE runner_up = "waseda" AND title = "32nd"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_15621965_18 (no INTEGER, position VARCHAR) ### Question: WHAT WAS THE NUMBER OF THE ONLY FORWARD-CENTER TO MAKE THE ROSTER? ### Answer: SELECT MIN(no) FROM table_15621965_18 WHERE position = "Forward-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_27 (draws VARCHAR, matches INTEGER) ### Question: What is the total number of Draws with less than 4 matches? ### Answer: SELECT COUNT(draws) FROM table_name_27 WHERE matches < 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_57 (attendance VARCHAR, loss VARCHAR) ### Question: How many in attendance with a loss of volquez (1–4)? ### Answer: SELECT attendance FROM table_name_57 WHERE loss = "volquez (1–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_7 (tries INTEGER, goals INTEGER) ### Question: What is the average Tries with less than 0 goals? ### Answer: SELECT AVG(tries) FROM table_name_7 WHERE goals < 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_55 (points INTEGER, position VARCHAR, drawn VARCHAR) ### Question: Which Points has a Position of 3, and a Drawn smaller than 2? ### Answer: SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 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_12570207_1 (rockhampton INTEGER) ### Question: what is the minimum rockhampton ### Answer: SELECT MIN(rockhampton) FROM table_12570207_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_20466963_13 (guest_2 VARCHAR, presenter VARCHAR, date VARCHAR) ### Question: Name the guest 2 for colin murray 6 april ### Answer: SELECT COUNT(guest_2) FROM table_20466963_13 WHERE presenter = "Colin Murray" AND date = "6 April"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2147588_4 (vacator VARCHAR, successor VARCHAR) ### Question: When nathaniel g. taylor (u) is the successor what is the vacator? ### Answer: SELECT vacator FROM table_2147588_4 WHERE successor = "Nathaniel G. Taylor (U)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Price INTEGER, manufacturer VARCHAR) ### Question: Select the average price of each manufacturer's products, showing the manufacturer's name. ### Answer: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.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_62 (laps INTEGER, driver VARCHAR, grid VARCHAR) ### Question: What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has? ### Answer: SELECT MIN(laps) FROM table_name_62 WHERE driver = "christian vietoris" AND grid < 6
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_28 (score VARCHAR, game VARCHAR) ### Question: What was the final score of Game 1? ### Answer: SELECT score FROM table_name_28 WHERE game = 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_7 (league INTEGER, total VARCHAR) ### Question: What is the sum of the value "League Cup", when the Total is less than 1, and when the League is less than 0? ### Answer: SELECT SUM(league) AS Cup FROM table_name_7 WHERE total < 1 AND league < 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_38 (Id VARCHAR) ### Question: Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53? ### Answer: SELECT MIN(1965) FROM table_name_38 WHERE 1962 = 0.35000000000000003 AND 1967 < 0.53
Below is an context that describes a sql 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 (date VARCHAR, format VARCHAR, catalog VARCHAR) ### Question: What date has the format of CD and catalog of alca-274? ### Answer: SELECT date FROM table_name_72 WHERE format = "cd" AND catalog = "alca-274"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR) ### Question: List the distinct hometowns that are not associated with any gymnast. ### Answer: SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
Below is an context that describes a sql 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 (date VARCHAR, score VARCHAR) ### Question: What was the date of the game that had a score of 3 – 1? ### Answer: SELECT date FROM table_name_60 WHERE score = "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_51 (opponent VARCHAR, round VARCHAR) ### Question: Which opponent has a Round of r5? ### Answer: SELECT opponent FROM table_name_51 WHERE round = "r5"
Below is an context that describes a sql 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 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR) ### Question: I want the constructor for brakes and grid less than 14 ### Answer: SELECT constructor FROM table_name_39 WHERE time_retired = "brakes" AND grid < 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_25 (crowd INTEGER, home_team VARCHAR) ### Question: What was the highest attendance for a game where Geelong was the home team? ### Answer: SELECT MAX(crowd) FROM table_name_25 WHERE home_team = "geelong"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_89 (total INTEGER, a_score VARCHAR, position VARCHAR, b_score VARCHAR) ### Question: What total has a position smaller than 4, a B score higher than 9.125, and an A score less than 6.6? ### Answer: SELECT AVG(total) FROM table_name_89 WHERE position < 4 AND b_score > 9.125 AND a_score < 6.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_22078972_2 (title VARCHAR, us_viewers__millions_ VARCHAR) ### Question: What's the title of the episode first seen by 18.15 million people in the US? ### Answer: SELECT title FROM table_22078972_2 WHERE us_viewers__millions_ = "18.15"