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: In the 6th round match with home team Bahia, who was the away team? ### Context: CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_96 WHERE round = "6th" AND home_team = "bahia" </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: For the 5th round match with away team of Bahia, what was the final score? ### Context: CREATE TABLE table_name_65 (score VARCHAR, round VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_65 WHERE round = "5th" AND away_team = "bahia" </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 League has a Regular Season of 2nd, southeast? ### Context: CREATE TABLE table_name_58 (league VARCHAR, regular_season VARCHAR) [/INST] ### Response: SELECT league FROM table_name_58 WHERE regular_season = "2nd, southeast" </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 Playoffs has a Regular Season of on hiatus.? ### Context: CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR) [/INST] ### Response: SELECT playoffs FROM table_name_99 WHERE regular_season = "on hiatus." </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 population of Kragerø? ### Context: CREATE TABLE table_name_17 (population INTEGER, city VARCHAR) [/INST] ### Response: SELECT MIN(population) FROM table_name_17 WHERE city = "kragerø" </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 population of a city that has a town status of 2010? ### Context: CREATE TABLE table_name_91 (population INTEGER, town_status VARCHAR) [/INST] ### Response: SELECT MAX(population) FROM table_name_91 WHERE town_status = "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 highest population within the municipality of Porsgrunn? ### Context: CREATE TABLE table_name_28 (population INTEGER, municipality VARCHAR) [/INST] ### Response: SELECT MAX(population) FROM table_name_28 WHERE municipality = "porsgrunn" </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 birthplace of the player who is 190 CM tall, plays the D position, and wears number 11? ### Context: CREATE TABLE table_name_79 (birthplace VARCHAR, jersey_number VARCHAR, position VARCHAR, height__cm_ VARCHAR) [/INST] ### Response: SELECT birthplace FROM table_name_79 WHERE position = "d" AND height__cm_ = 190 AND jersey_number = 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's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971? ### Context: CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12" </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 least amount of points that Walter Wolf Racing had after 1974? ### Context: CREATE TABLE table_name_3 (points INTEGER, year VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_3 WHERE year > 1974 AND entrant = "walter wolf racing" </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 sum of Year(s), when Postion is 6th, and when Competition is Commonwealth Games? ### Context: CREATE TABLE table_name_68 (year INTEGER, position VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_68 WHERE position = "6th" AND competition = "commonwealth games" </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 Year, when the Venue is Beijing, PR China? ### Context: CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_54 WHERE venue = "beijing, pr china" </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 Year, when Competition is Oceania Youth Championships? ### Context: CREATE TABLE table_name_89 (year INTEGER, competition VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_89 WHERE competition = "oceania youth championships" </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 Event, when Position is 4th? ### Context: CREATE TABLE table_name_94 (event VARCHAR, position VARCHAR) [/INST] ### Response: SELECT event FROM table_name_94 WHERE position = "4th" </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 with a Format that is cd? ### Context: CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR) [/INST] ### Response: SELECT date FROM table_name_87 WHERE format = "cd" </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 Catalog with a Date that is march 13, 2002? ### Context: CREATE TABLE table_name_9 (catalog VARCHAR, date VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_9 WHERE date = "march 13, 2002" </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 Label with a Catalog that is mhcl-20017? ### Context: CREATE TABLE table_name_45 (label VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT label FROM table_name_45 WHERE catalog = "mhcl-20017" </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 Catalog with a Date that is february 20, 2002? ### Context: CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_89 WHERE date = "february 20, 2002" </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 lightest Weight (kg), when the Jersey # is greater than 22, when the Position is F, and when the Birthdate is March 19, 1980? ### Context: CREATE TABLE table_name_62 (weight__kg_ INTEGER, birthdate VARCHAR, jersey__number VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MIN(weight__kg_) FROM table_name_62 WHERE jersey__number > 22 AND position = "f" AND birthdate = "march 19, 1980" </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 Position, when the Birthplace is Buffalo, New York? ### Context: CREATE TABLE table_name_92 (position VARCHAR, birthplace VARCHAR) [/INST] ### Response: SELECT position FROM table_name_92 WHERE birthplace = "buffalo, new york" </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 Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980? ### Context: CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR) [/INST] ### Response: SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = "march 3, 1980" </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 final score for the game with 65,309 people in attendance? ### Context: CREATE TABLE table_name_28 (final_score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT final_score FROM table_name_28 WHERE attendance = "65,309" </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 average week number had the Chicago bears as the opponent? ### Context: CREATE TABLE table_name_58 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_58 WHERE opponent = "chicago bears" </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 for the game against New England Patriots at the Rich Stadium? ### Context: CREATE TABLE table_name_89 (record VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_89 WHERE game_site = "rich stadium" AND opponent = "new england patriots" </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 Dallara chassis with a 5 start in 2006 finish? ### Context: CREATE TABLE table_name_91 (finish VARCHAR, year VARCHAR, chassis VARCHAR, start VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_91 WHERE chassis = "dallara" AND start = "5" AND year = 2006 </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 chassis of the Honda Engine from 2008? ### Context: CREATE TABLE table_name_68 (chassis VARCHAR, engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_68 WHERE engine = "honda" AND year = 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 is the earliest year of the Honda Engine with a finish of 4? ### Context: CREATE TABLE table_name_53 (year INTEGER, engine VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_53 WHERE engine = "honda" AND finish = 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 was 2002, when 2008 was, "career statistics"? ### Context: CREATE TABLE table_name_6 (Id VARCHAR) [/INST] ### Response: SELECT 2002 FROM table_name_6 WHERE 2008 = "career statistics" </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 2009, when 2001 was, "not masters series"? ### Context: CREATE TABLE table_name_5 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series" </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 2011, when 2005 was 2R, and when 2003 was 2R? ### Context: CREATE TABLE table_name_40 (Id VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "2r" </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 2009, when 2012 was A, when 2003 was A, and then the Tournament was the Madrid Masters? ### Context: CREATE TABLE table_name_18 (tournament VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_18 WHERE 2012 = "a" AND 2003 = "a" AND tournament = "madrid masters" </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 2002, when 2011 was, "atp masters series"? ### Context: CREATE TABLE table_name_71 (Id VARCHAR) [/INST] ### Response: SELECT 2002 FROM table_name_71 WHERE 2011 = "atp masters series" </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 lowest wins of Larry Nelson, who ranked less than 5? ### Context: CREATE TABLE table_name_8 (wins INTEGER, player VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_8 WHERE player = "larry nelson" AND rank < 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 sum of the earnings for rank 3? ### Context: CREATE TABLE table_name_39 (earnings__ INTEGER, rank VARCHAR) [/INST] ### Response: SELECT SUM(earnings__) AS $__ FROM table_name_39 WHERE rank = 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 is the country is ranked more than 4? ### Context: CREATE TABLE table_name_66 (country VARCHAR, rank INTEGER) [/INST] ### Response: SELECT country FROM table_name_66 WHERE rank > 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 the total of Week with attendance of 53,147 ### Context: CREATE TABLE table_name_70 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_70 WHERE attendance = "53,147" </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 week for December 26, 1999 ### Context: CREATE TABLE table_name_31 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_31 WHERE date = "december 26, 1999" </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 season has 6 races and the team is Australia? ### Context: CREATE TABLE table_name_90 (season VARCHAR, races VARCHAR, team VARCHAR) [/INST] ### Response: SELECT season FROM table_name_90 WHERE races = 6 AND team = "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 total number of Races when there were more than 8 wins? ### Context: CREATE TABLE table_name_15 (races VARCHAR, wins INTEGER) [/INST] ### Response: SELECT COUNT(races) FROM table_name_15 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: Who's the Socialist ticket with a Republican ticket of john a. may? ### Context: CREATE TABLE table_name_2 (socialist_ticket VARCHAR, republican_ticket VARCHAR) [/INST] ### Response: SELECT socialist_ticket FROM table_name_2 WHERE republican_ticket = "john a. may" </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's the Republican ticket with a Democratic ticket of m. william bray? ### Context: CREATE TABLE table_name_67 (republican_ticket VARCHAR, democratic_ticket VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_67 WHERE democratic_ticket = "m. william bray" </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's the Socialist ticket with a Democratic ticket of herbert h. lehman? ### Context: CREATE TABLE table_name_5 (socialist_ticket VARCHAR, democratic_ticket VARCHAR) [/INST] ### Response: SELECT socialist_ticket FROM table_name_5 WHERE democratic_ticket = "herbert h. lehman" </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's the Republican ticket with a Socialist ticket of frank r. crosswaith? ### Context: CREATE TABLE table_name_61 (republican_ticket VARCHAR, socialist_ticket VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_61 WHERE socialist_ticket = "frank r. crosswaith" </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's the Republican ticket with a Socialist ticket of edna mitchell blue? ### Context: CREATE TABLE table_name_46 (republican_ticket VARCHAR, socialist_ticket VARCHAR) [/INST] ### Response: SELECT republican_ticket FROM table_name_46 WHERE socialist_ticket = "edna mitchell blue" </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 earliest year that serena williams had more than 2 sets? ### Context: CREATE TABLE table_name_47 (year INTEGER, player VARCHAR, sets VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_47 WHERE player = "serena williams" AND sets > 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: what's the earliest year that the wimbledon opponent was zheng jie? ### Context: CREATE TABLE table_name_50 (year INTEGER, event VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_50 WHERE event = "wimbledon" AND opponent = "zheng jie" </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 year was the opponent caroline garcia? ### Context: CREATE TABLE table_name_22 (year INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_22 WHERE opponent = "caroline garcia" </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 most recent year that samantha stosur was the opponent with 20 aces and having played more than 2 sets? ### Context: CREATE TABLE table_name_55 (year INTEGER, sets VARCHAR, aces VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_55 WHERE aces = 20 AND opponent = "samantha stosur" AND sets > 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: what year was the memphis event? ### Context: CREATE TABLE table_name_97 (year INTEGER, event VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_97 WHERE event = "memphis" </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 season did the player who had the number 26 play on who came from far eastern? ### Context: CREATE TABLE table_name_26 (season VARCHAR, school_club_team VARCHAR, number VARCHAR) [/INST] ### Response: SELECT season FROM table_name_26 WHERE school_club_team = "far eastern" AND number = 26 </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 season did the player who came from Cebu play in? ### Context: CREATE TABLE table_name_64 (season VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT season FROM table_name_64 WHERE school_club_team = "cebu" </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 country in the year 2012? ### Context: CREATE TABLE table_name_69 (country VARCHAR, year VARCHAR) [/INST] ### Response: SELECT country FROM table_name_69 WHERE year = 2012 </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 what year was Letecke Zavody N.P., Jinonice the manufacturer? ### Context: CREATE TABLE table_name_90 (year VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT year FROM table_name_90 WHERE manufacturer = "letecke zavody n.p., jinonice" </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 country had the car with the Jawa 350cc engine? ### Context: CREATE TABLE table_name_42 (country VARCHAR, engine_make_capacity VARCHAR) [/INST] ### Response: SELECT country FROM table_name_42 WHERE engine_make_capacity = "jawa 350cc" </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 what country was the car with the čz 171cc engine? ### Context: CREATE TABLE table_name_34 (country VARCHAR, engine_make_capacity VARCHAR) [/INST] ### Response: SELECT country FROM table_name_34 WHERE engine_make_capacity = "čz 171cc" </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 of the car that was made in the years 1956-1958? ### Context: CREATE TABLE table_name_18 (automobile_name VARCHAR, year VARCHAR) [/INST] ### Response: SELECT automobile_name FROM table_name_18 WHERE year = "1956-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 is the name of the car manufactured by Letecke Zavody N.P., Jinonice? ### Context: CREATE TABLE table_name_11 (automobile_name VARCHAR, manufacturer VARCHAR) [/INST] ### Response: SELECT automobile_name FROM table_name_11 WHERE manufacturer = "letecke zavody n.p., jinonice" </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 car with the jawa 249cc engine that was made in the years 1956-1963? ### Context: CREATE TABLE table_name_58 (manufacturer VARCHAR, engine_make_capacity VARCHAR, year VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_58 WHERE engine_make_capacity = "jawa 249cc" AND year = "1956-1963" </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 Set 2 with a Date that is jun 29? ### Context: CREATE TABLE table_name_98 (set_2 VARCHAR, date VARCHAR) [/INST] ### Response: SELECT set_2 FROM table_name_98 WHERE date = "jun 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: What is the Set 1 with a Set 2 that is 25-19? ### Context: CREATE TABLE table_name_12 (set_1 VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT set_1 FROM table_name_12 WHERE set_2 = "25-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: What is the Set 5 with a Date that is jun 29? ### Context: CREATE TABLE table_name_93 (set_5 VARCHAR, date VARCHAR) [/INST] ### Response: SELECT set_5 FROM table_name_93 WHERE date = "jun 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: When was construction completed that was listed on 09/21/1984 and a Deleted of 11/04/1999? ### Context: CREATE TABLE table_name_9 (construction_completed VARCHAR, listed VARCHAR, deleted VARCHAR) [/INST] ### Response: SELECT construction_completed FROM table_name_9 WHERE listed = "09/21/1984" AND deleted = "11/04/1999" </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 partially deleted result for a completed construction of m– in St. Maries Creosote? ### Context: CREATE TABLE table_name_47 (partially_deleted VARCHAR, construction_completed VARCHAR, name VARCHAR) [/INST] ### Response: SELECT partially_deleted FROM table_name_47 WHERE construction_completed = "–" AND name = "st. maries creosote" </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 partially deleted result for Bunker Hill Mining & Metallurgical? ### Context: CREATE TABLE table_name_96 (partially_deleted VARCHAR, name VARCHAR) [/INST] ### Response: SELECT partially_deleted FROM table_name_96 WHERE name = "bunker hill mining & metallurgical" </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 partially deleted result for a deleted of m– in Valley? ### Context: CREATE TABLE table_name_95 (partially_deleted VARCHAR, deleted VARCHAR, county VARCHAR) [/INST] ### Response: SELECT partially_deleted FROM table_name_95 WHERE deleted = "–" AND county = "valley" </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 matches ended with more than 22 points? ### Context: CREATE TABLE table_name_83 (match INTEGER, points INTEGER) [/INST] ### Response: SELECT SUM(match) FROM table_name_83 WHERE points > 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 value in 1965 when 7 is the value for 1967? ### Context: CREATE TABLE table_name_81 (Id VARCHAR) [/INST] ### Response: SELECT 1965 FROM table_name_81 WHERE 1967 = "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 value in 1971 when 30 is the value for 1969? ### Context: CREATE TABLE table_name_65 (Id VARCHAR) [/INST] ### Response: SELECT 1971 FROM table_name_65 WHERE 1969 = "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 was the value in 1966 with a 0 value in 1969? ### Context: CREATE TABLE table_name_72 (Id VARCHAR) [/INST] ### Response: SELECT 1966 FROM table_name_72 WHERE 1969 = "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: Who was the player moving to Arminia Bielefeld? ### Context: CREATE TABLE table_name_68 (name VARCHAR, moving_to VARCHAR) [/INST] ### Response: SELECT name FROM table_name_68 WHERE moving_to = "arminia bielefeld" </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 tournament had a Winning score of –9 (69-72-68-70=279)? ### Context: CREATE TABLE table_name_11 (tournament VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_11 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) </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 winning score of the Greater Vancouver Open tournament? ### Context: CREATE TABLE table_name_50 (winning_score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_50 WHERE tournament = "greater vancouver 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 runner(s)-up had a Winning score of –13 (68-70-66-71=275) and a Margin of victory of 3 strokes? ### Context: CREATE TABLE table_name_78 (runner_s__up VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_78 WHERE margin_of_victory = "3 strokes" AND winning_score = –13(68 - 70 - 66 - 71 = 275) </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 Margin of victory in the southwest golf classic Tournament? ### Context: CREATE TABLE table_name_84 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_84 WHERE tournament = "southwest 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: When the Winning score was –9 (69-72-68-70=279), what was the Margin of victory? ### Context: CREATE TABLE table_name_66 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_66 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) </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 height has a floor count less than 25? ### Context: CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER) [/INST] ### Response: SELECT height FROM table_name_2 WHERE floor_count < 25 </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/territory has 121 m as the height? ### Context: CREATE TABLE table_name_58 (state___territory VARCHAR, height VARCHAR) [/INST] ### Response: SELECT state___territory FROM table_name_58 WHERE height = "121 m" </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/territory has lovett tower as the building? ### Context: CREATE TABLE table_name_85 (state___territory VARCHAR, building VARCHAR) [/INST] ### Response: SELECT state___territory FROM table_name_85 WHERE building = "lovett tower" </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 date of the game against Oakland Raiders? ### Context: CREATE TABLE table_name_86 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE opponent = "oakland raiders" </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 year has 2 wins? ### Context: CREATE TABLE table_name_59 (year VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT year FROM table_name_59 WHERE wins = "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: What is the success rate for the year 2012? ### Context: CREATE TABLE table_name_52 (success_rate VARCHAR, year VARCHAR) [/INST] ### Response: SELECT success_rate FROM table_name_52 WHERE year = "2012" </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 win for 4 matches with a success rate of 25%? ### Context: CREATE TABLE table_name_70 (wins VARCHAR, matches VARCHAR, success_rate VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_70 WHERE matches = "4" AND success_rate = "25%" </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 win for the 6 matches? ### Context: CREATE TABLE table_name_17 (wins VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT wins FROM table_name_17 WHERE matches = "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 losses for the 5 matches? ### Context: CREATE TABLE table_name_40 (losses VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT losses FROM table_name_40 WHERE matches = "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 losses for the year 2012? ### Context: CREATE TABLE table_name_73 (losses VARCHAR, year VARCHAR) [/INST] ### Response: SELECT losses FROM table_name_73 WHERE year = "2012" </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 Total with a Gold that is larger than 4? ### Context: CREATE TABLE table_name_77 (total INTEGER, gold INTEGER) [/INST] ### Response: SELECT AVG(total) FROM table_name_77 WHERE gold > 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 average Total with a Bronze that is larger than 1? ### Context: CREATE TABLE table_name_46 (total INTEGER, bronze INTEGER) [/INST] ### Response: SELECT AVG(total) FROM table_name_46 WHERE bronze > 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: Who were the Brazil scorers for the World Cup Competition with a 1-2 score? ### Context: CREATE TABLE table_name_18 (brazil_scorers VARCHAR, competition VARCHAR, score VARCHAR) [/INST] ### Response: SELECT brazil_scorers FROM table_name_18 WHERE competition = "world cup" 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: Which competition had a 4-3 score? ### Context: CREATE TABLE table_name_86 (competition VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_86 WHERE score = "4-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 is the highest Top-5 that has 18 or more events with a Top-25 of 23? ### Context: CREATE TABLE table_name_61 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT MAX(top_5) FROM table_name_61 WHERE events > 18 AND top_25 = 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: What is the lowest cuts made that had a Top-25 less than 6 and wins greater than 0? ### Context: CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(cuts_made) FROM table_name_63 WHERE top_25 < 6 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: What race did Glenn Seton win on the Sandown International Raceway circuit? ### Context: CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway" </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 race at Oran Park ran? ### Context: CREATE TABLE table_name_25 (date VARCHAR, race_title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_25 WHERE race_title = "oran 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 largest number of assists for the second rank when there were less than 2 games? ### Context: CREATE TABLE table_name_71 (assists INTEGER, rank VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MAX(assists) FROM table_name_71 WHERE rank = 2 AND games < 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: What is the smallest rank when there are more than 2 games? ### Context: CREATE TABLE table_name_52 (rank INTEGER, games INTEGER) [/INST] ### Response: SELECT MIN(rank) FROM table_name_52 WHERE games > 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: What is the mean number of games for pablo prigioni when there are more than 14 assists? ### Context: CREATE TABLE table_name_88 (games INTEGER, name VARCHAR, assists VARCHAR) [/INST] ### Response: SELECT AVG(games) FROM table_name_88 WHERE name = "pablo prigioni" AND assists > 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: What region has 57 vehicles? ### Context: CREATE TABLE table_name_35 (region VARCHAR, vehicles__1209_ VARCHAR) [/INST] ### Response: SELECT region FROM table_name_35 WHERE vehicles__1209_ = 57 </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 after 1991 in Category IVA? ### Context: CREATE TABLE table_name_98 (score VARCHAR, year VARCHAR, category VARCHAR) [/INST] ### Response: SELECT score FROM table_name_98 WHERE year > 1991 AND category = "iva" </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 in 2002? ### Context: CREATE TABLE table_name_25 (score VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score FROM table_name_25 WHERE year = 2002 </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 Category before 1995? ### Context: CREATE TABLE table_name_19 (category VARCHAR, year INTEGER) [/INST] ### Response: SELECT category FROM table_name_19 WHERE year < 1995 </s>