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_12784134_24 (perfect_stem VARCHAR, imperfect_stem VARCHAR) ### Question: What is the perfect stem for pozten? ### Answer: SELECT perfect_stem FROM table_12784134_24 WHERE imperfect_stem = "pozten"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1134091_4 (vacator VARCHAR, date_successor_seated VARCHAR) ### Question: Who was the vacator when the date successor seated was august 21, 1973? ### Answer: SELECT vacator FROM table_1134091_4 WHERE date_successor_seated = "August 21, 1973"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE musical (Name VARCHAR, Nominee VARCHAR) ### Question: What are the names of musicals with nominee "Bob Fosse"? ### Answer: SELECT Name FROM musical WHERE Nominee = "Bob Fosse"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1341640_11 (incumbent VARCHAR, district VARCHAR) ### Question: How many incumbents were for district georgia 6? ### Answer: SELECT COUNT(incumbent) FROM table_1341640_11 WHERE district = "Georgia 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_43 (semi_finalists VARCHAR, week_of VARCHAR, runner_up VARCHAR) ### Question: Who are the semi finalists on the week of 12 june, when the runner-up is listed as Lori McNeil? ### Answer: SELECT semi_finalists FROM table_name_43 WHERE week_of = "12 june" AND runner_up = "lori mcneil"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE FLIGHTS (SourceAirport VARCHAR) ### Question: How many flights depart from 'APG'? ### Answer: SELECT COUNT(*) FROM FLIGHTS WHERE SourceAirport = "APG"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_43 (score VARCHAR, place VARCHAR, player VARCHAR) ### Question: Which Score has a Place of t6, and a Player of raymond floyd? ### Answer: SELECT score FROM table_name_43 WHERE place = "t6" 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_1277350_1 (thursday_iuppiter__jupiter_ VARCHAR, friday_venus__venus_ VARCHAR) ### Question: what's the thursday iuppiter (jupiter) with friday venus (venus) being vendredi ### Answer: SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vendredi"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_45 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR, player VARCHAR) ### Question: How many Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0? ### Answer: SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_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 member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE round (Member_ID VARCHAR) ### Question: Show the names of members in ascending order of their rank in rounds. ### Answer: SELECT T1.Name FROM member AS T1 JOIN round AS T2 ON T1.Member_ID = T2.Member_ID ORDER BY Rank_in_Round
Below is an context that describes a sql 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 (name VARCHAR, construction_completed VARCHAR) ### Question: What name completed construction on 09/19/2008? ### Answer: SELECT name FROM table_name_71 WHERE construction_completed = "09/19/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_68 (cfl_team VARCHAR, position VARCHAR) ### Question: what is the cfl team for position d? ### Answer: SELECT cfl_team FROM table_name_68 WHERE position = "d"
Below is an context that describes a sql 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 (money___$__ VARCHAR, player VARCHAR) ### Question: What is Lawson Little's Money ($) amount? ### Answer: SELECT money___$__ FROM table_name_30 WHERE player = "lawson little"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27816332_2 (games_played INTEGER, total_points VARCHAR) ### Question: Name the least games played for 6 points ### Answer: SELECT MIN(games_played) FROM table_27816332_2 WHERE total_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_94 (country VARCHAR, iata VARCHAR) ### Question: What is the Country when the IATA was osl? ### Answer: SELECT country FROM table_name_94 WHERE iata = "osl"
Below is an context that describes a sql 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 (iata VARCHAR, icao VARCHAR) ### Question: I want the IATA for ICAO of zgkl ### Answer: SELECT iata FROM table_name_32 WHERE icao = "zgkl"
Below is an context that describes a sql 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 (venue VARCHAR, result VARCHAR) ### Question: Where did the competition take place that had a 4-2 result? ### Answer: SELECT venue FROM table_name_46 WHERE result = "4-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_84 (genes INTEGER, reference VARCHAR, strain VARCHAR) ### Question: what is the average genes when the reference is 2009 and the strain is rku-1? ### Answer: SELECT AVG(genes) FROM table_name_84 WHERE reference = "2009" AND strain = "rku-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_86 (opponent VARCHAR, date VARCHAR) ### Question: Who was the opponent on June 29? ### Answer: SELECT opponent FROM table_name_86 WHERE date = "june 29"
Below is an context that describes a sql 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 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR) ### Question: What player has a score less than 66, and a Place of t2, in the United States? ### Answer: SELECT player FROM table_name_72 WHERE score < 66 AND place = "t2" AND country = "united states"
Below is an context that describes a sql 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 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR) ### Question: What is the GDP for the region with an area of 7,263 sq. mi.? ### Answer: SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"
Below is an context that describes a sql 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 (silver INTEGER, total VARCHAR, rank VARCHAR) ### Question: Which Silver has a Total of 1, and a Rank of 12? ### Answer: SELECT MIN(silver) FROM table_name_37 WHERE total = 1 AND rank = "12"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_3 (_percentage_fpv VARCHAR, party VARCHAR) ### Question: What is the %FPv for the Workers' Party? ### Answer: SELECT _percentage_fpv FROM table_name_3 WHERE party = "workers' party"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_12305325_4 (brunos_vote VARCHAR, eliminated VARCHAR) ### Question: What is the total number of brunos vote when willie and erin are eliminated? ### Answer: SELECT COUNT(brunos_vote) FROM table_12305325_4 WHERE eliminated = "Willie and Erin"
Below is an context that describes a sql 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 (rank INTEGER, placings VARCHAR, points VARCHAR) ### Question: I want to know the highest rank with placings more than 123 and points greater than 88.06 ### Answer: SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_84 (runners_up VARCHAR, team VARCHAR) ### Question: How many runners-up did Espartanos de Margarita have? ### Answer: SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"
Below is an context that describes a sql 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 (record VARCHAR, event VARCHAR) ### Question: What is Record, when Event is "UFC 40"? ### Answer: SELECT record FROM table_name_57 WHERE event = "ufc 40"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_65 (place VARCHAR, player VARCHAR) ### Question: In what place is Phil Mickelson? ### Answer: SELECT place FROM table_name_65 WHERE player = "phil mickelson"
Below is an context that describes a sql 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 (bronze VARCHAR, silver VARCHAR, gold VARCHAR, rank VARCHAR) ### Question: How many bronzes for the nation ranked 14th, with over 14 golds and over 25 silvers? ### Answer: SELECT COUNT(bronze) FROM table_name_79 WHERE gold > "14" AND rank = "14" AND silver > 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 Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergytype VARCHAR, allergy VARCHAR) ### Question: Show all allergy type with number of students affected. ### Answer: SELECT T2.allergytype, COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy GROUP BY T2.allergytype
Below is an context that describes a sql 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 (leagues_entering_at_this_round VARCHAR, clubs_remaining VARCHAR) ### Question: What league is entering this round with 24 clubs remaining? ### Answer: SELECT leagues_entering_at_this_round FROM table_name_39 WHERE clubs_remaining = 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_29 (opponent VARCHAR, game VARCHAR) ### Question: Who was the opponent for game 5? ### Answer: SELECT opponent FROM table_name_29 WHERE game = 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_89 (city VARCHAR, name_in_english VARCHAR) ### Question: What is the name of the city with the Socialist Party of the Extremadurian People? ### Answer: SELECT city FROM table_name_89 WHERE name_in_english = "socialist party of the extremadurian people"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR, overall VARCHAR) ### Question: WHAT IS THE POSITION WITH A ROUND LARGER THAN 6, AND OVERALL OF 191? ### Answer: SELECT position FROM table_name_9 WHERE round > 6 AND overall = 191
Below is an context that describes a sql 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 (result VARCHAR, date VARCHAR) ### Question: What is Result, when Date is "2000-05-23"? ### Answer: SELECT result FROM table_name_57 WHERE date = "2000-05-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_67 (premier VARCHAR, second VARCHAR) ### Question: What is the total number of Premier, when Second is "55"? ### Answer: SELECT COUNT(premier) FROM table_name_67 WHERE second = 55
Below is an context that describes a sql 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 (opponent VARCHAR, week VARCHAR, date VARCHAR) ### Question: Who is the opponent of the game after week 4 on Sun. Nov. 17? ### Answer: SELECT opponent FROM table_name_70 WHERE week > 4 AND date = "sun. nov. 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_44 (wins VARCHAR, points VARCHAR, rank VARCHAR) ### Question: How many wins had less than 91 points in 25th rank? ### Answer: SELECT wins FROM table_name_44 WHERE points < 91 AND rank = "25th"
Below is an context that describes a sql 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 (athlete VARCHAR, time VARCHAR) ### Question: What is the Athlete of the race with a Time of 9.78? ### Answer: SELECT athlete FROM table_name_14 WHERE time = 9.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_48 (outcome VARCHAR, date VARCHAR) ### Question: What was the score of the match played on 18 January 1999? ### Answer: SELECT outcome FROM table_name_48 WHERE date = "18 january 1999"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_97 (adelaide VARCHAR, gold_coast VARCHAR, auckland VARCHAR, melbourne VARCHAR) ### Question: yes or no for the adelaide with no for auckland, yes for melbourne, yes for the gold coast? ### Answer: SELECT adelaide FROM table_name_97 WHERE auckland = "no" AND melbourne = "yes" AND gold_coast = "yes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR, leading_scorer VARCHAR) ### Question: How many people were in attendance when the visiting team was the Nuggets and the leading scorer was J.R. Smith (28)? ### Answer: SELECT SUM(attendance) FROM table_name_71 WHERE visitor = "nuggets" AND leading_scorer = "j.r. smith (28)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE customer_address_history (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR) ### Question: Show names and phones of customers who do not have address information. ### Answer: SELECT customer_name, customer_phone FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM customer_address_history)
Below is an context that describes a 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_5 (torque__nm VARCHAR, engine_code VARCHAR) ### Question: Name the torque of the engine is d5244 t5 ### Answer: SELECT torque__nm AS @rpm_ FROM table_1147701_5 WHERE engine_code = "D5244 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_name_63 (attendance INTEGER, week VARCHAR) ### Question: What is the attendance of week 12? ### Answer: SELECT MIN(attendance) FROM table_name_63 WHERE week = 12
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_53 (attendance VARCHAR, opponent VARCHAR) ### Question: What is the Attendance of the game against Jacksonville Jaguars? ### Answer: SELECT attendance FROM table_name_53 WHERE opponent = "jacksonville jaguars"
Below is an context that describes a sql 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 (opponent VARCHAR, location_attendance VARCHAR) ### Question: Who was the opponent when they played at the Skydome? ### Answer: SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
Below is an context that describes a sql 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 (lane INTEGER, time VARCHAR, heat VARCHAR, rank VARCHAR) ### Question: What lane had a heat after 12, a rank of 38 and a time larger than 22.67? ### Answer: SELECT AVG(lane) FROM table_name_59 WHERE heat > 12 AND rank = 38 AND time > 22.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_45 (country VARCHAR, time VARCHAR, rank VARCHAR, notes VARCHAR) ### Question: What country has a rank smaller than 6, a time of 6:32.32 and notes of FB? ### Answer: SELECT country FROM table_name_45 WHERE rank < 6 AND notes = "fb" AND time = "6:32.32"
Below is an context that describes a sql 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 (club VARCHAR, runners_up VARCHAR, last_final_won VARCHAR) ### Question: What club has over 1 runners-up and last won the final in 2010? ### Answer: SELECT club FROM table_name_28 WHERE runners_up > 1 AND last_final_won = "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_65 (dc VARCHAR, wins VARCHAR, drivers VARCHAR, races VARCHAR, points VARCHAR) ### Question: What kind of D.C. has Races smaller than 20, and Points larger than 0, and Drivers of christian vietoris, and Wins of 1? ### Answer: SELECT dc FROM table_name_65 WHERE races < 20 AND points > 0 AND drivers = "christian vietoris" AND wins = 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_27319183_7 (official_itv_rating__millions_ VARCHAR, total_itv_viewers__millions_ VARCHAR) ### Question: What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers ### Answer: SELECT official_itv_rating__millions_ FROM table_27319183_7 WHERE total_itv_viewers__millions_ = "8.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_66 (title VARCHAR, director VARCHAR, year VARCHAR) ### Question: What title was directed by Raoul Walsh later than 1945? ### Answer: SELECT title FROM table_name_66 WHERE director = "raoul walsh" AND year > 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 table_22402438_7 (pick__number INTEGER, position VARCHAR) ### Question: How many pick # are there for the goaltender position? ### Answer: SELECT MIN(pick__number) FROM table_22402438_7 WHERE position = "Goaltender"
Below is an context that describes a sql 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 (tournament VARCHAR, winning_score VARCHAR) ### Question: In what tournament was the winning score –10 (68-71-69-70=278)? ### Answer: SELECT tournament FROM table_name_21 WHERE winning_score = –10(68 - 71 - 69 - 70 = 278)
Below is an context that describes a sql 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 (compression_ratio VARCHAR, engine VARCHAR) ### Question: What is the compression ratio for the 302-2v Windsor v8 engine? ### Answer: SELECT compression_ratio FROM table_name_41 WHERE engine = "302-2v windsor v8"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_83 (rank INTEGER, nation VARCHAR, silver VARCHAR) ### Question: What is the highest rank of Austria, which had less than 0 silvers? ### Answer: SELECT MIN(rank) FROM table_name_83 WHERE nation = "austria" AND silver < 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_29458735_5 (regiment VARCHAR, county VARCHAR) ### Question: which regimen was in the arkansas county ### Answer: SELECT regiment FROM table_29458735_5 WHERE county = "Arkansas"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_22719663_3 (experience VARCHAR, name VARCHAR) ### Question: How long has Mel Daniels been playing? ### Answer: SELECT experience FROM table_22719663_3 WHERE name = "Mel Daniels"
Below is an context that describes a sql 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 (playoffs VARCHAR, year VARCHAR) ### Question: What is the Playoffs during 2004-05? ### Answer: SELECT playoffs FROM table_name_82 WHERE year = "2004-05"
Below is an context that describes a sql 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 (gdp___bn__ VARCHAR, capital VARCHAR) ### Question: What was the Gdp (bn) for the region that has ioannina as its Capital? ### Answer: SELECT gdp___bn__ FROM table_name_67 WHERE capital = "ioannina"
Below is an context that describes a sql 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 (away VARCHAR, score VARCHAR, home VARCHAR) ### Question: Which Away has a Score of 1:2, and a Home of vida? ### Answer: SELECT away FROM table_name_31 WHERE score = "1:2" AND home = "vida"
Below is an context that describes a sql 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 (location VARCHAR, winner VARCHAR) ### Question: Where was the tournament won by Hale Irwin (19)? ### Answer: SELECT location FROM table_name_93 WHERE winner = "hale irwin (19)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR, date VARCHAR) ### Question: Who was the home team on September 20, 1998 at Spartan Stadium? ### Answer: SELECT home_team FROM table_name_39 WHERE venue = "spartan stadium" AND date = "september 20, 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 mountain (Country VARCHAR, Height INTEGER) ### Question: Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200. ### Answer: SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200
Below is an context that describes a sql 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 (against VARCHAR, played INTEGER) ### Question: How many Against have Played smaller than 18? ### Answer: SELECT COUNT(against) FROM table_name_54 WHERE played < 18
Below is an context that describes 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 (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR) ### Question: What is the color description of the product with name "catnip"? ### Answer: SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "catnip"
Below is an context that describes a sql 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 (season VARCHAR) ### Question: Which 20-29 had a season of 1997? ### Answer: SELECT 20 AS _29 FROM table_name_11 WHERE season = "1997"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_26 (year VARCHAR, release_type VARCHAR, released_as VARCHAR) ### Question: What year was Ethereal 77, which has a CD album release type? ### Answer: SELECT year FROM table_name_26 WHERE release_type = "cd album" AND released_as = "ethereal 77"
Below is an context that describes a sql 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 (round_of_16 VARCHAR, event VARCHAR) ### Question: What's the 69kg of Round 16? ### Answer: SELECT round_of_16 FROM table_name_16 WHERE event = "69kg"
Below is an context that describes a sql 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 INTEGER, gold VARCHAR, bronze VARCHAR) ### Question: What was the first year that South Korea won gold and Malaysia won bronze? ### Answer: SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia"
Below is an context that describes a sql 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 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) ### Question: Tell me the sum of top 5 with events less than 12 and top 25 less than 0 ### Answer: SELECT SUM(top_5) FROM table_name_98 WHERE events < 12 AND top_25 < 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_6 (year INTEGER, country_territory VARCHAR) ### Question: What's the earliest year the philippines won? ### Answer: SELECT MIN(year) FROM table_name_6 WHERE country_territory = "philippines"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR) ### Question: Show the transaction type code that occurs the most frequently. ### Answer: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_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_name_99 (score VARCHAR, country VARCHAR) ### Question: Name the Score of spain? ### Answer: SELECT score FROM table_name_99 WHERE country = "spain"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_94 (season INTEGER, runners_up VARCHAR) ### Question: What is the latest season where Al Ahly is the runners-up? ### Answer: SELECT MAX(season) FROM table_name_94 WHERE runners_up = "al ahly"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_5 (date VARCHAR, opponent_in_the_final VARCHAR) ### Question: Name the date for opponent in the final being ignasi villacampa ### Answer: SELECT date FROM table_name_5 WHERE opponent_in_the_final = "ignasi villacampa"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_23186738_9 (date VARCHAR, location_attendance VARCHAR) ### Question: Name the date for air canada centre 18,736 ### Answer: SELECT date FROM table_23186738_9 WHERE location_attendance = "Air Canada Centre 18,736"
Below is an context that describes a sql 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 (award_description_s_ VARCHAR, format_s_ VARCHAR) ### Question: What are the award description with Format album? ### Answer: SELECT award_description_s_ FROM table_name_84 WHERE format_s_ = "album"
Below is an context that describes a sql 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 (year VARCHAR, wimbledon VARCHAR) ### Question: What is the total number of years Andy Murray was at Wimbledon? ### Answer: SELECT COUNT(year) FROM table_name_27 WHERE wimbledon = "andy murray"
Below is an context that describes a sql 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 (wicket VARCHAR, score VARCHAR, city VARCHAR) ### Question: In what Wicket in the City of Eastbourne with a Score of less than 368? ### Answer: SELECT wicket FROM table_name_60 WHERE score < 368 AND city = "eastbourne"
Below is an context that describes a sql 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 (frequency_mhz INTEGER, city_of_license VARCHAR) ### Question: What is the number of Frequency MHz in woodstock, georgia? ### Answer: SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_86 (place VARCHAR, player VARCHAR) ### Question: What was Momoko Ueda's place? ### Answer: SELECT place FROM table_name_86 WHERE player = "momoko ueda"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_43 (opponents VARCHAR, partner VARCHAR, date VARCHAR) ### Question: Tell me the opponents for mashona washington november 21, 2009 ### Answer: SELECT opponents FROM table_name_43 WHERE partner = "mashona washington" AND date = "november 21, 2009"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_1 (height VARCHAR, first_round VARCHAR) ### Question: What is the height of the player with a first round score of 44.1? ### Answer: SELECT height FROM table_name_1 WHERE first_round = "44.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_11129123_1 (episode_air_date VARCHAR, callback_venue VARCHAR) ### Question: When did the callbacks from rancho bernardo inn air ### Answer: SELECT episode_air_date FROM table_11129123_1 WHERE callback_venue = "Rancho Bernardo Inn"
Below is an context that describes a sql 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 (crowd INTEGER, away_team VARCHAR) ### Question: What is the sum of crowd(s) when richmond is the away squad? ### Answer: SELECT SUM(crowd) FROM table_name_44 WHERE away_team = "richmond"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27319183_5 (episode VARCHAR, official_itv1_hd_rating__millions_ VARCHAR) ### Question: Which episode had an official ITV1 HD rating of 1.185 million? ### Answer: SELECT episode FROM table_27319183_5 WHERE official_itv1_hd_rating__millions_ = "1.185"
Below is an context that describes a sql 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 (capacity__mw_ INTEGER, state_province VARCHAR) ### Question: What is the total capacity (MW) of the windfarm located in the state/province of Gansu? ### Answer: SELECT SUM(capacity__mw_) FROM table_name_72 WHERE state_province = "gansu"
Below is an context that describes a sql 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 (boat_builder VARCHAR, number VARCHAR, year_built VARCHAR) ### Question: What is the boat builder for a boat built in 1994 and a number greater than 93? ### Answer: SELECT boat_builder FROM table_name_76 WHERE number > 93 AND year_built = "1994"
Below is an context that describes a sql 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 (mascot VARCHAR, school VARCHAR) ### Question: What is North Valleys School Mascot? ### Answer: SELECT mascot FROM table_name_51 WHERE school = "north valleys"
Below is an context that describes a sql 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 (rank VARCHAR, height__ft_ VARCHAR, city VARCHAR, floors VARCHAR) ### Question: what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8? ### Answer: SELECT COUNT(rank) FROM table_name_90 WHERE city = "cologne" AND floors = 34 AND height__ft_ > 452.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_10360656_1 (round INTEGER, player_name VARCHAR) ### Question: What round was Steve Stonebreaker drafted? ### Answer: SELECT MAX(round) FROM table_10360656_1 WHERE player_name = "Steve Stonebreaker"
Below is an context that describes a sql 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 (event VARCHAR, position VARCHAR, year VARCHAR) ### Question: Which event had 4th place and took place in the year 2007? ### Answer: SELECT event FROM table_name_76 WHERE position = "4th" AND year = 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 checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### Question: Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. ### Answer: SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)
Below is an context that describes a sql 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 (soap_opera VARCHAR, character VARCHAR) ### Question: What Soap Opera with the character Teemu Luotola? ### Answer: SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola"
Below is an context that describes a sql 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 (position VARCHAR, round VARCHAR, player VARCHAR) ### Question: Who position did matthew tassone who was drafted after round 5 play? ### Answer: SELECT position FROM table_name_24 WHERE round > 5 AND player = "matthew tassone"
Below is an context that describes a sql 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 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR) ### Question: Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3 ### Answer: SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 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_56 (college VARCHAR, school VARCHAR) ### Question: What college did the player from Ames High School attend? ### Answer: SELECT college FROM table_name_56 WHERE school = "ames high school"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_14070062_4 (points_against VARCHAR, points_for VARCHAR) ### Question: was the the score when the tries was 743 ### Answer: SELECT points_against FROM table_14070062_4 WHERE points_for = "743"