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_21535453_1 (brian_moran VARCHAR, source VARCHAR, creigh_deeds VARCHAR) ### Question: What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%? ### Answer: SELECT brian_moran FROM table_21535453_1 WHERE source = "Survey USA" AND creigh_deeds = "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_25277363_2 (written_by VARCHAR, no_in_series VARCHAR) ### Question: Who wrote episode number 149 in the series? ### Answer: SELECT written_by FROM table_25277363_2 WHERE no_in_series = 149
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19787093_1 (for_round_trip INTEGER, till_agra VARCHAR) ### Question: If the till agra is 1050, what is the max round trip? ### Answer: SELECT MAX(for_round_trip) FROM table_19787093_1 WHERE till_agra = 1050
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE captain (ship_id VARCHAR); CREATE TABLE ship (name VARCHAR, ship_id VARCHAR) ### Question: Find the name of the ships that have more than one captain. ### Answer: SELECT t1.name FROM ship AS t1 JOIN captain AS t2 ON t1.ship_id = t2.ship_id GROUP BY t2.ship_id HAVING COUNT(*) > 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_55 (country VARCHAR, province_region VARCHAR, airport VARCHAR) ### Question: In what country is Hokkaidō and New Chitose airport located? ### Answer: SELECT country FROM table_name_55 WHERE province_region = "hokkaidō" AND airport = "new chitose airport"
Below is an context that describes a sql 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 (event VARCHAR, acts VARCHAR) ### Question: I want to know the events for 106 bands ### Answer: SELECT event FROM table_name_16 WHERE acts = "106 bands"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1341663_10 (candidates VARCHAR, incumbent VARCHAR) ### Question: who are the candidates where the incumbent is sam m. gibbons? ### Answer: SELECT candidates FROM table_1341663_10 WHERE incumbent = "Sam M. Gibbons"
Below is an context that describes a sql 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 (height VARCHAR, number VARCHAR) ### Question: What is the height of number 52? ### Answer: SELECT height FROM table_name_80 WHERE number = 52
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_17 (cuts_made INTEGER, top_5 INTEGER) ### Question: What is the average number of cuts made for events with 0 top-5s? ### Answer: SELECT AVG(cuts_made) FROM table_name_17 WHERE top_5 < 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_20928661_1 (opponent VARCHAR, result VARCHAR) ### Question: Name the number opponent for loss result ### Answer: SELECT COUNT(opponent) FROM table_20928661_1 WHERE result = "Loss"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26041144_16 (catches INTEGER, player VARCHAR) ### Question: If the player is Hashan Tillakaratne, what is the catches minimum? ### Answer: SELECT MIN(catches) FROM table_26041144_16 WHERE player = "Hashan Tillakaratne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_24887326_6 (tie_no INTEGER, attendance VARCHAR) ### Question: What is the highest tie that had 19129 attendance? ### Answer: SELECT MAX(tie_no) FROM table_24887326_6 WHERE attendance = 19129
Below is an context that describes a sql 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 (region VARCHAR, format VARCHAR) ### Question: Which region had the CD maxi format? ### Answer: SELECT region FROM table_name_91 WHERE format = "cd maxi"
Below is an context that describes a sql 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 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR) ### Question: What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11? ### Answer: SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 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 ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR) ### Question: Show the names of employees with role name Editor. ### Answer: SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
Below is an context that describes a sql 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 (driver VARCHAR, fin_pos VARCHAR) ### Question: Who was the driver who had a final position of 14? ### Answer: SELECT driver FROM table_name_19 WHERE fin_pos = "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_79 (lane INTEGER, nationality VARCHAR, react VARCHAR) ### Question: What is the average lane for Kenya with react larger than 0.212? ### Answer: SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212
Below is an context that describes a sql 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 (writer_s_ VARCHAR, catalogue VARCHAR, track VARCHAR) ### Question: On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)? ### Answer: SELECT writer_s_ FROM table_name_27 WHERE catalogue = "lsp 2231" AND track < 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_23 (date VARCHAR, result VARCHAR) ### Question: When was the match with a result of sa by 10 wkts? ### Answer: SELECT date FROM table_name_23 WHERE result = "sa by 10 wkts"
Below is an context that describes a sql 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 (route VARCHAR, elevation VARCHAR) ### Question: Elevation of 11,158 feet 3401 m had what route? ### Answer: SELECT route FROM table_name_85 WHERE elevation = "11,158 feet 3401 m"
Below is an context that describes a sql 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 (laps INTEGER, year INTEGER) ### Question: What is the total number of Laps that's got a Year less than 1987? ### Answer: SELECT SUM(laps) FROM table_name_16 WHERE year < 1987
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_89 (iata VARCHAR, city VARCHAR) ### Question: What shows for IATA for the City of sapporo? ### Answer: SELECT iata FROM table_name_89 WHERE city = "sapporo"
Below is an context that describes a sql 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 (points INTEGER, year VARCHAR) ### Question: What is the total point for the year listed in 1988? ### Answer: SELECT SUM(points) FROM table_name_58 WHERE year = 1988
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_28188239_1 (incumbent VARCHAR, district VARCHAR) ### Question: Who is the incumbent of district pa-8? ### Answer: SELECT incumbent FROM table_28188239_1 WHERE district = "PA-8"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_4 (hindu VARCHAR, ethnic_group VARCHAR) ### Question: Tell me the Hindu for ethnic group for white irish ### Answer: SELECT hindu FROM table_name_4 WHERE ethnic_group = "white irish"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17058226_8 (location_attendance VARCHAR, team VARCHAR) ### Question: Where are all of Utah's games held and how many have attended? ### Answer: SELECT location_attendance FROM table_17058226_8 WHERE team = "Utah"
Below is an context that describes a sql 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 (rank INTEGER, heat INTEGER) ### Question: what is the rank when the heat is more than 4? ### Answer: SELECT SUM(rank) FROM table_name_66 WHERE heat > 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_70 (race_name VARCHAR, year VARCHAR, winner VARCHAR) ### Question: Jud Larson who which race after 1956? ### Answer: SELECT race_name FROM table_name_70 WHERE year > 1956 AND winner = "jud larson"
Below is an context that describes a sql 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 (category VARCHAR, year VARCHAR) ### Question: What category was in 1964? ### Answer: SELECT category FROM table_name_14 WHERE year = 1964
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE branch (membership_amount INTEGER, open_year VARCHAR, city VARCHAR) ### Question: Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London. ### Answer: SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
Below is an context that describes a sql 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 (terminus VARCHAR, color VARCHAR) ### Question: The color diamond is assigned to which Terminus? ### Answer: SELECT terminus FROM table_name_46 WHERE color = "diamond"
Below is an context that describes a sql 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 (grid VARCHAR, laps VARCHAR, rider VARCHAR) ### Question: What grid has 23 laps done by Josh Brookes? ### Answer: SELECT grid FROM table_name_1 WHERE laps = 23 AND rider = "josh brookes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_16388439_3 (away_team VARCHAR, home_team VARCHAR) ### Question: Name the away team score for carlton ### Answer: SELECT away_team AS score FROM table_16388439_3 WHERE home_team = "Carlton"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR) ### Question: Is the right halfback player a starter? ### Answer: SELECT starter FROM table_25517718_3 WHERE position = "Right halfback"
Below is an context that describes a sql 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 (frequency VARCHAR, call_sign VARCHAR) ### Question: What is the frequency of KQLX? ### Answer: SELECT frequency FROM table_name_76 WHERE call_sign = "kqlx"
Below is an context that describes a sql 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 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) ### Question: How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? ### Answer: SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE College (cName VARCHAR, enr INTEGER) ### Question: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name. ### Answer: SELECT cName FROM College WHERE enr > 18000 ORDER BY cName
Below is an context that describes a sql 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 (exit_date VARCHAR, to_club VARCHAR) ### Question: What is the exit date of the player who transferred to Portsmouth? ### Answer: SELECT exit_date FROM table_name_58 WHERE to_club = "portsmouth"
Below is an context that describes a sql 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 INTEGER, played VARCHAR, drawn VARCHAR, against VARCHAR, points VARCHAR) ### Question: What is the highest position of the team with an against of 12, less than 11 points, more than 2 drawn, and more than 9 played? ### Answer: SELECT MAX(position) FROM table_name_24 WHERE against = 12 AND points < 11 AND drawn > 2 AND played > 9
Below is an context that describes a sql 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 (launched VARCHAR, time_elapsed VARCHAR) ### Question: What Launched has Time elapsed of 1991 days (5 yr, 5 mo, 12 d)? ### Answer: SELECT launched FROM table_name_31 WHERE time_elapsed = "1991 days (5 yr, 5 mo, 12 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_43 (score VARCHAR, year VARCHAR, runner_up VARCHAR) ### Question: Name the Score of the Year larger than 2004 and a Runner-up of northeastern? ### Answer: SELECT score FROM table_name_43 WHERE year > 2004 AND runner_up = "northeastern"
Below is an context that describes a sql 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 (place VARCHAR, dance VARCHAR, points_jury VARCHAR) ### Question: What was the place for the tango dance when the points was jury of 24 (7,5,6,6)? ### Answer: SELECT place FROM table_name_29 WHERE dance = "tango" AND points_jury = "24 (7,5,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_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR) ### Question: What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year? ### Answer: SELECT recipients_and_nominees FROM table_name_93 WHERE category = "outstanding achievement in drama" AND year = 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_81 (race_title VARCHAR, vehicle VARCHAR) ### Question: What's the name of the title for the Maserati A6GCS? ### Answer: SELECT race_title FROM table_name_81 WHERE vehicle = "maserati a6gcs"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_10294071_1 (singles_w_l VARCHAR, doubles_w_l VARCHAR) ### Question: what is the total number of singles w–l where doubles w–l is 11–14 ### Answer: SELECT COUNT(singles_w_l) FROM table_10294071_1 WHERE doubles_w_l = "11–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_14999879_2 (round INTEGER) ### Question: What was the last round the team drafted? ### Answer: SELECT MAX(round) FROM table_14999879_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_30 (player VARCHAR, score VARCHAR) ### Question: What player has a score of 67-70-77=214? ### Answer: SELECT player FROM table_name_30 WHERE score = 67 - 70 - 77 = 214
Below is an context that describes a sql 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 (year_of_release INTEGER, title VARCHAR) ### Question: What was the latest year of release for the greatest hits title? ### Answer: SELECT MAX(year_of_release) FROM table_name_71 WHERE title = "greatest hits"
Below is an context that describes a sql 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 (second VARCHAR, lead VARCHAR) ### Question: Who was second when Shane McKinlay was the lead? ### Answer: SELECT second FROM table_name_71 WHERE lead = "shane mckinlay"
Below is an context that describes a sql 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 (venue VARCHAR, home_team VARCHAR) ### Question: what is the venue when the home team is melbourne? ### Answer: SELECT venue FROM table_name_67 WHERE home_team = "melbourne"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_29 (lineup VARCHAR, result VARCHAR) ### Question: What was the lineup that resulted in 1-0 AET W? ### Answer: SELECT lineup FROM table_name_29 WHERE result = "1-0 aet w"
Below is an context that describes a sql 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 (previous_conference VARCHAR, school VARCHAR) ### Question: The school of Portage was in what conference previous? ### Answer: SELECT previous_conference FROM table_name_41 WHERE school = "portage"
Below is an context that describes a sql 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 (opponents VARCHAR, surface VARCHAR, date VARCHAR) ### Question: Who were the opponents that played on a hard surface on July 13, 2008? ### Answer: SELECT opponents FROM table_name_85 WHERE surface = "hard" AND date = "july 13, 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_61 (venue VARCHAR, driver VARCHAR, event VARCHAR) ### Question: Where was the BRDC International Trophy with driver Emerson Fittipaldi held? ### Answer: SELECT venue FROM table_name_61 WHERE driver = "emerson fittipaldi" AND event = "brdc international trophy"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27631756_2 (captain VARCHAR, kitmaker VARCHAR) ### Question: How many captains have the kitmaker as n/a? ### Answer: SELECT COUNT(captain) FROM table_27631756_2 WHERE kitmaker = "N/A"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_72 (year INTEGER, venue VARCHAR) ### Question: What year was the race in Vienna, Austria? ### Answer: SELECT MIN(year) FROM table_name_72 WHERE venue = "vienna, austria"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_73 (silver INTEGER, gold VARCHAR, rank VARCHAR) ### Question: What is the average number of silver medals for countries with 0 gold and rank under 3? ### Answer: SELECT AVG(silver) FROM table_name_73 WHERE gold = 0 AND rank < 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_11900773_6 (paper_type VARCHAR, design VARCHAR) ### Question: How many paper types did Ian Drolet design stamps on? ### Answer: SELECT COUNT(paper_type) FROM table_11900773_6 WHERE design = "Ian Drolet"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1818471_1 (afinsa VARCHAR, value VARCHAR) ### Question: How many different numbers for Afinsa when value is 5p? ### Answer: SELECT COUNT(afinsa) FROM table_1818471_1 WHERE value = "5P"
Below is an context that describes a sql 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 (division VARCHAR, finish VARCHAR, losses VARCHAR) ### Question: Which division of the Brewers had a 5th place ranking and a loss record of 87? ### Answer: SELECT division FROM table_name_98 WHERE finish = "5th" AND losses = "87"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_225205_4 (successor VARCHAR, reason_for_change VARCHAR) ### Question: Who is the successor when the reason for change is died November 11, 1845? ### Answer: SELECT successor FROM table_225205_4 WHERE reason_for_change = "Died November 11, 1845"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_21980_1 (july__°c_ VARCHAR, july__°f_ VARCHAR) ### Question: What were the July (°C) temperatures when the July (°F) temperatures were 71/55? ### Answer: SELECT july__°c_ FROM table_21980_1 WHERE july__°f_ = "71/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_46 (tier VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR) ### Question: What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce? ### Answer: SELECT tier FROM table_name_46 WHERE semi_finalists = "sandrine testud mary pierce" AND runner_up = "lisa raymond"
Below is an context that describes a sql 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 (rank VARCHAR, publication VARCHAR) ### Question: What rank is the publication the observer music monthly? ### Answer: SELECT rank FROM table_name_43 WHERE publication = "the observer music monthly"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_64 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, bike VARCHAR) ### Question: What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident as the time, and a grid less than 14? ### Answer: SELECT rider FROM table_name_64 WHERE laps < 20 AND bike = "ducati 1098 rs 08" AND time = "accident" 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_72 (constructor VARCHAR, q1 VARCHAR, q2_time VARCHAR) ### Question: Constructor with total time of 2:45.416 ### Answer: SELECT constructor FROM table_name_72 WHERE q1 + q2_time = "2:45.416"
Below is an context that describes a sql 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 (pick INTEGER, round VARCHAR, college VARCHAR) ### Question: What is the average pick for Princeton after round 3? ### Answer: SELECT AVG(pick) FROM table_name_29 WHERE round > 3 AND college = "princeton"
Below is an context that describes a sql 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 (free_agent_type VARCHAR, player VARCHAR) ### Question: What is the Free Agent Type for player bryant johnson? ### Answer: SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_25 (played INTEGER, season VARCHAR) ### Question: What is the highest amount of games played in the 2003-04 season? ### Answer: SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04"
Below is an context that describes a sql 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 (pick INTEGER, position VARCHAR, round VARCHAR) ### Question: What is the pick number for the player playing tackle position, and a round less than 15? ### Answer: SELECT SUM(pick) FROM table_name_97 WHERE position = "tackle" AND round < 15
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_1 (height VARCHAR, position VARCHAR, current_club VARCHAR) ### Question: What is the height of the Forward who currently plays for the Toronto Raptors? ### Answer: SELECT height FROM table_name_1 WHERE position = "forward" AND current_club = "toronto raptors"
Below is an context that describes a sql 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 VARCHAR, date VARCHAR) ### Question: Can you tell me the Attendance that has the Date of april 12? ### Answer: SELECT attendance FROM table_name_63 WHERE date = "april 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_12784134_24 (future_stem VARCHAR, perfect_stem VARCHAR) ### Question: What is the number for future stem for poztu? ### Answer: SELECT COUNT(future_stem) FROM table_12784134_24 WHERE perfect_stem = "poztu"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE pilot (Join_Year VARCHAR, Rank VARCHAR) ### Question: What is the joined year of the pilot of the highest rank? ### Answer: SELECT Join_Year FROM pilot ORDER BY Rank 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_23486853_3 (score VARCHAR, opponent VARCHAR) ### Question: What was the score for the Atlanta Thrashers? ### Answer: SELECT score FROM table_23486853_3 WHERE opponent = "Atlanta Thrashers"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26416704_2 (district INTEGER, incumbent VARCHAR) ### Question: What is the highest numbred district that has brian w. thomas as an incumbent? ### Answer: SELECT MAX(district) FROM table_26416704_2 WHERE incumbent = "Brian W. Thomas"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, aces VARCHAR) ### Question: What is the event year radek štěpánek was the round and there were less than 3 aces? ### Answer: SELECT COUNT(event) FROM table_name_92 WHERE round = "radek štěpánek" AND NOT aces < 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_68 (developer_s_ VARCHAR, game VARCHAR) ### Question: Who were the developers for Portal? ### Answer: SELECT developer_s_ FROM table_name_68 WHERE game = "portal"
Below is an context that describes a sql 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 (to_par VARCHAR, place VARCHAR) ### Question: What was the To par when the place was 4? ### Answer: SELECT to_par FROM table_name_60 WHERE place = "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_27537870_5 (score VARCHAR, game VARCHAR) ### Question: Name the score for 29 game ### Answer: SELECT score FROM table_27537870_5 WHERE game = 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 visitor (name VARCHAR, Level_of_membership INTEGER, age VARCHAR) ### Question: Find the name and membership level of the visitors whose membership level is higher than 4, and sort by their age from old to young. ### Answer: SELECT name, Level_of_membership FROM visitor WHERE Level_of_membership > 4 ORDER BY age DESC
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_26 (runs VARCHAR, rank VARCHAR, venue VARCHAR, season VARCHAR) ### Question: Name the Runs has a Venue of bellerive oval , hobart, and a Season of 2004/05, and a Rank of 5? ### Answer: SELECT runs FROM table_name_26 WHERE venue = "bellerive oval , hobart" AND season = "2004/05" AND rank = "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 climber (Mountain_ID VARCHAR, Points VARCHAR); CREATE TABLE mountain (Height VARCHAR, Mountain_ID VARCHAR) ### Question: Show the height of the mountain climbed by the climber with the maximum points. ### Answer: SELECT T2.Height FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID ORDER BY T1.Points 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 Project_Staff (role_code VARCHAR) ### Question: Which role is most common for the staff? ### Answer: SELECT role_code FROM Project_Staff GROUP BY role_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_33 (result VARCHAR, week VARCHAR) ### Question: What is the result of week 5? ### Answer: SELECT result FROM table_name_33 WHERE week = 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_95 (extra_points_1_point INTEGER, player VARCHAR) ### Question: Which Extra points 1 point is the lowest one that has a Player of walter shaw? ### Answer: SELECT MIN(extra_points_1_point) FROM table_name_95 WHERE player = "walter shaw"
Below is an context that describes a sql 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 (river_mile INTEGER, pool_length__miles_ VARCHAR, lock_lift_drop__in_feet_ VARCHAR) ### Question: What is the highest River Mile that has a pool length of 42.2 miles or a lock/lift drop of 21 feet? ### Answer: SELECT MAX(river_mile) FROM table_name_71 WHERE pool_length__miles_ = "42.2" AND lock_lift_drop__in_feet_ = "21"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_53 (role VARCHAR, title VARCHAR) ### Question: What was the role in the chipmunk adventure? ### Answer: SELECT role FROM table_name_53 WHERE title = "the chipmunk adventure"
Below is an context that describes a sql 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 (publisher VARCHAR, year_of_release VARCHAR, original_platforms VARCHAR) ### Question: Which publisher has release year of 2000 and an original dreamcast platform? ### Answer: SELECT publisher FROM table_name_60 WHERE year_of_release = "2000" AND original_platforms = "dreamcast"
Below is an context that describes a sql 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 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) ### Question: What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals? ### Answer: SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 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_46 (class_aA VARCHAR, class_aAA VARCHAR, commerce VARCHAR) ### Question: what AA class has a AAA class of commerce? ### Answer: SELECT class_aA FROM table_name_46 WHERE class_aAA = commerce
Below is an context that describes a sql 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 (week INTEGER, attendance VARCHAR) ### Question: What week had attendance of 52,714? ### Answer: SELECT MAX(week) FROM table_name_54 WHERE attendance = 52 OFFSET 714
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_22496344_1 (weight INTEGER, _number VARCHAR) ### Question: What is the weight when 20 is the number? ### Answer: SELECT MAX(weight) FROM table_22496344_1 WHERE _number = 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_5 (entrant VARCHAR, driver VARCHAR) ### Question: Who was the entrant for Gary Brabham? ### Answer: SELECT entrant FROM table_name_5 WHERE driver = "gary brabham"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE tryout (pPos VARCHAR) ### Question: What are the unique types of player positions in the tryout? ### Answer: SELECT COUNT(DISTINCT pPos) FROM tryout
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26168687_5 (vessel_type VARCHAR, vessel_operator VARCHAR) ### Question: Name the vessel type for beluga shipping ### Answer: SELECT vessel_type FROM table_26168687_5 WHERE vessel_operator = "Beluga Shipping"
Below is an context that describes a sql 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 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) ### Question: What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762? ### Answer: SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"
Below is an context that describes a sql 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_1 INTEGER, team VARCHAR, played VARCHAR) ### Question: What is the sum of Points 1, when Team is "Gainsborough Trinity", and when Played is greater than 46? ### Answer: SELECT SUM(points_1) FROM table_name_55 WHERE team = "gainsborough trinity" AND played > 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_261222_1 (area__km_2__ VARCHAR, population__2010_ VARCHAR) ### Question: What is the area (km2) for the place with a 2010 population of 153085? ### Answer: SELECT area__km_2__ FROM table_261222_1 WHERE population__2010_ = 153085
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1566852_7 (date VARCHAR, interview_subject VARCHAR) ### Question: IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED? ### Answer: SELECT date FROM table_1566852_7 WHERE interview_subject = "Shepard Smith"