text
stringlengths
354
1.06k
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (socket VARCHAR, frequency VARCHAR, release_price___usd__ VARCHAR) Question: Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket? [/INST] Here is the SQLite query to answer to the question: Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?: ``` SELECT socket FROM table_name_91 WHERE frequency = "1.2 ghz" AND release_price___usd__ = "$70" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (player VARCHAR, finish VARCHAR) Question: Who had a finish of t16? [/INST] Here is the SQLite query to answer to the question: Who had a finish of t16?: ``` SELECT player FROM table_name_81 WHERE finish = "t16" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (matches VARCHAR, points_for VARCHAR) Question: What match had 240 points for? [/INST] Here is the SQLite query to answer to the question: What match had 240 points for?: ``` SELECT matches FROM table_name_81 WHERE points_for = "240" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_63 (res VARCHAR, time VARCHAR) Question: What is the result for the match that was only 2:48 long? [/INST] Here is the SQLite query to answer to the question: What is the result for the match that was only 2:48 long?: ``` SELECT res FROM table_name_63 WHERE time = "2:48" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_178381_1 (location_of_the_church VARCHAR, year_built VARCHAR, church_name VARCHAR) Question: On how many locations is there a church named Askrova Bedehuskapell, built in 1957? [/INST] Here is the SQLite query to answer to the question: On how many locations is there a church named Askrova Bedehuskapell, built in 1957?: ``` SELECT COUNT(location_of_the_church) FROM table_178381_1 WHERE year_built = "1957" AND church_name = "Askrova bedehuskapell" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26166836_1 (location VARCHAR, road_race VARCHAR) Question: In which city was the berlin marathon? [/INST] Here is the SQLite query to answer to the question: In which city was the berlin marathon?: ``` SELECT location FROM table_26166836_1 WHERE road_race = "Berlin Marathon" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE musical (Nominee VARCHAR) Question: Please show the nominee who has been nominated the greatest number of times. [/INST] Here is the SQLite query to answer to the question: Please show the nominee who has been nominated the greatest number of times.: ``` SELECT Nominee FROM musical GROUP BY Nominee ORDER BY COUNT(*) DESC LIMIT 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_35 (bodyweight INTEGER, snatch INTEGER) Question: Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight? [/INST] Here is the SQLite query to answer to the question: Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?: ``` SELECT MIN(bodyweight) FROM table_name_35 WHERE snatch > 117.5 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341577_22 (incumbent VARCHAR, first_elected VARCHAR) Question: Name the incumbent for first elected 1958 [/INST] Here is the SQLite query to answer to the question: Name the incumbent for first elected 1958: ``` SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1958 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE campuses (campus VARCHAR, county VARCHAR) Question: Report the name of all campuses in Los Angeles county. [/INST] Here is the SQLite query to answer to the question: Report the name of all campuses in Los Angeles county.: ``` SELECT campus FROM campuses WHERE county = "Los Angeles" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18862490_2 (to_par VARCHAR, year VARCHAR) Question: What score to par won in 1998? [/INST] Here is the SQLite query to answer to the question: What score to par won in 1998?: ``` SELECT to_par FROM table_18862490_2 WHERE year = 1998 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE party (minister VARCHAR, took_office VARCHAR, left_office VARCHAR) Question: Show the ministers and the time they took and left office, listed by the time they left office. [/INST] Here is the SQLite query to answer to the question: Show the ministers and the time they took and left office, listed by the time they left office.: ``` SELECT minister, took_office, left_office FROM party ORDER BY left_office ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27653955_1 (colors VARCHAR, enrollment VARCHAR) Question: What are the colors for the enrollment of 2020? [/INST] Here is the SQLite query to answer to the question: What are the colors for the enrollment of 2020?: ``` SELECT colors FROM table_27653955_1 WHERE enrollment = 2020 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (winning_driver VARCHAR, winning_constructor VARCHAR, date VARCHAR) Question: Name the Winning driver of mercedes on 22 august? [/INST] Here is the SQLite query to answer to the question: Name the Winning driver of mercedes on 22 august?: ``` SELECT winning_driver FROM table_name_91 WHERE winning_constructor = "mercedes" AND date = "22 august" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_54 (competition VARCHAR, main_article VARCHAR, captain VARCHAR, lost VARCHAR) Question: What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with less than 5 Lost? [/INST] Here is the SQLite query to answer to the question: What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with less than 5 Lost?: ``` SELECT competition FROM table_name_54 WHERE captain = "robbie paul" AND lost < 5 AND main_article = "bradford bulls 1997" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (nation VARCHAR, second VARCHAR) Question: Which Nation has a Second of tomas pitonak? [/INST] Here is the SQLite query to answer to the question: Which Nation has a Second of tomas pitonak?: ``` SELECT nation FROM table_name_72 WHERE second = "tomas pitonak" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10128185_2 (wales INTEGER, northern_england VARCHAR) Question: How many votes did Wales cast when Northern England cast 6? [/INST] Here is the SQLite query to answer to the question: How many votes did Wales cast when Northern England cast 6?: ``` SELECT MIN(wales) FROM table_10128185_2 WHERE northern_england = 6 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (engine VARCHAR, chassis VARCHAR, driver VARCHAR) Question: What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis? [/INST] Here is the SQLite query to answer to the question: What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis?: ``` SELECT engine FROM table_name_31 WHERE chassis = "fa13b fa14" AND driver = "aguri suzuki" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_20246201_9 (office VARCHAR, states___third_place VARCHAR) Question: Which office has 1 New Hampshire as a third place state? [/INST] Here is the SQLite query to answer to the question: Which office has 1 New Hampshire as a third place state?: ``` SELECT office FROM table_20246201_9 WHERE states___third_place = "1 New Hampshire" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_256286_5 (_percentage_yes VARCHAR, yes_votes VARCHAR) Question: What is the yes percentage in the measure that had 35270 yes votes? [/INST] Here is the SQLite query to answer to the question: What is the yes percentage in the measure that had 35270 yes votes? : ``` SELECT _percentage_yes FROM table_256286_5 WHERE yes_votes = 35270 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16388506_1 (away_team VARCHAR, ground VARCHAR) Question: Who are the away teams when subiaco oval was the grounds? [/INST] Here is the SQLite query to answer to the question: Who are the away teams when subiaco oval was the grounds?: ``` SELECT away_team FROM table_16388506_1 WHERE ground = "Subiaco Oval" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (result VARCHAR, recipients_and_nominees VARCHAR, year VARCHAR) Question: Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year? [/INST] Here is the SQLite query to answer to the question: Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?: ``` SELECT result FROM table_name_87 WHERE recipients_and_nominees = "outstanding achievement in drama" AND year = 1995 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_22 (games INTEGER, drawn INTEGER) Question: What games have more than 1 draw? [/INST] Here is the SQLite query to answer to the question: What games have more than 1 draw?: ``` SELECT AVG(games) FROM table_name_22 WHERE drawn > 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_27 (score_points VARCHAR, event VARCHAR, total VARCHAR) Question: Name Event of wc milan and a Total of 23? [/INST] Here is the SQLite query to answer to the question: Name Event of wc milan and a Total of 23?: ``` SELECT score_points FROM table_name_27 WHERE event = "wc milan" AND total = "23" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (current_club VARCHAR, player VARCHAR) Question: Which Current Club has a Player of bassem balaa? [/INST] Here is the SQLite query to answer to the question: Which Current Club has a Player of bassem balaa?: ``` SELECT current_club FROM table_name_97 WHERE player = "bassem balaa" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_86 (overall VARCHAR, round INTEGER) Question: What total number of Overalls has a round that was smaller than 1? [/INST] Here is the SQLite query to answer to the question: What total number of Overalls has a round that was smaller than 1?: ``` SELECT COUNT(overall) FROM table_name_86 WHERE round < 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_32 (winning_song VARCHAR, debut_album VARCHAR) Question: Which winning song had a debut album in progress? [/INST] Here is the SQLite query to answer to the question: Which winning song had a debut album in progress?: ``` SELECT winning_song FROM table_name_32 WHERE debut_album = "in progress" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (rank VARCHAR, total VARCHAR, nation VARCHAR) Question: Spain with a total of more than 4 medals is in what rank? [/INST] Here is the SQLite query to answer to the question: Spain with a total of more than 4 medals is in what rank?: ``` SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "spain" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17525955_2 (episode__number VARCHAR, us_air_date VARCHAR) Question: How many episodes aired Saturday, July 11, 2009 [/INST] Here is the SQLite query to answer to the question: How many episodes aired Saturday, July 11, 2009: ``` SELECT COUNT(episode__number) FROM table_17525955_2 WHERE us_air_date = "Saturday, July 11, 2009" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE pilot (Pilot_name VARCHAR, Team VARCHAR) Question: Show the names of pilots from team "Bradley" or "Fordham". [/INST] Here is the SQLite query to answer to the question: Show the names of pilots from team "Bradley" or "Fordham".: ``` SELECT Pilot_name FROM pilot WHERE Team = "Bradley" OR Team = "Fordham" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_46 (song VARCHAR, points VARCHAR, artist VARCHAR) Question: What song is it that artist morena camilleri does and has more than 38 points [/INST] Here is the SQLite query to answer to the question: What song is it that artist morena camilleri does and has more than 38 points: ``` SELECT song FROM table_name_46 WHERE points > 38 AND artist = "morena camilleri" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (from_club VARCHAR, date VARCHAR) Question: Which From club has a Date of 20 oct. 2008? [/INST] Here is the SQLite query to answer to the question: Which From club has a Date of 20 oct. 2008?: ``` SELECT from_club FROM table_name_49 WHERE date = "20 oct. 2008" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_52 (year INTEGER, competition VARCHAR) Question: What is the first year of the European Championships competition? [/INST] Here is the SQLite query to answer to the question: What is the first year of the European Championships competition?: ``` SELECT MIN(year) FROM table_name_52 WHERE competition = "european championships" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_7 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR) Question: What Score has a Place of t6, a Country of united states, and a Player of fred couples? [/INST] Here is the SQLite query to answer to the question: What Score has a Place of t6, a Country of united states, and a Player of fred couples?: ``` SELECT score FROM table_name_7 WHERE place = "t6" AND country = "united states" AND player = "fred couples" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (dwellings INTEGER, neighbourhood VARCHAR, change___percentage_ VARCHAR) Question: How many Dwellings does Beverly Heights have that have a change percent larger than -5.2? [/INST] Here is the SQLite query to answer to the question: How many Dwellings does Beverly Heights have that have a change percent larger than -5.2?: ``` SELECT SUM(dwellings) FROM table_name_37 WHERE neighbourhood = "beverly heights" AND change___percentage_ > -5.2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (score VARCHAR, home VARCHAR, date VARCHAR) Question: What is the Score with a Home of colorado, and a Date with may 11? [/INST] Here is the SQLite query to answer to the question: What is the Score with a Home of colorado, and a Date with may 11?: ``` SELECT score FROM table_name_72 WHERE home = "colorado" AND date = "may 11" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (founded VARCHAR, location VARCHAR) Question: What is the Founded year of the school located in Paul Smiths, New York? [/INST] Here is the SQLite query to answer to the question: What is the Founded year of the school located in Paul Smiths, New York?: ``` SELECT founded FROM table_name_99 WHERE location = "paul smiths, new york" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_69 (away_team VARCHAR, tie_no VARCHAR) Question: Who was the away team when 6 was the tie no? [/INST] Here is the SQLite query to answer to the question: Who was the away team when 6 was the tie no?: ``` SELECT away_team FROM table_name_69 WHERE tie_no = "6" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_65 (episode INTEGER, segment_c VARCHAR) Question: What is the highest episode of Wood Flutes segment c? [/INST] Here is the SQLite query to answer to the question: What is the highest episode of Wood Flutes segment c?: ``` SELECT MAX(episode) FROM table_name_65 WHERE segment_c = "wood flutes" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (position VARCHAR, first VARCHAR) Question: In which position did Steve play first? [/INST] Here is the SQLite query to answer to the question: In which position did Steve play first?: ``` SELECT position FROM table_name_26 WHERE first = "steve" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25938117_1 (tournament VARCHAR, location VARCHAR) Question: Name the tournament for dominican republic [/INST] Here is the SQLite query to answer to the question: Name the tournament for dominican republic: ``` SELECT tournament FROM table_25938117_1 WHERE location = "Dominican Republic" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2226817_12 (original_air_date VARCHAR, production_code VARCHAR) Question: when was the episode premiere if the production code is 11.19? [/INST] Here is the SQLite query to answer to the question: when was the episode premiere if the production code is 11.19? : ``` SELECT COUNT(original_air_date) FROM table_2226817_12 WHERE production_code = "11.19" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_18 (opposing_teams VARCHAR, date VARCHAR) Question: Which Opposing Teams is on 06/02/1988? [/INST] Here is the SQLite query to answer to the question: Which Opposing Teams is on 06/02/1988?: ``` SELECT opposing_teams FROM table_name_18 WHERE date = "06/02/1988" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR) Question: What was the lowest attendance was the opponent was chelsea? [/INST] Here is the SQLite query to answer to the question: What was the lowest attendance was the opponent was chelsea?: ``` SELECT MIN(attendance) FROM table_name_68 WHERE opponent = "chelsea" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1160660_1 (acronym VARCHAR, university_name VARCHAR) Question: What is the acronym used for Beirut Arab University? [/INST] Here is the SQLite query to answer to the question: What is the acronym used for Beirut Arab University?: ``` SELECT acronym FROM table_1160660_1 WHERE university_name = "Beirut Arab University" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE ship (Name VARCHAR, Tonnage VARCHAR) Question: List the name of ships in ascending order of tonnage. [/INST] Here is the SQLite query to answer to the question: List the name of ships in ascending order of tonnage.: ``` SELECT Name FROM ship ORDER BY Tonnage ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_63 (name VARCHAR, reported_death_date VARCHAR) Question: Who has a reported death of 6 march 1998? [/INST] Here is the SQLite query to answer to the question: Who has a reported death of 6 march 1998?: ``` SELECT name FROM table_name_63 WHERE reported_death_date = "6 march 1998" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (attendance VARCHAR, loss VARCHAR) Question: How many were in attendance with a loss of Prokopec (2-7)? [/INST] Here is the SQLite query to answer to the question: How many were in attendance with a loss of Prokopec (2-7)?: ``` SELECT attendance FROM table_name_21 WHERE loss = "prokopec (2-7)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (drivers VARCHAR, engine VARCHAR, races VARCHAR) Question: Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record? [/INST] Here is the SQLite query to answer to the question: Who drove a race car with a Mercedes IC 108e engine and has an 8-10 record?: ``` SELECT drivers FROM table_name_28 WHERE engine = "mercedes ic 108e" AND races = "8-10" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (name VARCHAR, license VARCHAR) Question: Who has a license of proprietary (available on inquiry)? [/INST] Here is the SQLite query to answer to the question: Who has a license of proprietary (available on inquiry)?: ``` SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR) Question: Which entrant has Ferrari 038 3.5 v12 engine? [/INST] Here is the SQLite query to answer to the question: Which entrant has Ferrari 038 3.5 v12 engine?: ``` SELECT entrant FROM table_name_72 WHERE engine = "ferrari 038 3.5 v12" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28039032_1 (clubs_remaining VARCHAR, round VARCHAR) Question: How many clubs were remaining in the preliminary round? [/INST] Here is the SQLite query to answer to the question: How many clubs were remaining in the preliminary round?: ``` SELECT clubs_remaining FROM table_28039032_1 WHERE round = "Preliminary round" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1601792_3 (genre VARCHAR, station VARCHAR) Question: What is the genre for the hot fm station? [/INST] Here is the SQLite query to answer to the question: What is the genre for the hot fm station?: ``` SELECT genre FROM table_1601792_3 WHERE station = "Hot FM" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (played VARCHAR, goals_for VARCHAR, points VARCHAR, position VARCHAR) Question: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35 [/INST] Here is the SQLite query to answer to the question: Name the total number of played when points of is 31-7, position is 16 and goals for is less than 35: ``` SELECT COUNT(played) FROM table_name_67 WHERE points = "31-7" AND position = 16 AND goals_for < 35 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_22 (name VARCHAR, field VARCHAR) Question: What is the Name of the power station in the Field of Mokai? [/INST] Here is the SQLite query to answer to the question: What is the Name of the power station in the Field of Mokai?: ``` SELECT name FROM table_name_22 WHERE field = "mokai" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (circuit VARCHAR, winning_constructor VARCHAR) Question: Which circuit did alfa romeo win? [/INST] Here is the SQLite query to answer to the question: Which circuit did alfa romeo win?: ``` SELECT circuit FROM table_name_41 WHERE winning_constructor = "alfa romeo" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (particle VARCHAR, makeup VARCHAR, spin___parity___j_p VARCHAR) Question: Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +? [/INST] Here is the SQLite query to answer to the question: Which Particle has a Makeup of d s s and a Spin (Parity) J P of 3⁄2 +?: ``` SELECT particle FROM table_name_85 WHERE makeup = "d s s" AND spin___parity___j_p = "3⁄2 +" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR) Question: How many economy stats for the player with 2/19 BBI? [/INST] Here is the SQLite query to answer to the question: How many economy stats for the player with 2/19 BBI?: ``` SELECT COUNT(economy) FROM table_28846752_13 WHERE bbi = "2/19" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_89 (operator VARCHAR, project_name VARCHAR, peak VARCHAR, year_startup VARCHAR) Question: What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)? [/INST] Here is the SQLite query to answer to the question: What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?: ``` SELECT operator FROM table_name_89 WHERE peak = "90" AND year_startup = "2010" AND project_name = "aosp expansion 1 (jackpine ph 1a)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (cuts_made INTEGER, tournament VARCHAR, events VARCHAR) Question: How many cuts did he make at the PGA championship in 3 events? [/INST] Here is the SQLite query to answer to the question: How many cuts did he make at the PGA championship in 3 events?: ``` SELECT MAX(cuts_made) FROM table_name_36 WHERE tournament = "pga championship" AND events > 3 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR) Question: How many parks is Zippin Pippin located in [/INST] Here is the SQLite query to answer to the question: How many parks is Zippin Pippin located in: ``` SELECT COUNT(park) FROM table_2665085_1 WHERE name = "Zippin Pippin" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR, time VARCHAR) Question: What was the number of Laps with a Grid of more than 3 and Time of 39:24.967? [/INST] Here is the SQLite query to answer to the question: What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?: ``` SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = "39:24.967" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2570269_2 (episode__number VARCHAR, episode_title VARCHAR) Question: What is the episode number for episode title Leave Takers? [/INST] Here is the SQLite query to answer to the question: What is the episode number for episode title Leave Takers?: ``` SELECT episode__number FROM table_2570269_2 WHERE episode_title = "Leave Takers" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15872814_3 (team VARCHAR, date VARCHAR) Question: Name the team for november 9 [/INST] Here is the SQLite query to answer to the question: Name the team for november 9: ``` SELECT team FROM table_15872814_3 WHERE date = "November 9" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (to_par INTEGER, finish VARCHAR) Question: What is the sum of To par when the Finish is t11? [/INST] Here is the SQLite query to answer to the question: What is the sum of To par when the Finish is t11?: ``` SELECT SUM(to_par) FROM table_name_59 WHERE finish = "t11" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (total VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR) Question: What is the total when gold is 1, and rank is more than 4, and bronze is 0? [/INST] Here is the SQLite query to answer to the question: What is the total when gold is 1, and rank is more than 4, and bronze is 0?: ``` SELECT COUNT(total) FROM table_name_1 WHERE gold = 1 AND rank > 4 AND bronze = 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_22 (heat_rank VARCHAR, country VARCHAR) Question: Name the heat rank for senegal [/INST] Here is the SQLite query to answer to the question: Name the heat rank for senegal: ``` SELECT heat_rank FROM table_name_22 WHERE country = "senegal" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (report VARCHAR, winning_driver VARCHAR) Question: Name the report for philip fotheringham-parker [/INST] Here is the SQLite query to answer to the question: Name the report for philip fotheringham-parker: ``` SELECT report FROM table_name_74 WHERE winning_driver = "philip fotheringham-parker" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (round_1 INTEGER, place VARCHAR, year VARCHAR) Question: What is the lowest round with a place of t15 in a year earlier than 1998? [/INST] Here is the SQLite query to answer to the question: What is the lowest round with a place of t15 in a year earlier than 1998?: ``` SELECT MIN(round_1) FROM table_name_15 WHERE place = "t15" AND year < 1998 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (date VARCHAR, round INTEGER) Question: Which date has a round more than 9? [/INST] Here is the SQLite query to answer to the question: Which date has a round more than 9?: ``` SELECT date FROM table_name_85 WHERE round > 9 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_214920_1 (seat_of_rcm VARCHAR, density__pop_per_km2_ VARCHAR) Question: What is the seat of the county that has a density of 14.1? [/INST] Here is the SQLite query to answer to the question: What is the seat of the county that has a density of 14.1?: ``` SELECT seat_of_rcm FROM table_214920_1 WHERE density__pop_per_km2_ = "14.1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_19730892_1 (fa_cup_apps VARCHAR, name VARCHAR) Question: Name the fa cup apps for george green [/INST] Here is the SQLite query to answer to the question: Name the fa cup apps for george green: ``` SELECT fa_cup_apps FROM table_19730892_1 WHERE name = "George Green" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (constituency VARCHAR, candidate VARCHAR, position VARCHAR, party VARCHAR, election VARCHAR) Question: Which Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997? [/INST] Here is the SQLite query to answer to the question: Which Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997?: ``` SELECT constituency FROM table_name_41 WHERE party = "alliance" AND election < 1997 AND position = 2 AND candidate = "seamus close" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_86 (song VARCHAR, release_info VARCHAR) Question: Which song released on heavenly (hvn152)? [/INST] Here is the SQLite query to answer to the question: Which song released on heavenly (hvn152)?: ``` SELECT song FROM table_name_86 WHERE release_info = "heavenly (hvn152)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11111116_7 (directed_by VARCHAR, us_viewers__million_ VARCHAR) Question: Who directed episodes that had 2.61 million U.S. viewers? [/INST] Here is the SQLite query to answer to the question: Who directed episodes that had 2.61 million U.S. viewers?: ``` SELECT directed_by FROM table_11111116_7 WHERE us_viewers__million_ = "2.61" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (grid VARCHAR, laps VARCHAR) Question: What grid is associated with 67 laps? [/INST] Here is the SQLite query to answer to the question: What grid is associated with 67 laps?: ``` SELECT grid FROM table_name_45 WHERE laps = 67 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1965650_8 (nhl_team VARCHAR, player VARCHAR) Question: What NHL team does Denis Desgagnes play for? [/INST] Here is the SQLite query to answer to the question: What NHL team does Denis Desgagnes play for?: ``` SELECT nhl_team FROM table_1965650_8 WHERE player = "Denis Desgagnes" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_73 (lost VARCHAR, drawn VARCHAR, played VARCHAR) Question: What is the total number of losses of the player that has drawn 1 and played smaller than 12? [/INST] Here is the SQLite query to answer to the question: What is the total number of losses of the player that has drawn 1 and played smaller than 12?: ``` SELECT COUNT(lost) FROM table_name_73 WHERE drawn = 1 AND played < 12 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2930244_3 (number_of_hurricanes INTEGER) Question: What is the lowest overall number of hurricanes? [/INST] Here is the SQLite query to answer to the question: What is the lowest overall number of hurricanes?: ``` SELECT MIN(number_of_hurricanes) FROM table_2930244_3 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_77 (city VARCHAR, state VARCHAR, longitude VARCHAR) Question: What city in Svalbard has a longitude of 15°39′e? [/INST] Here is the SQLite query to answer to the question: What city in Svalbard has a longitude of 15°39′e?: ``` SELECT city FROM table_name_77 WHERE state = "svalbard" AND longitude = "15°39′e" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15581223_8 (int INTEGER) Question: Name the least amount of int yards [/INST] Here is the SQLite query to answer to the question: Name the least amount of int yards: ``` SELECT MIN(int) AS yards FROM table_15581223_8 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (shot_pct INTEGER, ends_won VARCHAR, ends_lost VARCHAR) Question: What is the smallest shot % with ends won larger than 29 and ends lost smaller than 26? [/INST] Here is the SQLite query to answer to the question: What is the smallest shot % with ends won larger than 29 and ends lost smaller than 26?: ``` SELECT MIN(shot_pct) FROM table_name_1 WHERE ends_won > 29 AND ends_lost < 26 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_16 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR) Question: What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? [/INST] Here is the SQLite query to answer to the question: What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102?: ``` SELECT AVG(grid) FROM table_name_16 WHERE constructor = "brm" AND driver = "tony maggs" AND laps > 102 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_52 (location_attendance VARCHAR, date VARCHAR) Question: What is the location attendance of the game on February 25? [/INST] Here is the SQLite query to answer to the question: What is the location attendance of the game on February 25?: ``` SELECT location_attendance FROM table_name_52 WHERE date = "february 25" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26173058_2 (ahli VARCHAR, ramtha VARCHAR) Question: what is the location where the record is 1-0 [/INST] Here is the SQLite query to answer to the question: what is the location where the record is 1-0: ``` SELECT ahli FROM table_26173058_2 WHERE ramtha = "1-0" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (home_team VARCHAR, date VARCHAR) Question: Which home team played on January 5, 2008? [/INST] Here is the SQLite query to answer to the question: Which home team played on January 5, 2008?: ``` SELECT home_team FROM table_name_79 WHERE date = "january 5, 2008" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_52 (bronze VARCHAR, rank VARCHAR, total VARCHAR, nation VARCHAR) Question: What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4? [/INST] Here is the SQLite query to answer to the question: What is the total of Bronze with a total smaller than 3, and a nation of Poland, and a rank larger than 4?: ``` SELECT COUNT(bronze) FROM table_name_52 WHERE total < 3 AND nation = "poland" AND rank > 4 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24853015_1 (date VARCHAR, class_b_winner VARCHAR, round VARCHAR) Question: When did Alan Hutcheson won Class B on round 1? [/INST] Here is the SQLite query to answer to the question: When did Alan Hutcheson won Class B on round 1?: ``` SELECT date FROM table_24853015_1 WHERE class_b_winner = "Alan Hutcheson" AND round = 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2781227_10 (position VARCHAR, player VARCHAR) Question: which part on the team does rick schuhwerk play [/INST] Here is the SQLite query to answer to the question: which part on the team does rick schuhwerk play: ``` SELECT position FROM table_2781227_10 WHERE player = "Rick Schuhwerk" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR) Question: How many laps were driven in 2:54:23.8? [/INST] Here is the SQLite query to answer to the question: How many laps were driven in 2:54:23.8?: ``` SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.8" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, _number VARCHAR) Question: what's the date of birth with # being 2 [/INST] Here is the SQLite query to answer to the question: what's the date of birth with # being 2: ``` SELECT date_of_birth FROM table_12134383_1 WHERE _number = 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR) Question: Oklahoma State produced a player in which position in the draft? [/INST] Here is the SQLite query to answer to the question: Oklahoma State produced a player in which position in the draft?: ``` SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (place INTEGER, ribbon VARCHAR, total VARCHAR) Question: What place had a ribbon below 9.8 and a 19.2 total? [/INST] Here is the SQLite query to answer to the question: What place had a ribbon below 9.8 and a 19.2 total?: ``` SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (home VARCHAR, attendance VARCHAR, away VARCHAR) Question: Who was the home team in the game with more than 1675, and Olimpia was the away side? [/INST] Here is the SQLite query to answer to the question: Who was the home team in the game with more than 1675, and Olimpia was the away side?: ``` SELECT home FROM table_name_28 WHERE attendance > 1675 AND away = "olimpia" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_64 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR) Question: Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297? [/INST] Here is the SQLite query to answer to the question: Which Pick has a Round larger than 8, a Name of kenny fells, and an Overall larger than 297?: ``` SELECT SUM(pick) FROM table_name_64 WHERE round > 8 AND name = "kenny fells" AND overall > 297 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (spouse VARCHAR, father VARCHAR) Question: Leopold VI, Duke of Austria is the father-in-law of which person? [/INST] Here is the SQLite query to answer to the question: Leopold VI, Duke of Austria is the father-in-law of which person?: ``` SELECT spouse FROM table_name_26 WHERE father = "leopold vi, duke of austria" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (date VARCHAR, winner VARCHAR) Question: Ram Vaswani was a winner on what date? [/INST] Here is the SQLite query to answer to the question: Ram Vaswani was a winner on what date?: ``` SELECT date FROM table_name_91 WHERE winner = "ram vaswani" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22815568_6 (county VARCHAR, poverty_rate VARCHAR) Question: If the poverty rate is 12.9%, what is the county? [/INST] Here is the SQLite query to answer to the question: If the poverty rate is 12.9%, what is the county?: ``` SELECT county FROM table_22815568_6 WHERE poverty_rate = "12.9%" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_94 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR) Question: What is the lowest expenditures on R&D for Poland after 2011? [/INST] Here is the SQLite query to answer to the question: What is the lowest expenditures on R&D for Poland after 2011?: ``` SELECT MIN(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_94 WHERE country_region = "poland" AND year > 2011 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_78 (game INTEGER, team VARCHAR) Question: What is the average Game, when Team is "Milwaukee"? [/INST] Here is the SQLite query to answer to the question: What is the average Game, when Team is "Milwaukee"?: ``` SELECT AVG(game) FROM table_name_78 WHERE team = "milwaukee" ```