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 authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR) ### Question: What are the last names of the author of the paper titled "Binders Unbound"? ### Answer: SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1637041_2 (winnings VARCHAR, avg_finish VARCHAR) ### Question: How many years did he have an average finish of 29.2? ### Answer: SELECT COUNT(winnings) FROM table_1637041_2 WHERE avg_finish = "29.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_19 (object_type VARCHAR, ngc_number VARCHAR) ### Question: Which Object type has a NGC number of 2787? ### Answer: SELECT object_type FROM table_name_19 WHERE ngc_number = 2787
Below is an context that describes a sql 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 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR) ### Question: What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws? ### Answer: SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_11 (pos VARCHAR, first_round INTEGER) ### Question: Which Pos has a First round smaller than 10? ### Answer: SELECT pos FROM table_name_11 WHERE first_round < 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_name_91 (school VARCHAR, pick VARCHAR, player VARCHAR) ### Question: What school did draft pick before 125, will allen go to? ### Answer: SELECT school FROM table_name_91 WHERE pick < 125 AND player = "will allen"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11677691_8 (hometown VARCHAR, school VARCHAR) ### Question: Where is longview high school ### Answer: SELECT hometown FROM table_11677691_8 WHERE school = "Longview 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_name_10 (tournament VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) ### Question: Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)? ### Answer: SELECT tournament FROM table_name_10 WHERE margin_of_victory = "2 strokes" AND winning_score = −14(68 - 66 - 68 = 202)
Below is an context that describes a sql 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 (trainer VARCHAR, year VARCHAR, winner VARCHAR) ### Question: Which trainer won the hyroglyphic in a year that was before 2010? ### Answer: SELECT trainer FROM table_name_97 WHERE year < 2010 AND winner = "hyroglyphic"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2101431_1 (broadcast_date VARCHAR, archive VARCHAR, run_time VARCHAR) ### Question: What is the broadcast date of the episode on 16mm t/r that ran 23:25? ### Answer: SELECT broadcast_date FROM table_2101431_1 WHERE archive = "16mm t/r" AND run_time = "23: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_name_16 (ngc_number INTEGER, constellation VARCHAR) ### Question: What is the sum of NGC numbers for Constellation vela? ### Answer: SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = "vela"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27155990_1 (rank VARCHAR, project_name VARCHAR) ### Question: Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times? ### Answer: SELECT COUNT(rank) FROM table_27155990_1 WHERE project_name = "Pebble: E-Paper Watch for iPhone and Android"
Below is an context that describes a sql 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 (time VARCHAR, trainer VARCHAR) ### Question: What time does the trainer, Todd Pletcher have? ### Answer: SELECT time FROM table_name_63 WHERE trainer = "todd pletcher"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27383390_4 (team VARCHAR, incoming_head_coach VARCHAR) ### Question: How many times is the incoming head coach abdollah veysi? ### Answer: SELECT COUNT(team) FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
Below is an context that describes a sql 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 (record VARCHAR, loss VARCHAR) ### Question: Which record has a Loss of eichhorn (8-5)? ### Answer: SELECT record FROM table_name_54 WHERE loss = "eichhorn (8-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_86 (attendance VARCHAR, date VARCHAR) ### Question: What was the attendance on May 26? ### Answer: SELECT attendance FROM table_name_86 WHERE date = "may 26"
Below is an context that describes a sql 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 (field_goals INTEGER, points INTEGER) ### Question: What is the lowest number of field goals when the points were less than 5? ### Answer: SELECT MIN(field_goals) FROM table_name_53 WHERE points < 5
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24018430_3 (original_air_date VARCHAR, production_code VARCHAR) ### Question: what is the original air date for production code 216? ### Answer: SELECT original_air_date FROM table_24018430_3 WHERE production_code = 216
Below is an context that describes a sql 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 (total_rebounds VARCHAR, player VARCHAR, rank VARCHAR) ### Question: How many rebounds have a Player of andre gaddy, and a Rank smaller than 6? ### Answer: SELECT COUNT(total_rebounds) FROM table_name_5 WHERE player = "andre gaddy" AND rank < 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_21578303_2 (time VARCHAR, time__eet_ VARCHAR) ### Question: What is the time when time is 10:46? ### Answer: SELECT time FROM table_21578303_2 WHERE time__eet_ = "10:46"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2387790_2 (avg_start VARCHAR, avg_finish VARCHAR) ### Question: How many years did he have an average finish of 11.7? ### Answer: SELECT COUNT(avg_start) FROM table_2387790_2 WHERE avg_finish = "11.7"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_91 (score VARCHAR, result VARCHAR) ### Question: What was the score of the 3-0 Win result? ### Answer: SELECT score FROM table_name_91 WHERE result = "3-0 win"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25042332_22 (preschool__0_5_years_ VARCHAR, primary__6_13_years_ VARCHAR) ### Question: What is the enrollment ratio in preschool in the region where the enrollment ratio in primary is 93.10? ### Answer: SELECT preschool__0_5_years_ FROM table_25042332_22 WHERE primary__6_13_years_ = "93.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_name_78 (college VARCHAR, team VARCHAR, position VARCHAR) ### Question: What college has the Chicago stags and position is G? ### Answer: SELECT college FROM table_name_78 WHERE team = "chicago stags" AND position = "g"
Below is an context that describes a sql 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 (opponent VARCHAR, method VARCHAR) ### Question: Who was the opponent when the method was points (4 x 0)? ### Answer: SELECT opponent FROM table_name_55 WHERE method = "points (4 x 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 problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR) ### Question: What is the id of the problem log that is created most recently? ### Answer: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date 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_44 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR) ### Question: Which team had a position of linebacker with a pick smaller of 288? ### Answer: SELECT school_club_team FROM table_name_44 WHERE position = "linebacker" AND pick < 288
Below is an context that describes a sql 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 (fa_trophy INTEGER, league VARCHAR, total VARCHAR, fa_cup VARCHAR) ### Question: How many FA Trophies had a total of 27, 2 FA cups, and a league larger than 24? ### Answer: SELECT SUM(fa_trophy) FROM table_name_82 WHERE total = 27 AND fa_cup = 2 AND league > 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_43 (call_sign VARCHAR, branding VARCHAR) ### Question: What's the call sign of The Q? ### Answer: SELECT call_sign FROM table_name_43 WHERE branding = "the q"
Below is an context that describes a sql 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 (tournament VARCHAR, result VARCHAR, year VARCHAR) ### Question: What tournament since 1973 has a result of 1st? ### Answer: SELECT tournament FROM table_name_66 WHERE result = "1st" AND year > 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 table_name_68 (pick VARCHAR, previous_team VARCHAR, nba_years_ VARCHAR, a_ VARCHAR) ### Question: What is the pick for the player with 2 years in the NBA and who plays for the Utah Jazz? ### Answer: SELECT pick FROM table_name_68 WHERE nba_years_[a_] = "2" AND previous_team = "utah jazz"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_96 (industry INTEGER, year VARCHAR, agriculture VARCHAR) ### Question: What is the lowest Industry, when Year is greater than 2005, and when Agriculture is greater than 11? ### Answer: SELECT MIN(industry) FROM table_name_96 WHERE year > 2005 AND agriculture > 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_16072430_1 (_number VARCHAR, share INTEGER) ### Question: How many episodes have a share bigger than 7.0? ### Answer: SELECT COUNT(_number) FROM table_16072430_1 WHERE share > 7.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_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR) ### Question: Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7? ### Answer: SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"
Below is an context that describes a sql 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 (lost VARCHAR, points_for VARCHAR) ### Question: What is Lost, when Points For is "257"? ### Answer: SELECT lost FROM table_name_11 WHERE points_for = "257"
Below is an context that describes a sql 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 (title VARCHAR, citation VARCHAR, narrator VARCHAR) ### Question: what is the title when the citation is honor and the narrator is lincoln hoppe? ### Answer: SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1590967_7 (musical_guest__song_performed_ VARCHAR, guest_host VARCHAR) ### Question: What song was performed when Barbara Windsor was the guest host? ### Answer: SELECT musical_guest__song_performed_ FROM table_1590967_7 WHERE guest_host = "Barbara Windsor"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17693171_1 (time_retired VARCHAR, driver VARCHAR) ### Question: What is the time/retired if the driver is Ed Carpenter? ### Answer: SELECT time_retired FROM table_17693171_1 WHERE driver = "Ed Carpenter"
Below is an context that describes a sql 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 (date VARCHAR, attendance VARCHAR) ### Question: Which date had an attendance of 76,518? ### Answer: SELECT date FROM table_name_27 WHERE attendance = "76,518"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11071897_1 (interregnum_ended VARCHAR, duration VARCHAR) ### Question: What is the number of interregnum for duration 3 months, 6 days? ### Answer: SELECT COUNT(interregnum_ended) FROM table_11071897_1 WHERE duration = "3 months, 6 days"
Below is an context that describes a sql 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 (votes__gib_ INTEGER, party VARCHAR) ### Question: What is the sum of votes for the green party? ### Answer: SELECT SUM(votes__gib_) FROM table_name_38 WHERE party = "green"
Below is an context that describes a sql 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 (bike VARCHAR, laps VARCHAR, grid VARCHAR) ### Question: Which bike had fewer than 23 laps and a grid number of 4? ### Answer: SELECT bike FROM table_name_15 WHERE laps < 23 AND grid = 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_20 (region VARCHAR, catalog VARCHAR, format VARCHAR, label VARCHAR) ### Question: Which Region has a Format of cd album, and a Label of kemado records, and a Catalog of kem 071? ### Answer: SELECT region FROM table_name_20 WHERE format = "cd album" AND label = "kemado records" AND catalog = "kem 071"
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR, surface VARCHAR, partner VARCHAR) ### Question: What is the score of the tournament on 25 July 1994 with a clay surface and Patricia Tarabini as the partner? ### Answer: SELECT score FROM table_name_83 WHERE surface = "clay" AND partner = "patricia tarabini" AND date = "25 july 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_8 (Id VARCHAR) ### Question: What is the 2006 value with 3r in 2007? ### Answer: SELECT 2006 FROM table_name_8 WHERE 2007 = "3r"
Below is an context that describes a sql 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 (surface VARCHAR, track VARCHAR) ### Question: What is the surface for the riverhead raceway? ### Answer: SELECT surface FROM table_name_84 WHERE track = "riverhead raceway"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_16278825_1 (towns__villages VARCHAR, county_seat VARCHAR) ### Question: Name the towns/villages for budapest ### Answer: SELECT towns__villages FROM table_16278825_1 WHERE county_seat = "Budapest"
Below is an context that describes a sql 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 (Id VARCHAR) ### Question: 2007 of 8–4 is involved in what 2002? ### Answer: SELECT 2002 FROM table_name_69 WHERE 2007 = "8–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_51 (events INTEGER, top_5 VARCHAR) ### Question: What is the mean number of events when top-5 is 1? ### Answer: SELECT AVG(events) FROM table_name_51 WHERE top_5 = 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_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR) ### Question: What is the lowest play with ue figueres club and a goal difference more than 16? ### Answer: SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 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_85 (lungchang VARCHAR, halang VARCHAR, rera VARCHAR) ### Question: Which Lungchang has a Halang of ʒɯ², and a Rera of ʒo²? ### Answer: SELECT lungchang FROM table_name_85 WHERE halang = "ʒɯ²" AND rera = "ʒo²"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24906653_5 (field_goals VARCHAR, player VARCHAR) ### Question: How many long range shots did tonya edwards make. ### Answer: SELECT COUNT(field_goals) FROM table_24906653_5 WHERE player = "Tonya Edwards"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25646820_2 (touchdowns INTEGER, player VARCHAR) ### Question: Name the least touchdowns for joe rogers ### Answer: SELECT MIN(touchdowns) FROM table_25646820_2 WHERE player = "Joe Rogers"
Below is an context that describes a sql 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 (independence_league_ticket VARCHAR, prohibition_ticket VARCHAR) ### Question: When Coleridge A. Hart ran under the Prohibition ticket who ran under the Independence League ticket? ### Answer: SELECT independence_league_ticket FROM table_name_93 WHERE prohibition_ticket = "coleridge a. hart"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27657925_1 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR) ### Question: When there are 5.2 million u.s. viewers how many numbers in series are there? ### Answer: SELECT COUNT(no_in_series) FROM table_27657925_1 WHERE us_viewers__millions_ = "5.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_25 (left_office VARCHAR, name VARCHAR) ### Question: On what date did ke ʻ eaumoku pāpa ʻ iahiahi leave office? ### Answer: SELECT left_office FROM table_name_25 WHERE name = "ke ʻ eaumoku pāpa ʻ iahiahi"
Below is an context that describes a sql 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 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR) ### Question: What is the place of birth when the elevator is Nicholas IV, and elector is Napoleone Orsini Frangipani? ### Answer: SELECT place_of_birth FROM table_name_7 WHERE elevator = "nicholas iv" AND elector = "napoleone orsini frangipani"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR) ### Question: What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event? ### Answer: SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_191105_4 (music_by VARCHAR, episode_title VARCHAR) ### Question: Who is the music by for episode the Elbow Room? ### Answer: SELECT music_by FROM table_191105_4 WHERE episode_title = "Elbow Room"
Below is an context that describes a sql 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 (record VARCHAR, high_points VARCHAR) ### Question: What is Record, when High Points is "Ray Allen (20)"? ### Answer: SELECT record FROM table_name_98 WHERE high_points = "ray allen (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_name_22 (laps INTEGER, grid VARCHAR, points VARCHAR, team VARCHAR) ### Question: WHAT ARE THE LAPS WITH POINTS LARGER THAN 5, WITH FORSYTHE RACING, AND GRID 5? ### Answer: SELECT MIN(laps) FROM table_name_22 WHERE points > 5 AND team = "forsythe racing" AND grid = 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_18 (country VARCHAR, place VARCHAR, score VARCHAR) ### Question: What country placed t8 and scored 71-71-71=213? ### Answer: SELECT country FROM table_name_18 WHERE place = "t8" AND score = 71 - 71 - 71 = 213
Below is an context that describes a sql 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 (player VARCHAR, score VARCHAR) ### Question: Who is the player with a score of 68-71=139? ### Answer: SELECT player FROM table_name_84 WHERE score = 68 - 71 = 139
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR); CREATE TABLE drivers (driverid VARCHAR) ### Question: Find the driver id and number of races of all drivers who have at most participated in 30 races? ### Answer: SELECT T1.driverid, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) <= 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_30 (function__figure_ VARCHAR, real_name VARCHAR) ### Question: What role did Jean-Luc Bouvier serve? ### Answer: SELECT function__figure_ FROM table_name_30 WHERE real_name = "jean-luc bouvier"
Below is an context that describes a sql 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 (diameter__km_ VARCHAR, diameter__mi_ VARCHAR, gill VARCHAR) ### Question: What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill is e? ### Answer: SELECT diameter__km_ FROM table_name_66 WHERE diameter__mi_ = "8mi" AND gill = "e"
Below is an context that describes a sql 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 (tournament VARCHAR, year VARCHAR, venue VARCHAR) ### Question: What was the tournament that happened in 1974 in gothenburg , sweden? ### Answer: SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_9 (score VARCHAR, venue VARCHAR, date VARCHAR) ### Question: what was the score of the game at pro player stadium on june 14? ### Answer: SELECT score FROM table_name_9 WHERE venue = "pro player stadium" AND date = "june 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_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR) ### Question: When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round? ### Answer: SELECT MAX(year) FROM table_name_95 WHERE playoffs = "did not qualify" AND open_cup = "2nd 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_49 (area_km_2 VARCHAR, census_ranking VARCHAR) ### Question: what is the area when the census ranking is 2,290 of 5,008? ### Answer: SELECT area_km_2 FROM table_name_49 WHERE census_ranking = "2,290 of 5,008"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_13498403_1 (barrier VARCHAR, jockey VARCHAR) ### Question: How old is Darryll Holland's horse ### Answer: SELECT barrier FROM table_13498403_1 WHERE jockey = "Darryll Holland"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR) ### Question: Name the fastest lap for piquet sports and silverstone ### Answer: SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) ### Question: For home of River Plate, what is the first leg listed? ### Answer: SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "River Plate"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Student (FacID VARCHAR, advisor VARCHAR); CREATE TABLE Faculty_participates_in (FacID VARCHAR, advisor VARCHAR) ### Question: Show the ids of all the faculty members who participate in an activity and advise a student. ### Answer: SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Below is an context that describes a sql 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 (record VARCHAR, date VARCHAR) ### Question: What is the record for January 7? ### Answer: SELECT record FROM table_name_21 WHERE date = "january 7"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_33 (branding VARCHAR, call_sign VARCHAR) ### Question: what is the branding when the call sign is ckua-fm-3? ### Answer: SELECT branding FROM table_name_33 WHERE call_sign = "ckua-fm-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_59 (engine VARCHAR, entrant VARCHAR) ### Question: Name the engine with entrant of larrousse f1 ### Answer: SELECT engine FROM table_name_59 WHERE entrant = "larrousse f1"
Below is an context that describes a sql 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 (number VARCHAR, position VARCHAR) ### Question: Which number plays the skaters position? ### Answer: SELECT number FROM table_name_22 WHERE position = "skaters"
Below is an context that describes a sql 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 (manufacturer VARCHAR, time_retired VARCHAR) ### Question: Which manufacturer has a Time/Retired of +15.665? ### Answer: SELECT manufacturer FROM table_name_35 WHERE time_retired = "+15.665"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_22810095_8 (name VARCHAR, moving_from VARCHAR) ### Question: Who moved from Northampton Town? ### Answer: SELECT name FROM table_22810095_8 WHERE moving_from = "northampton Town"
Below is an context that describes a sql 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 (year INTEGER, points INTEGER) ### Question: What is the latest year with less than 0 points? ### Answer: SELECT MAX(year) FROM table_name_54 WHERE 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_31 (draws INTEGER, points VARCHAR, wins VARCHAR) ### Question: What is the average number of draws of the team with less than 17 points and less than 4 wins? ### Answer: SELECT AVG(draws) FROM table_name_31 WHERE points < 17 AND wins < 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_55 (january VARCHAR, opponent VARCHAR) ### Question: Which January has an Opponent of toronto maple leafs? ### Answer: SELECT january FROM table_name_55 WHERE opponent = "toronto maple leafs"
Below is an context that describes a sql 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 (ben_tahir VARCHAR, liscumb VARCHAR, libweshya VARCHAR) ### Question: What Ben-Tahir has a 6 Liscumb and 3 Libweshya? ### Answer: SELECT ben_tahir FROM table_name_82 WHERE liscumb = "6" AND libweshya = "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_1434788_5 (candidates VARCHAR, incumbent VARCHAR) ### Question: Who were the candidates in the election where John Beatty was the incumbent? ### Answer: SELECT candidates FROM table_1434788_5 WHERE incumbent = "John Beatty"
Below is an context that describes a sql 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 (round INTEGER, position VARCHAR, pick VARCHAR) ### Question: Name the Round which has a Position of defensive back and a Pick of 226? ### Answer: SELECT MIN(round) FROM table_name_84 WHERE position = "defensive back" AND pick = 226
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25760427_2 (single VARCHAR, artist VARCHAR) ### Question: What is the song by the musician panjabi mc? ### Answer: SELECT single FROM table_25760427_2 WHERE artist = "Panjabi MC"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_261927_2 (enrollment VARCHAR, location VARCHAR) ### Question: What is the enrollment for the institution in Westfield, Massachusetts? ### Answer: SELECT enrollment FROM table_261927_2 WHERE location = "Westfield, Massachusetts"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25391981_3 (number_of_dances VARCHAR, average VARCHAR) ### Question: What is the number of dances for the team that averages 20.6? ### Answer: SELECT number_of_dances FROM table_25391981_3 WHERE average = "20.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_12 (source VARCHAR, zares VARCHAR) ### Question: What is the source for Zares at 8.6%? ### Answer: SELECT source FROM table_name_12 WHERE zares = "8.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_21 (pick VARCHAR, player VARCHAR, round VARCHAR) ### Question: What is the pick number for Danny Green in a round less than 2? ### Answer: SELECT COUNT(pick) FROM table_name_21 WHERE player = "danny green" AND round < 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_74 (chapter VARCHAR, chinese VARCHAR) ### Question: Name the total number of chapter for chinese of 釋宮 ### Answer: SELECT COUNT(chapter) FROM table_name_74 WHERE chinese = "釋宮"
Below is an context that describes a sql 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 (copa_libertadores_1996 VARCHAR, copa_conmebol_1996 VARCHAR) ### Question: What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals? ### Answer: SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = "quarterfinals"
Below is an context that describes a sql 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 (record VARCHAR, points VARCHAR, home VARCHAR) ### Question: What record has points less than 16, and detroit as the home? ### Answer: SELECT record FROM table_name_13 WHERE points < 16 AND home = "detroit"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_2715355_1 (winners VARCHAR, entrants VARCHAR) ### Question: How many prizes were available in the competition where 696 people entered? ### Answer: SELECT COUNT(winners) AS Prize FROM table_2715355_1 WHERE entrants = 696
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28211103_1 (attendance VARCHAR, st_kilda_score VARCHAR) ### Question: What is the attendance when the st kilda score is 13.10.88? ### Answer: SELECT attendance FROM table_28211103_1 WHERE st_kilda_score = "13.10.88"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_42 (event VARCHAR, time VARCHAR) ### Question: Which event had the time 45.74? ### Answer: SELECT event FROM table_name_42 WHERE time = "45.74"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_175442_1 (color VARCHAR, scientific_name VARCHAR) ### Question: Name the number of color for furcifer pardalis ### Answer: SELECT COUNT(color) FROM table_175442_1 WHERE scientific_name = "Furcifer pardalis"
Below is an context that describes a sql 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 (word__number INTEGER, name VARCHAR, subframe__number VARCHAR) ### Question: What is the average word count with crs and subframes lesser than 2? ### Answer: SELECT AVG(word__number) FROM table_name_9 WHERE name = "crs" AND subframe__number < 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_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR) ### Question: What is the epa rated combined fuel economy for the Nissan Leaf? ### Answer: SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = "Nissan Leaf"