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_21734764_1 (area__km²__2005 VARCHAR, administrative_division VARCHAR) ### Question: What is the area of cimahi city? ### Answer: SELECT area__km²__2005 FROM table_21734764_1 WHERE administrative_division = "Cimahi City"
Below is an context that describes a sql 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 (affiliation VARCHAR, location VARCHAR) ### Question: What is the affiliation for towson, md? ### Answer: SELECT affiliation FROM table_name_37 WHERE location = "towson, md"
Below is an context that describes a sql 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 (tournament VARCHAR) ### Question: what is 2012 when the tournament is win %? ### Answer: SELECT 2012 FROM table_name_9 WHERE tournament = "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 parties (party_email VARCHAR, party_id VARCHAR); CREATE TABLE party_services (customer_id VARCHAR) ### Question: Which is the email of the party that has used the services the most number of times? ### Answer: SELECT t1.party_email FROM parties AS t1 JOIN party_services AS t2 ON t1.party_id = t2.customer_id GROUP BY t1.party_email 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 instructor (name VARCHAR, salary VARCHAR, id VARCHAR); CREATE TABLE advisor (i_id VARCHAR, s_id VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR) ### Question: Find the name and salary of instructors who are advisors of the students from the Math department. ### Answer: SELECT T2.name, T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id = T2.id JOIN student AS T3 ON T1.s_id = T3.id WHERE T3.dept_name = 'Math'
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_27599216_6 (institution VARCHAR, endowment VARCHAR) ### Question: Which institution has an endowment of $25.9m? ### Answer: SELECT institution FROM table_27599216_6 WHERE endowment = "$25.9M"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_40 (glider VARCHAR, speed VARCHAR) ### Question: What is Glider, when Speed is "147.3km/h"? ### Answer: SELECT glider FROM table_name_40 WHERE speed = "147.3km/h"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1341577_44 (candidates VARCHAR, incumbent VARCHAR) ### Question: Who were the candidates when Lamar S. Smith was incumbent? ### Answer: SELECT candidates FROM table_1341577_44 WHERE incumbent = "Lamar S. Smith"
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR) ### Question: in a game against st kilda, what was the away team's score? ### Answer: SELECT away_team FROM table_name_33 WHERE home_team = "st kilda"
Below is an context that describes a sql 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 (home_team VARCHAR, away_team VARCHAR) ### Question: Name the home team when the away team was essendon ### Answer: SELECT home_team AS score FROM table_name_75 WHERE away_team = "essendon"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11545282_18 (position VARCHAR, player VARCHAR) ### Question: Which position does John Starks play? ### Answer: SELECT position FROM table_11545282_18 WHERE player = "John Starks"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26240481_1 (opponents_head_coach VARCHAR, result VARCHAR) ### Question: Who was the opponents head coach with the result L, 56-6? ### Answer: SELECT opponents_head_coach FROM table_26240481_1 WHERE result = "L, 56-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_22 (long INTEGER, loss VARCHAR, gain VARCHAR) ### Question: Which Long is the highest one that has a Loss larger than 3, and a Gain larger than 2,894? ### Answer: SELECT MAX(long) FROM table_name_22 WHERE loss > 3 AND gain > 2 OFFSET 894
Below is an context that describes a sql 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 (away_team VARCHAR, tie_no VARCHAR) ### Question: What is the name of the away team for Tie #19? ### Answer: SELECT away_team FROM table_name_61 WHERE tie_no = "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_38 (a_score INTEGER, b_score VARCHAR, total VARCHAR, position VARCHAR) ### Question: What is the A score for the person with a total less than 15.95, position less than 7, and B score more than 8.225? ### Answer: SELECT MAX(a_score) FROM table_name_38 WHERE total < 15.95 AND position < 7 AND b_score > 8.225
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, dribbling VARCHAR); CREATE TABLE Player_Attributes (overall_rating INTEGER) ### Question: What are the names of players who have the best dribbling? ### Answer: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.dribbling = (SELECT MAX(overall_rating) FROM Player_Attributes)
Below is an context that describes a sql 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 (finish VARCHAR, rank VARCHAR, laps VARCHAR) ### Question: Which finish has 33 as a rank and 200 for laps? ### Answer: SELECT finish FROM table_name_24 WHERE rank = "33" AND laps = 200
Below is an context that describes a sql 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 (school_club_team VARCHAR, round VARCHAR, overall VARCHAR) ### Question: What school/club team did the player who was drafted after round 13 with an overall rank of 384 play for? ### Answer: SELECT school_club_team FROM table_name_38 WHERE round > 13 AND overall = 384
Below is an context that describes a sql 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 (place VARCHAR, player VARCHAR, score VARCHAR) ### Question: What place does Fred Funk, who has a score of 69-69=138, have? ### Answer: SELECT place FROM table_name_71 WHERE score = 69 - 69 = 138 AND player = "fred funk"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_88 (part_4 VARCHAR, class VARCHAR) ### Question: What is the part 4 entry for class 7b? ### Answer: SELECT part_4 FROM table_name_88 WHERE class = "7b"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE candidate (poll_source VARCHAR, oppose_rate VARCHAR) ### Question: which poll source does the highest oppose rate come from? ### Answer: SELECT poll_source FROM candidate ORDER BY oppose_rate 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_24565004_19 (period VARCHAR, nationality² VARCHAR) ### Question: Name the period for uruguay ### Answer: SELECT period FROM table_24565004_19 WHERE nationality² = "Uruguay"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR) ### Question: Who was the incumbent in the Illinois 17 district? ### Answer: SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 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_71 (score VARCHAR, tie_no VARCHAR) ### Question: What is the score for the Tie no. 12? ### Answer: SELECT score FROM table_name_71 WHERE tie_no = "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_62 (game INTEGER, record VARCHAR) ### Question: What is the highest game with a 24-23 record? ### Answer: SELECT MAX(game) FROM table_name_62 WHERE record = "24-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_2468961_7 (production_code VARCHAR, no_in_series VARCHAR) ### Question: When 137 is the number in series what is the production code? ### Answer: SELECT production_code FROM table_2468961_7 WHERE no_in_series = 137
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR) ### Question: What was the score on 19/08/2012? ### Answer: SELECT score FROM table_name_30 WHERE date = "19/08/2012"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Documents_with_Expenses (document_id VARCHAR, budget_type_code VARCHAR); CREATE TABLE Documents (document_date VARCHAR, document_id VARCHAR) ### Question: What are the dates for the documents with both 'GV' type and 'SF' type expenses? ### Answer: SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'GV' INTERSECT SELECT T1.document_date FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.document_id = T2.document_id WHERE T2.budget_type_code = 'SF'
Below is an context that describes a sql 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 (tournament VARCHAR) ### Question: What's the 2008 of the US Open when 2010 was 2R and 2011 was 1R? ### Answer: SELECT 2008 FROM table_name_17 WHERE 2011 = "1r" AND 2010 = "2r" AND tournament = "us open"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, lost VARCHAR) ### Question: Which Points have a Drawn larger than 0, and a Lost larger than 1? ### Answer: SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_19179465_1 (played VARCHAR, club VARCHAR) ### Question: Featherstone Rovers club played a total of how many games? ### Answer: SELECT COUNT(played) FROM table_19179465_1 WHERE club = "Featherstone Rovers"
Below is an context that describes a sql 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 (code_name VARCHAR, southbridge VARCHAR) ### Question: What is the code name when the Southbridge shows as amd-766, via-vt82c686b? ### Answer: SELECT code_name FROM table_name_26 WHERE southbridge = "amd-766, via-vt82c686b"
Below is an context that describes a sql 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 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR) ### Question: Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann? ### Answer: SELECT electorate FROM table_name_31 WHERE state = "qld" AND party = "national" AND member = "hon evan adermann"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Staff (Id VARCHAR) ### Question: How many staff in total? ### Answer: SELECT COUNT(*) FROM Staff
Below is an context that describes a sql 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 (college VARCHAR, player VARCHAR) ### Question: what college has paul seiler as a player? ### Answer: SELECT college FROM table_name_22 WHERE player = "paul seiler"
Below is an context that describes a sql 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 (status VARCHAR, co_contestant__yaar_vs_pyaar_ VARCHAR) ### Question: Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh? ### Answer: SELECT status FROM table_name_29 WHERE co_contestant__yaar_vs_pyaar_ = "tina parekh"
Below is an context that describes a sql 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 (years VARCHAR, duration VARCHAR, actor VARCHAR) ### Question: What are the years for Eileen Derbyshire with a duration of 52 years? ### Answer: SELECT years FROM table_name_4 WHERE duration = "52 years" AND actor = "eileen derbyshire"
Below is an context that describes a sql 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 (tie_no INTEGER, home_team VARCHAR, date VARCHAR) ### Question: What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough? ### Answer: SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "bolton wanderers" AND date = "middlesbrough"
Below is an context that describes a sql 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 (date VARCHAR, home_team VARCHAR) ### Question: When did Reading play at home? ### Answer: SELECT date FROM table_name_2 WHERE home_team = "reading"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26401898_2 (final_score VARCHAR, opponent VARCHAR) ### Question: Name the final score for barcelona dragons ### Answer: SELECT final_score FROM table_26401898_2 WHERE opponent = "Barcelona Dragons"
Below is an context that describes a sql 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 (Box VARCHAR, home_team VARCHAR) ### Question: What was the box core for the Melbourne Tigers? ### Answer: SELECT Box AS score FROM table_name_21 WHERE home_team = "melbourne tigers"
Below is an context that describes a sql 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 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) ### Question: How many laps had a grid of greater than 17 and retired due to collision? ### Answer: SELECT SUM(laps) FROM table_name_99 WHERE grid > 17 AND time_retired = "collision"
Below is an context that describes a sql 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 (free VARCHAR, ku VARCHAR, genitive_1 VARCHAR) ### Question: Which Free polite has a Genitive 1 of *=ku? ### Answer: SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku
Below is an context that describes a sql 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 (theme VARCHAR, original_artist VARCHAR, week__number VARCHAR) ### Question: What is the Theme when the Original artist was carole king, and a Week # shows hollywood? ### Answer: SELECT theme FROM table_name_85 WHERE original_artist = "carole king" AND week__number = "hollywood"
Below is an context that describes a sql 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 (original_operator VARCHAR, builder VARCHAR, ship VARCHAR) ### Question: Who is the original operator for the AG Vulcan builder and the Prinzess Irene ship? ### Answer: SELECT original_operator FROM table_name_54 WHERE builder = "ag vulcan" AND ship = "prinzess irene"
Below is an context that describes a sql 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 (ofsted INTEGER, school VARCHAR, capacity VARCHAR) ### Question: Which Ofsted has a School of marple hall school, and a Capacity larger than 1711? ### Answer: SELECT MIN(ofsted) FROM table_name_63 WHERE school = "marple hall school" AND capacity > 1711
Below is an context that describes a sql 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 (goal INTEGER, result VARCHAR, venue VARCHAR) ### Question: What is the Goal number in Råsunda, Stockholm with a Result of 2–2? ### Answer: SELECT AVG(goal) FROM table_name_80 WHERE result = "2–2" AND venue = "råsunda, stockholm"
Below is an context that describes a sql 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 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) ### Question: What was reserved in the district that has 169 constituents? ### Answer: SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169"
Below is an context that describes a sql 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 (money___ INTEGER, score VARCHAR) ### Question: What is the Money ($) of the game with a score of 69-74-70-73=286? ### Answer: SELECT MAX(money___) AS $__ FROM table_name_57 WHERE score = 69 - 74 - 70 - 73 = 286
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_52 (tournament VARCHAR) ### Question: Which 2005 has a Tournament of grand slam tournaments? ### Answer: SELECT 2005 FROM table_name_52 WHERE tournament = "grand slam tournaments"
Below is an context that describes a sql 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 (founded VARCHAR, first_af2_season VARCHAR, final_af2_season VARCHAR, arena VARCHAR) ### Question: How many founded years had a final af2 season prior to 2009 where the arena was the bi-lo center and the first af2 season was prior to 2000? ### Answer: SELECT COUNT(founded) FROM table_name_73 WHERE final_af2_season < 2009 AND arena = "bi-lo center" AND first_af2_season < 2000
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_43 (season INTEGER, date VARCHAR) ### Question: What is the most recent season with a date of 27 October 1957? ### Answer: SELECT MAX(season) FROM table_name_43 WHERE date = "27 october 1957"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_11464746_1 (house_name VARCHAR, colours VARCHAR) ### Question: How many houses are green? ### Answer: SELECT COUNT(house_name) FROM table_11464746_1 WHERE colours = "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_85 (competition VARCHAR, score VARCHAR) ### Question: What competition has a Score of 7–0? ### Answer: SELECT competition FROM table_name_85 WHERE score = "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_59 (athlete VARCHAR, notes VARCHAR, time VARCHAR) ### Question: Who has a time of 7:26.85 and notes of sc/d? ### Answer: SELECT athlete FROM table_name_59 WHERE notes = "sc/d" AND time = "7:26.85"
Below is an context that describes a sql 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 (ship VARCHAR, country VARCHAR, builder VARCHAR) ### Question: What ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy? ### Answer: SELECT ship FROM table_name_81 WHERE country = "royal navy" AND builder = "palmers shipbuilding and iron company"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_88 (date VARCHAR, score VARCHAR, set_1 VARCHAR) ### Question: What date was the score 3–0, and set 1 was 25–22? ### Answer: SELECT date FROM table_name_88 WHERE score = "3–0" AND set_1 = "25–22"
Below is an context that describes a sql 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 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR) ### Question: What is the total losses against 1412, and 10 wins, but draws less than 0? ### Answer: SELECT SUM(losses) FROM table_name_56 WHERE against > 1412 AND wins = 10 AND draws < 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_56 (silver INTEGER, bronze VARCHAR, gold VARCHAR) ### Question: What is the fewest number of silvers for teams with more than 21 gold and more than 4 bronze? ### Answer: SELECT MIN(silver) FROM table_name_56 WHERE bronze > 4 AND gold > 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_15 (time VARCHAR, nationality VARCHAR, lane VARCHAR) ### Question: What was the 200-metre time for the swimmer from Slovenia in lane 9? ### Answer: SELECT COUNT(time) FROM table_name_15 WHERE nationality = "slovenia" AND lane < 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_26982362_2 (directed_by VARCHAR, production_code VARCHAR) ### Question: Who directed the episode with production code 693-004? ### Answer: SELECT directed_by FROM table_26982362_2 WHERE production_code = "693-004"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_26847237_1 (location VARCHAR, opposition VARCHAR) ### Question: What was the location when the opposition was East Coast? ### Answer: SELECT location FROM table_26847237_1 WHERE opposition = "East Coast"
Below is an context that describes a sql 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 (drawn INTEGER, position VARCHAR, played VARCHAR) ### Question: Which Drawn has a Position smaller than 8, and a Played smaller than 14? ### Answer: SELECT MAX(drawn) FROM table_name_85 WHERE position < 8 AND played < 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_91 (calendar VARCHAR, image_attachment VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR) ### Question: Which Calendar has a WYSIWYG Editor of no, and an Unread message tracking of session, and an Image attachment of no? ### Answer: SELECT calendar FROM table_name_91 WHERE wysiwyg_editor = "no" AND unread_message_tracking = "session" AND image_attachment = "no"
Below is an context that describes a sql 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 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR) ### Question: Who's the player eliminated on episode 8 of Fresh Meat? ### Answer: SELECT player FROM table_name_59 WHERE original_season = "fresh meat" AND eliminated = "episode 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_16815824_1 (round2 INTEGER) ### Question: What was the highest score for round 2? ### Answer: SELECT MAX(round2) FROM table_16815824_1
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_23 (location VARCHAR, name_of_mill VARCHAR) ### Question: What is the Location of the Moulin Bertrand Mill? ### Answer: SELECT location FROM table_name_23 WHERE name_of_mill = "moulin bertrand"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE Person (age VARCHAR, job VARCHAR, name VARCHAR) ### Question: How old is the doctor named Zach? ### Answer: SELECT age FROM Person WHERE job = 'doctor' AND name = 'Zach'
Below is an context that describes a sql 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 (processors_supported VARCHAR, memory VARCHAR, model VARCHAR) ### Question: What are the processors supported by a ddr2 memory and the nforce 550 model? ### Answer: SELECT processors_supported FROM table_name_91 WHERE memory = "ddr2" AND model = "nforce 550"
Below is an context that describes a sql 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 (score_in_the_final VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR) ### Question: What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978? ### Answer: SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes"
Below is an context that describes a sql 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 (proposed VARCHAR, listed VARCHAR, county VARCHAR) ### Question: When was the site listed 03/31/1989 in rockingham county proposed? ### Answer: SELECT proposed FROM table_name_6 WHERE listed = "03/31/1989" AND county = "rockingham"
Below is an context that describes a sql 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 (bronze INTEGER, silver VARCHAR, total VARCHAR) ### Question: What is the lowest bronze number when silver shows 2, and the total is 8? ### Answer: SELECT MIN(bronze) FROM table_name_35 WHERE silver = 2 AND total = 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_24426072_1 (team__number2 VARCHAR) ### Question: What was team number 2's Fluminense's 2nd leg? ### Answer: SELECT 2 AS nd_leg FROM table_24426072_1 WHERE team__number2 = "Fluminense"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_23835213_2 (df VARCHAR, adam_hinshelwood VARCHAR) ### Question: What is the df when Adam Hinshelwood is Junior Mendes? ### Answer: SELECT df FROM table_23835213_2 WHERE adam_hinshelwood = "Junior Mendes"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_20297668_1 (standard_yarn_weight_system VARCHAR, wraps_per_inch__wpi_ VARCHAR) ### Question: Name the standard yarn weight system for 7 wpi ### Answer: SELECT standard_yarn_weight_system FROM table_20297668_1 WHERE wraps_per_inch__wpi_ = "7 wpi"
Below is an context that describes a sql 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 (wins INTEGER, rank VARCHAR, first_win VARCHAR) ### Question: What is the rank 6 lowest win who's first win was at the 1950 British Grand Prix? ### Answer: SELECT MIN(wins) FROM table_name_46 WHERE rank > 6 AND first_win = "1950 british grand prix"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_name_4 (sunk_by_u_boat VARCHAR, sunk_by_mines VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR) ### Question: What is the total number of sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines? ### Answer: SELECT COUNT(sunk_by_u_boat) FROM table_name_4 WHERE german_submarines_lost < 2 AND sunk_by_aircraft = 56328 AND sunk_by_mines > 8269
Below is an context that describes a sql 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 (winner VARCHAR, location VARCHAR) ### Question: Which winner had a location of Iowa? ### Answer: SELECT winner FROM table_name_12 WHERE location = "iowa"
Below is an context that describes a sql 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 (borough VARCHAR) ### Question: What was the percentage in 1980 in Brooklyn? ### Answer: SELECT MIN(1980) FROM table_name_70 WHERE borough = "brooklyn"
Below is an context that describes a sql 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 (no_built INTEGER, unit_nos VARCHAR) ### Question: How many number Builts had unit numbers of 375301-310? ### Answer: SELECT SUM(no_built) FROM table_name_19 WHERE unit_nos = "375301-310"
Below is an context that describes a sql 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 (pole_position VARCHAR, round VARCHAR) ### Question: what is the pole position of Round 9 ### Answer: SELECT pole_position FROM table_name_4 WHERE round = 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 club (clublocation VARCHAR, clubname VARCHAR) ### Question: Where is the club "Hopkins Student Enterprises" located? ### Answer: SELECT clublocation FROM club WHERE clubname = "Hopkins Student Enterprises"
Below is an context that describes a sql 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 (date VARCHAR, competition VARCHAR) ### Question: what is the date when the competition is 1998 asian games? ### Answer: SELECT date FROM table_name_17 WHERE competition = "1998 asian games"
Below is an context that describes a sql 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 (opera VARCHAR, internet_explorer VARCHAR) ### Question: What percentage of users were using Opera during the period in which 63.67% were using Internet Explorer? ### Answer: SELECT opera FROM table_name_59 WHERE internet_explorer = "63.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_88 (total INTEGER, t_score INTEGER) ### Question: What is the total of the team with a T score less than 6.8? ### Answer: SELECT SUM(total) FROM table_name_88 WHERE t_score < 6.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_7 (attendance INTEGER, record VARCHAR) ### Question: What was the attendance of the Blue Jays' game when their record was 47-43? ### Answer: SELECT SUM(attendance) FROM table_name_7 WHERE record = "47-43"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE people (Birth_Place VARCHAR) ### Question: What is the most common birth place of people? ### Answer: SELECT Birth_Place FROM people GROUP BY Birth_Place 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_72 (isbn_us VARCHAR, title VARCHAR) ### Question: What is ISBN US, when Title is "Crisis In Space"? ### Answer: SELECT isbn_us FROM table_name_72 WHERE title = "crisis in space"
Below is an context that describes a sql 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 (score VARCHAR, player VARCHAR) ### Question: What is the score for Jock Hutchison? ### Answer: SELECT score FROM table_name_89 WHERE player = "jock hutchison"
Below is an context that describes a sql 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 (date_of_birth VARCHAR, name VARCHAR) ### Question: What is Tim Wollthan's Date of Birth? ### Answer: SELECT date_of_birth FROM table_name_45 WHERE name = "tim wollthan"
Below is an context that describes a sql 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 (length VARCHAR, bullet VARCHAR) ### Question: Which length has a Bullet of 6.5 (.257)? ### Answer: SELECT length FROM table_name_26 WHERE bullet = "6.5 (.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_19161046_1 (directx VARCHAR, code_name VARCHAR, core___mhz__ VARCHAR) ### Question: What's the directx of the model with code name RV770 PRO and a core bigger than 650.0 MHz? ### Answer: SELECT directx FROM table_19161046_1 WHERE code_name = "RV770 PRO" AND core___mhz__ > 650.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_80 (year INTEGER, city VARCHAR) ### Question: What is the lowest year when the city is casablanca? ### Answer: SELECT MIN(year) FROM table_name_80 WHERE city = "casablanca"
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17327458_1 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR) ### Question: How many vacancies happened on 25 May? ### Answer: SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = "25 May"
Below is an context that describes a sql 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 (award_description_s_ VARCHAR, year VARCHAR) ### Question: List the Award Descriptions for the year of 1989. ### Answer: SELECT award_description_s_ FROM table_name_17 WHERE year = 1989
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501 ### Context: CREATE TABLE table_17304308_1 (grid INTEGER, points VARCHAR) ### Question: Name the least grid for 17 points ### Answer: SELECT MIN(grid) FROM table_17304308_1 WHERE points = "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 customer_orders (order_date VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR) ### Question: Find the customer name and date of the orders that have the status "Delivered". ### Answer: SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered"
Below is an context that describes a sql 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 (attendance VARCHAR, opponent VARCHAR) ### Question: What was the attendance when they played at Detroit Lions? ### Answer: SELECT attendance FROM table_name_72 WHERE opponent = "at detroit lions"
Below is an context that describes a sql 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 (player VARCHAR, country VARCHAR, place VARCHAR, score VARCHAR) ### Question: Who was the player from the United States in T10 place with a score of 67-77=144? ### Answer: SELECT player FROM table_name_1 WHERE country = "united states" AND place = "t10" AND score = 67 - 77 = 144
Below is an context that describes a sql 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 (points VARCHAR, entrant VARCHAR, year VARCHAR) ### Question: How many points did Corbari Italia earn in 1985? ### Answer: SELECT points FROM table_name_90 WHERE entrant = "corbari italia" AND year = 1985