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: Which City has a Result of w, and a Competition of international friendly (unofficial match), and a Score of 1-0? ### Context: CREATE TABLE table_name_91 (city VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT city FROM table_name_91 WHERE result = "w" AND competition = "international friendly (unofficial match)" 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: Which Date has a Result of w, and a Score of 3-0? ### Context: CREATE TABLE table_name_94 (date VARCHAR, result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_94 WHERE result = "w" AND score = "3-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: Which City has a Date of june 9, 1976? ### Context: CREATE TABLE table_name_39 (city VARCHAR, date VARCHAR) [/INST] ### Response: SELECT city FROM table_name_39 WHERE date = "june 9, 1976" </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 City has a Date of may 19, 1976? ### Context: CREATE TABLE table_name_23 (city VARCHAR, date VARCHAR) [/INST] ### Response: SELECT city FROM table_name_23 WHERE date = "may 19, 1976" </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 total number of laps for Tom Bridger? ### Context: CREATE TABLE table_name_63 (laps VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_63 WHERE driver = "tom bridger" </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 lowest laps of Graham Hill? ### Context: CREATE TABLE table_name_68 (laps INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_68 WHERE driver = "graham hill" </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 lowest laps of grid 17? ### Context: CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_69 WHERE grid = 17 </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 Avg/G has a Gain of 16, and a Name of barnes, freddie, and a Loss smaller than 2? ### Context: CREATE TABLE table_name_91 (avg_g INTEGER, loss VARCHAR, gain VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(avg_g) FROM table_name_91 WHERE gain = 16 AND name = "barnes, freddie" AND loss < 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: Which average Long has a Gain smaller than 16, and a Loss smaller than 6? ### Context: CREATE TABLE table_name_51 (long INTEGER, gain VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT AVG(long) FROM table_name_51 WHERE gain < 16 AND loss < 6 </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 Gain is the lowest one that has a Loss larger than 2, and an Avg/G larger than -6, and a Name of sheehan, tyler, and a Long larger than 11? ### Context: CREATE TABLE table_name_84 (gain INTEGER, long VARCHAR, name VARCHAR, loss VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT MIN(gain) FROM table_name_84 WHERE loss > 2 AND avg_g > -6 AND name = "sheehan, tyler" AND long > 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: Which Avg/G is the lowest one that has a Long larger than 8, and a Loss smaller than 34, and a Gain larger than 16, and a Name of bullock, chris? ### Context: CREATE TABLE table_name_52 (avg_g INTEGER, name VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT MIN(avg_g) FROM table_name_52 WHERE long > 8 AND loss < 34 AND gain > 16 AND name = "bullock, chris" </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 Loss has a Name of bullock, chris, and a Long smaller than 36? ### Context: CREATE TABLE table_name_72 (loss INTEGER, name VARCHAR, long VARCHAR) [/INST] ### Response: SELECT SUM(loss) FROM table_name_72 WHERE name = "bullock, chris" AND long < 36 </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 much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129? ### Context: CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR) [/INST] ### Response: SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129 </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 fewest number of places for a skater from Norway with fewer than 1524.9 points? ### Context: CREATE TABLE table_name_11 (places INTEGER, nation VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(places) FROM table_name_11 WHERE nation = "norway" AND points < 1524.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: What home has Philadelphia as the visitor, and december 4 as the date? ### Context: CREATE TABLE table_name_1 (home VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_1 WHERE visitor = "philadelphia" AND date = "december 4" </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 record has a decision of parent, Philadelphia as the home, with december 12 as the date? ### Context: CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR, decision VARCHAR, home VARCHAR) [/INST] ### Response: SELECT record FROM table_name_81 WHERE decision = "parent" AND home = "philadelphia" AND date = "december 12" </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 Tournament has a Score of 6–4, 6–2? ### Context: CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_62 WHERE score = "6–4, 6–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: Which Score has an Opponent in the final of mehdi tahiri? ### Context: CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_96 WHERE opponent_in_the_final = "mehdi tahiri" </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 has a Score of 6–3, 7–6? ### Context: CREATE TABLE table_name_3 (date INTEGER, score VARCHAR) [/INST] ### Response: SELECT SUM(date) FROM table_name_3 WHERE score = "6–3, 7–6" </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 has a Score of 7–6(3), 4–6, 6–2? ### Context: CREATE TABLE table_name_68 (date INTEGER, score VARCHAR) [/INST] ### Response: SELECT SUM(date) FROM table_name_68 WHERE score = "7–6(3), 4–6, 6–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: Which Surface has a Tournament of olbia? ### Context: CREATE TABLE table_name_62 (surface VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_62 WHERE tournament = "olbia" </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 attendance at the week 7 game? ### Context: CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_43 WHERE week = 7 </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 result of the game after week 3 against the New York Giants? ### Context: CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants" </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 at the week 6 game? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_52 WHERE week = 6 </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 loss that Jarius Wright has had where he also has had a gain bigger than 1. ### Context: CREATE TABLE table_name_80 (loss INTEGER, name VARCHAR, gain VARCHAR) [/INST] ### Response: SELECT MIN(loss) FROM table_name_80 WHERE name = "jarius wright" AND gain > 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 much was the first place prize for the American golf classic located in Ohio? ### Context: CREATE TABLE table_name_80 (location VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT 1 AS st_prize___$__ FROM table_name_80 WHERE location = "ohio" AND tournament = "american golf classic" </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 Monsanto open located in Florida? ### Context: CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_58 WHERE location = "florida" AND tournament = "monsanto open" </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 score of Johnny Miller (7)? ### Context: CREATE TABLE table_name_80 (score VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_80 WHERE winner = "johnny miller (7)" </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 years that have divisions greater than 4? ### Context: CREATE TABLE table_name_62 (year VARCHAR, division INTEGER) [/INST] ### Response: SELECT COUNT(year) FROM table_name_62 WHERE division > 4 </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 division for years earlier than 2011? ### Context: CREATE TABLE table_name_27 (division INTEGER, year INTEGER) [/INST] ### Response: SELECT MAX(division) FROM table_name_27 WHERE year < 2011 </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 Week number on November 30, 1958 with more than 33,240 in Attendance? ### Context: CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240 </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 Result on November 9, 1958? ### Context: CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_77 WHERE date = "november 9, 1958" </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 Attendance on Week 8? ### Context: CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_70 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 season did not qualify for UEFA competitions? ### Context: CREATE TABLE table_name_70 (season VARCHAR, against VARCHAR) [/INST] ### Response: SELECT season FROM table_name_70 WHERE against = "did not qualify for uefa competitions" </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 games were lost that had goals against of 5? ### Context: CREATE TABLE table_name_15 (lost VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_15 WHERE goals_against = "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: How many draws were there with goals against that did not qualify for UEFA competitions? ### Context: CREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT drew FROM table_name_56 WHERE goals_against = "did not qualify for uefa competitions" </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 competition did not qualify for UEFA competitions in the 1970-71 season? ### Context: CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71" </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 attendance in texas stadium? ### Context: CREATE TABLE table_name_86 (attendance INTEGER, venue VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_86 WHERE venue = "texas stadium" </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 team score for the team that has a home field of the Telstra Dome? ### Context: CREATE TABLE table_name_98 (home_team VARCHAR, ground VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_98 WHERE ground = "telstra dome" </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 home team had an away team of the Brisbane Lions? ### Context: CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_36 WHERE away_team = "brisbane 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: What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3? ### Context: CREATE TABLE table_name_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR) [/INST] ### Response: SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3" </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 sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro? ### Context: CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR) [/INST] ### Response: SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro" </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 output with no IR LEDs? ### Context: CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR) [/INST] ### Response: SELECT output FROM table_name_90 WHERE ir_leds = "no" </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 sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy? ### Context: CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR) [/INST] ### Response: SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "sony playstation eyetoy" </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 max speed of the unit with an 8+4 quantity built before 1971? ### Context: CREATE TABLE table_name_22 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR) [/INST] ### Response: SELECT SUM(max_speed__km_h_) FROM table_name_22 WHERE quantity_built = "8+4" AND year_built < 1971 </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 numbers of the thn unit with a power greater than 220? ### Context: CREATE TABLE table_name_49 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR) [/INST] ### Response: SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = "thn" </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 power of the unit built after 1995? ### Context: CREATE TABLE table_name_71 (power__horsepower_ INTEGER, year_built INTEGER) [/INST] ### Response: SELECT SUM(power__horsepower_) FROM table_name_71 WHERE year_built > 1995 </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: Week larger than 6, and a Date of november 22, 1959 had what result? ### Context: CREATE TABLE table_name_5 (result VARCHAR, week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959" </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: Result of w 21–7 had what average week? ### Context: CREATE TABLE table_name_96 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7" </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: Date of november 29, 1959 had what lowest attendance? ### Context: CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959" </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: Week that has a Date of december 5, 1959 had what week? ### Context: CREATE TABLE table_name_4 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_4 WHERE date = "december 5, 1959" </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 Game has an Opponent of @ carolina hurricanes? ### Context: CREATE TABLE table_name_94 (game INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_94 WHERE opponent = "@ carolina hurricanes" </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 games have a November of 10? ### Context: CREATE TABLE table_name_10 (game VARCHAR, november VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_10 WHERE november = 10 </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 Game has a November of 22? ### Context: CREATE TABLE table_name_32 (game INTEGER, november VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_32 WHERE november = 22 </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 mean year of marriage when her age was more than 19 and his age was 30? ### Context: CREATE TABLE table_name_6 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR) [/INST] ### Response: SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = 30 </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 figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge? ### Context: CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR) [/INST] ### Response: SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = "eliza maria partridge" </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 her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0? ### Context: CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(her_age) FROM table_name_84 WHERE his_age < 33 AND name = "diontha walker" AND _number_of_children < 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: How much Lost has an Against larger than 19, and a Drawn smaller than 1? ### Context: CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 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: Which Played has a Lost of 3, and an Against of 23? ### Context: CREATE TABLE table_name_63 (played INTEGER, lost VARCHAR, against VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_63 WHERE lost = 3 AND against = 23 </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 Played is the highest one that has an Against smaller than 18, and Points smaller than 10? ### Context: CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10 </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 Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7? ### Context: CREATE TABLE table_name_31 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7 </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 opponent has october less than 20, and 8 for points? ### Context: CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 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 position does Drew Callander play? ### Context: CREATE TABLE table_name_1 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_1 WHERE player = "drew callander" </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 round did Ray Kurpis play? ### Context: CREATE TABLE table_name_2 (round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT round FROM table_name_2 WHERE player = "ray kurpis" </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 Built by has a Name of northern jaeger? ### Context: CREATE TABLE table_name_44 (built_by VARCHAR, name VARCHAR) [/INST] ### Response: SELECT built_by FROM table_name_44 WHERE name = "northern jaeger" </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 Horsepowers have a Year smaller than 1974, and a Tonnage of 4437? ### Context: CREATE TABLE table_name_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR) [/INST] ### Response: SELECT SUM(horsepowers) FROM table_name_51 WHERE year < 1974 AND tonnage = 4437 </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 was the 2014 fifa world cup qualification? ### Context: CREATE TABLE table_name_96 (date VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_96 WHERE competition = "2014 fifa world cup qualification" </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 was the date of an event at Tokyo venue? ### Context: CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE venue = "tokyo" </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 city did Yugoslavia play against Poland in? ### Context: CREATE TABLE table_name_58 (city VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT city FROM table_name_58 WHERE opponent = "poland" </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 day did Yugoslavia play Luxembourg? ### Context: CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_56 WHERE opponent = "luxembourg" </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 type of game was played in Ljubljana? ### Context: CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR) [/INST] ### Response: SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana" </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 result of the game played in Belgrade? ### Context: CREATE TABLE table_name_70 (results¹ VARCHAR, city VARCHAR) [/INST] ### Response: SELECT results¹ FROM table_name_70 WHERE city = "belgrade" </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 score on March 23? ### Context: CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_2 WHERE date = "march 23" </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 the Vancouver Canucks were visiting, what was the record when the score was 4-2? ### Context: CREATE TABLE table_name_6 (record VARCHAR, score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_6 WHERE score = "4-2" AND visitor = "vancouver canucks" </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 Partner has a Score of 6–7, 7–6, 6–7? ### Context: CREATE TABLE table_name_79 (partner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_79 WHERE score = "6–7, 7–6, 6–7" </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 Score has a Date of 13 april 1997? ### Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_50 WHERE date = "13 april 1997" </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 Partner has a Score of 7–6, 6–3? ### Context: CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_38 WHERE score = "7–6, 6–3" </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 has a Tournament of bmw open? ### Context: CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT date FROM table_name_63 WHERE tournament = "bmw open" </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 Partner has a Tournament of catella swedish open? ### Context: CREATE TABLE table_name_13 (partner VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_13 WHERE tournament = "catella swedish open" </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 has a Surface of clay, and a Score of 6–3, 5–7, 2–6? ### Context: CREATE TABLE table_name_89 (date VARCHAR, surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_89 WHERE surface = "clay" AND score = "6–3, 5–7, 2–6" </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 winner of the tre valli varesine race? ### Context: CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine" </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 date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1? ### Context: CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden" </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 date of the gp città di camaiore race? ### Context: CREATE TABLE table_name_54 (date VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT date FROM table_name_54 WHERE race_name = "gp città di camaiore" </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 UCI rating of the race in Italy with the progetto ciclismo alplast team? ### Context: CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR) [/INST] ### Response: SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast" </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 date of the game being played at Schaeffer Stadium? ### Context: CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium" </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 Points have a Year larger than 1966, and Wins larger than 1? ### Context: CREATE TABLE table_name_78 (points INTEGER, year VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 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: Which Year is the lowest one that has Wins smaller than 0? ### Context: CREATE TABLE table_name_47 (year INTEGER, wins INTEGER) [/INST] ### Response: SELECT MIN(year) FROM table_name_47 WHERE 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: Which Points have Wins larger than 1? ### Context: CREATE TABLE table_name_15 (points INTEGER, wins INTEGER) [/INST] ### Response: SELECT AVG(points) FROM table_name_15 WHERE wins > 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: Which Wins have a Year of 1963, and a Class of 50cc? ### Context: CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc" </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 player from Australia's rank with more than 16 wins? ### Context: CREATE TABLE table_name_63 (rank VARCHAR, wins VARCHAR, country VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_63 WHERE wins > 16 AND country = "australia" </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 earnings of a player with more than 19 wins? ### Context: CREATE TABLE table_name_16 (earnings___ INTEGER, wins INTEGER) [/INST] ### Response: SELECT MAX(earnings___) AS $__ FROM table_name_16 WHERE wins > 19 </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 average Opened has a Manufacturer of vekoma? ### Context: CREATE TABLE table_name_19 (opened INTEGER, manufacturer VARCHAR) [/INST] ### Response: SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = "vekoma" </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 Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla? ### Context: CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla" </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 Themed Area has a Name of troublesome trucks runaway coaster? ### Context: CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR) [/INST] ### Response: SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster" </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 Manufacturer has a Style of steel sit down, and an Opened larger than 2008? ### Context: CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008 </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 position has a pick less than 25 for the university of california? ### Context: CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR) [/INST] ### Response: SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california" </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 pick number for tulane university? ### Context: CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university" </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 pick number for the kansas city royals? ### Context: CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_12 WHERE team = "kansas city royals" </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 Pick for the Pasco, Wa school? ### Context: CREATE TABLE table_name_87 (pick INTEGER, school VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_87 WHERE school = "pasco, wa" </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 Label released a CD single in 1993? ### Context: CREATE TABLE table_name_5 (label VARCHAR, format VARCHAR, date VARCHAR) [/INST] ### Response: SELECT label FROM table_name_5 WHERE format = "cd single" AND date = "1993" </s>