text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the rounds for jenson button with a bmw e41 engine? ### Context: CREATE TABLE table_name_2 (rounds VARCHAR, engine_† VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_2 WHERE engine_† = "bmw e41" AND driver = "jenson button" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result for pfc: put up or shut up? ### Context: CREATE TABLE table_name_97 (res VARCHAR, event VARCHAR) [/INST] ### Response: SELECT res FROM table_name_97 WHERE event = "pfc: put up or shut up" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126? ### Context: CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which rounds had the B195 chassis? ### Context: CREATE TABLE table_name_89 (rounds VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_89 WHERE chassis = "b195" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the driver of the Ford EDB 3.0 v8 engine? ### Context: CREATE TABLE table_name_82 (driver VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_82 WHERE engine = "ford edb 3.0 v8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want the highest grid for Laps of 38 ### Context: CREATE TABLE table_name_94 (grid INTEGER, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_94 WHERE laps = 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen ### Context: CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = "heinz-harald frentzen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Ivaiporã, pr's biggest population? ### Context: CREATE TABLE table_name_13 (population INTEGER, town_city VARCHAR) [/INST] ### Response: SELECT MAX(population) FROM table_name_13 WHERE town_city = "ivaiporã, pr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which is the smallest First year when the population is 32,645? ### Context: CREATE TABLE table_name_33 (first_year INTEGER, population VARCHAR) [/INST] ### Response: SELECT MIN(first_year) FROM table_name_33 WHERE population = 32 OFFSET 645 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Jushin Liger has a Super Shocker of liger (13:59)? ### Context: CREATE TABLE table_name_44 (jushin_liger VARCHAR, super_shocker VARCHAR) [/INST] ### Response: SELECT jushin_liger FROM table_name_44 WHERE super_shocker = "liger (13:59)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Masaaki Mochizuki has a Gran Hamada of hamada (10:47)? ### Context: CREATE TABLE table_name_56 (masaaki_mochizuki VARCHAR, gran_hamada VARCHAR) [/INST] ### Response: SELECT masaaki_mochizuki FROM table_name_56 WHERE gran_hamada = "hamada (10:47)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Tatsuhito Takaiwa has a Koji Kanemoto of liger (20:29)? ### Context: CREATE TABLE table_name_38 (tatsuhito_takaiwa VARCHAR, koji_kanemoto VARCHAR) [/INST] ### Response: SELECT tatsuhito_takaiwa FROM table_name_38 WHERE koji_kanemoto = "liger (20:29)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Gran Hamada has a Block A of tatsuhito takaiwa? ### Context: CREATE TABLE table_name_67 (gran_hamada VARCHAR, block_a VARCHAR) [/INST] ### Response: SELECT gran_hamada FROM table_name_67 WHERE block_a = "tatsuhito takaiwa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Jushin Liger has a Gran Hamada of kendo kashin? ### Context: CREATE TABLE table_name_60 (jushin_liger VARCHAR, gran_hamada VARCHAR) [/INST] ### Response: SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = "kendo kashin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Jushin Liger has a Masaaki Mochizuki of kashin (10:00)? ### Context: CREATE TABLE table_name_20 (jushin_liger VARCHAR, masaaki_mochizuki VARCHAR) [/INST] ### Response: SELECT jushin_liger FROM table_name_20 WHERE masaaki_mochizuki = "kashin (10:00)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the code for Saint-Damien in Matawinie with a type p? ### Context: CREATE TABLE table_name_35 (code INTEGER, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) [/INST] ### Response: SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name for the regional county municipality of d'autray and a code less than 52017? ### Context: CREATE TABLE table_name_9 (name VARCHAR, regional_county_municipality VARCHAR, code VARCHAR) [/INST] ### Response: SELECT name FROM table_name_9 WHERE regional_county_municipality = "d'autray" AND code < 52017 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Delivery has a Name of quince? ### Context: CREATE TABLE table_name_80 (delivery VARCHAR, name VARCHAR) [/INST] ### Response: SELECT delivery FROM table_name_80 WHERE name = "quince" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)? ### Context: CREATE TABLE table_name_96 (elevation_ VARCHAR, _height VARCHAR, delivery VARCHAR, location VARCHAR) [/INST] ### Response: SELECT elevation_ + _height FROM table_name_96 WHERE delivery = "barge" AND location = "bikini, yurochi aka irioj (dog)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Purpose has a Location of enewetak, runit (yvonne) and the Name of cactus? ### Context: CREATE TABLE table_name_96 (purpose VARCHAR, location VARCHAR, name VARCHAR) [/INST] ### Response: SELECT purpose FROM table_name_96 WHERE location = "enewetak, runit (yvonne)" AND name = "cactus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Purpose has a Name of oak? ### Context: CREATE TABLE table_name_49 (purpose VARCHAR, name VARCHAR) [/INST] ### Response: SELECT purpose FROM table_name_49 WHERE name = "oak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Location has a Delivery of barge and the Name of scaevola? ### Context: CREATE TABLE table_name_77 (location VARCHAR, delivery VARCHAR, name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_77 WHERE delivery = "barge" AND name = "scaevola" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt? ### Context: CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR) [/INST] ### Response: SELECT purpose FROM table_name_37 WHERE elevation_ + _height = "0 + metres (ft)" AND location = "bikini, namu (charlie)" AND yield = "220 kt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the colour commmentator that broadcasted along with the Play-by-play of bob cole? ### Context: CREATE TABLE table_name_1 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR) [/INST] ### Response: SELECT colour_commentator_s_ FROM table_name_1 WHERE play_by_play = "bob cole" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which network had the host of john wells? ### Context: CREATE TABLE table_name_57 (network VARCHAR, studio_host VARCHAR) [/INST] ### Response: SELECT network FROM table_name_57 WHERE studio_host = "john wells" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who manufactured the vehicle withdrawn after 1932? ### Context: CREATE TABLE table_name_24 (manufacturer VARCHAR, year_withdrawn INTEGER) [/INST] ### Response: SELECT manufacturer FROM table_name_24 WHERE year_withdrawn > 1932 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who manufactured the vehicle that was withdrawn in 1927? ### Context: CREATE TABLE table_name_52 (manufacturer VARCHAR, year_withdrawn VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_52 WHERE year_withdrawn = 1927 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of losses for the Team of Montreal with Goals For larger than 29? ### Context: CREATE TABLE table_name_50 (losses VARCHAR, goals_for VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_50 WHERE goals_for > 29 AND team = "montreal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Goals For for a team that has more Wins than 8? ### Context: CREATE TABLE table_name_94 (goals_for INTEGER, wins INTEGER) [/INST] ### Response: SELECT AVG(goals_for) FROM table_name_94 WHERE wins > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest number of Games Played with Losses of 3, and more Wins than 5? ### Context: CREATE TABLE table_name_40 (games_played INTEGER, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MAX(games_played) FROM table_name_40 WHERE losses = 3 AND wins > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the number of Ties for games with Goals Against smaller than 33? ### Context: CREATE TABLE table_name_23 (ties VARCHAR, goals_against INTEGER) [/INST] ### Response: SELECT ties FROM table_name_23 WHERE goals_against < 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of Goals For for Games Played more than 8? ### Context: CREATE TABLE table_name_44 (goals_for INTEGER, games_played INTEGER) [/INST] ### Response: SELECT SUM(goals_for) FROM table_name_44 WHERE games_played > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party is class 1 in wisconsin? ### Context: CREATE TABLE table_name_99 (party VARCHAR, class VARCHAR, state VARCHAR) [/INST] ### Response: SELECT party FROM table_name_99 WHERE class = 1 AND state = "wisconsin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What state was maria cantwell born in after 1955? ### Context: CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR) [/INST] ### Response: SELECT state FROM table_name_50 WHERE born > 1955 AND name = "maria cantwell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of Laps for lance reventlow with grid more than 16 ### Context: CREATE TABLE table_name_56 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_56 WHERE driver = "lance reventlow" AND grid > 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the constructor that has 35 Laps with a grid more than 5 ### Context: CREATE TABLE table_name_61 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Grids for Chuck Daigh? ### Context: CREATE TABLE table_name_29 (grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_29 WHERE driver = "chuck daigh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party is Marie-Dominique Simonet part of? ### Context: CREATE TABLE table_name_97 (party VARCHAR, name VARCHAR) [/INST] ### Response: SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which vehicle has a Diagram of 516 or smaller, and a driving motor brake second (dmbs) type. ### Context: CREATE TABLE table_name_53 (seating VARCHAR, diagram_no VARCHAR, type VARCHAR) [/INST] ### Response: SELECT seating FROM table_name_53 WHERE diagram_no > 516 AND type = "driving motor brake second (dmbs)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the lowest total when the floor exercise is less than 36.724 and the rank is lower than 8? ### Context: CREATE TABLE table_name_13 (total INTEGER, floor_exercise VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_13 WHERE floor_exercise < 36.724 AND rank < 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number scored in a friendly at kryoia soveto, moscow? ### Context: CREATE TABLE table_name_24 (scored INTEGER, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT AVG(scored) FROM table_name_24 WHERE competition = "friendly" AND venue = "kryoia soveto, moscow" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home teams score when north melbourne is the away team? ### Context: CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_87 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest crowd when fitzroy is the home team? ### Context: CREATE TABLE table_name_24 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_24 WHERE home_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest crowd when essendon is the away team? ### Context: CREATE TABLE table_name_78 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_78 WHERE away_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was essendon the away team? ### Context: CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_57 WHERE away_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the year when chief justice Mark Cady was appointed/elected? ### Context: CREATE TABLE table_name_91 (appointed_elected VARCHAR, name VARCHAR) [/INST] ### Response: SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the expiring term for Daryl Hecht when the appointing governor is Tom Vilsack? ### Context: CREATE TABLE table_name_27 (term_expires VARCHAR, appointing_governor VARCHAR, name VARCHAR) [/INST] ### Response: SELECT term_expires FROM table_name_27 WHERE appointing_governor = "tom vilsack" AND name = "daryl hecht" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor? ### Context: CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR) [/INST] ### Response: SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor? ### Context: CREATE TABLE table_name_33 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR) [/INST] ### Response: SELECT name FROM table_name_33 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team picked 80? ### Context: CREATE TABLE table_name_94 (team VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT team FROM table_name_94 WHERE pick = 80 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the away team that plays at Punt Road Oval? ### Context: CREATE TABLE table_name_43 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_43 WHERE venue = "punt road oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date did Footscray play and Away game? ### Context: CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE away_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the average total for tournament less than 0 ### Context: CREATE TABLE table_name_82 (total INTEGER, tournament INTEGER) [/INST] ### Response: SELECT AVG(total) FROM table_name_82 WHERE tournament < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the highest total for the tournament more than 0 and regular season after 8 ### Context: CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the number in attendance for the Detroit Lions game? ### Context: CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_21 WHERE opponent = "detroit lions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which date had 67,472 in attendance? ### Context: CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_73 WHERE attendance = "67,472" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent team on September 30, 1990? ### Context: CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the team record by Week 8? ### Context: CREATE TABLE table_name_60 (record VARCHAR, week VARCHAR) [/INST] ### Response: SELECT record FROM table_name_60 WHERE week = "8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which week has Game site of Candlestick Park? ### Context: CREATE TABLE table_name_32 (week VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT week FROM table_name_32 WHERE game_site = "candlestick park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the attandance figure on October 7, 1990? ### Context: CREATE TABLE table_name_23 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_23 WHERE date = "october 7, 1990" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What driver was the winner when constructor was Maserati at the Monaco grand prix? ### Context: CREATE TABLE table_name_36 (winning_driver VARCHAR, constructor VARCHAR, race VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_36 WHERE constructor = "maserati" AND race = "monaco grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix? ### Context: CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit was for the german grand prix? ### Context: CREATE TABLE table_name_5 (circuit VARCHAR, race VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_5 WHERE race = "german grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total attendance for Detroit on hasek? ### Context: CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the method used when the opponent was Tyson Griffin? ### Context: CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT method FROM table_name_75 WHERE opponent = "tyson griffin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who wins the clive churchill medal when the losing team is the sydney roosters in 2010? ### Context: CREATE TABLE table_name_27 (clive_churchill_medal VARCHAR, losingteam VARCHAR, season VARCHAR) [/INST] ### Response: SELECT clive_churchill_medal FROM table_name_27 WHERE losingteam = "sydney roosters" AND season = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the grand final date for the game with a score or 30-24? ### Context: CREATE TABLE table_name_44 (grand_finaldate VARCHAR, score VARCHAR) [/INST] ### Response: SELECT grand_finaldate FROM table_name_44 WHERE score = "30-24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition in 2003 has a score of 2–1? ### Context: CREATE TABLE table_name_81 (competition VARCHAR, year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_81 WHERE year = 2003 AND score = "2–1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score of a year less than 2008 with loss as the result, in Antalya and a Competition of europe/africa zone, group i, round robin? ### Context: CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR, result VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE year < 2008 AND result = "loss" AND location = "antalya" AND competition = "europe/africa zone, group i, round robin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2? ### Context: CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where did Essendon play as the away team? ### Context: CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_69 WHERE away_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has a Losses value larger than 1 and a Wins value smaller than 0? ### Context: CREATE TABLE table_name_94 (goal_diff INTEGER, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(goal_diff) FROM table_name_94 WHERE losses > 1 AND wins < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In guangzhou, who won the game with a score of 1-0? ### Context: CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, score VARCHAR) [/INST] ### Response: SELECT result FROM table_name_23 WHERE location = "guangzhou" AND score = "1-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On 2006-03-13 in the algarve cup, who won? ### Context: CREATE TABLE table_name_60 (result VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_60 WHERE competition = "algarve cup" AND date = "2006-03-13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won on 2007-04-14 ### Context: CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_66 WHERE date = "2007-04-14" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the record when the visitor is mavericks ### Context: CREATE TABLE table_name_96 (record VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_96 WHERE visitor = "mavericks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date when the visitor is nets ### Context: CREATE TABLE table_name_29 (date VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE visitor = "nets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college did john sullivan attend? ### Context: CREATE TABLE table_name_28 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_28 WHERE player = "john sullivan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average for the RB with an 8 yard long? ### Context: CREATE TABLE table_name_7 (avg VARCHAR, long VARCHAR) [/INST] ### Response: SELECT COUNT(avg) FROM table_name_7 WHERE long = 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average evening gown score of the contestant from New York with a swimsuit score less than 8.703 and preliminaries larger than 8.292? ### Context: CREATE TABLE table_name_47 (evening_gown INTEGER, preliminaries VARCHAR, swimsuit VARCHAR, state VARCHAR) [/INST] ### Response: SELECT AVG(evening_gown) FROM table_name_47 WHERE swimsuit < 8.703 AND state = "new york" AND preliminaries > 8.292 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the preliminaries of the contestant from Massachusetts with an evening gown higher than 8.631, an average less than 8.791, and an interview higher than 8.608? ### Context: CREATE TABLE table_name_97 (preliminaries VARCHAR, interview VARCHAR, state VARCHAR, evening_gown VARCHAR, average VARCHAR) [/INST] ### Response: SELECT COUNT(preliminaries) FROM table_name_97 WHERE evening_gown > 8.631 AND average < 8.791 AND state = "massachusetts" AND interview > 8.608 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997? ### Context: CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR) [/INST] ### Response: SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest interview of the contestant with an evening gown bigger than 9.343? ### Context: CREATE TABLE table_name_4 (interview INTEGER, evening_gown INTEGER) [/INST] ### Response: SELECT MIN(interview) FROM table_name_4 WHERE evening_gown > 9.343 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647? ### Context: CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR) [/INST] ### Response: SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 AND state = "district of columbia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the driver that has laps more than 35 and the constructor is ferrari? ### Context: CREATE TABLE table_name_51 (driver VARCHAR, laps VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_51 WHERE laps > 35 AND constructor = "ferrari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Team with a Date with december 11? ### Context: CREATE TABLE table_name_69 (team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT team FROM table_name_69 WHERE date = "december 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score with a Team with @ houston? ### Context: CREATE TABLE table_name_35 (score VARCHAR, team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_35 WHERE team = "@ houston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the High points with a Team with boston? ### Context: CREATE TABLE table_name_95 (high_points VARCHAR, team VARCHAR) [/INST] ### Response: SELECT high_points FROM table_name_95 WHERE team = "boston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Record with a Date with december 9? ### Context: CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_97 WHERE date = "december 9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whose reign ended in Egypt? ### Context: CREATE TABLE table_name_72 (reign_ended VARCHAR, country VARCHAR) [/INST] ### Response: SELECT reign_ended FROM table_name_72 WHERE country = "egypt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whose reign ended in Afghanistan after 3 days? ### Context: CREATE TABLE table_name_2 (reign_ended VARCHAR, length VARCHAR, country VARCHAR) [/INST] ### Response: SELECT reign_ended FROM table_name_2 WHERE length = "3 days" AND country = "afghanistan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whose reign began in Vietnam and ended in October 1005? ### Context: CREATE TABLE table_name_79 (reign_began VARCHAR, country VARCHAR, reign_ended VARCHAR) [/INST] ### Response: SELECT reign_began FROM table_name_79 WHERE country = "vietnam" AND reign_ended = "october 1005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did Pharaoh Seth's reign end? ### Context: CREATE TABLE table_name_17 (reign_ended VARCHAR, name VARCHAR) [/INST] ### Response: SELECT reign_ended FROM table_name_17 WHERE name = "pharaoh seth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did the home team score at MCG? ### Context: CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_39 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did the away team score in the game with a crowd size larger than 22,000? ### Context: CREATE TABLE table_name_1 (away_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT away_team AS score FROM table_name_1 WHERE crowd > 22 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the largest crowd size at a South Melbourne home game? ### Context: CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record on august 18? ### Context: CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_23 WHERE date = "august 18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the score on august 1 ### Context: CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_26 WHERE date = "august 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times was the points 18? ### Context: CREATE TABLE table_name_69 (place VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(place) FROM table_name_69 WHERE points = 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of points when the place is less than 7, the draw is more than 2 and the artist is piece of cake? ### Context: CREATE TABLE table_name_76 (points VARCHAR, artist VARCHAR, place VARCHAR, draw VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_76 WHERE place < 7 AND draw > 2 AND artist = "piece of cake" </s>