text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of Tries for Nathan McAvoy? ### Context: CREATE TABLE table_name_60 (tries INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(tries) FROM table_name_60 WHERE player = "nathan mcavoy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of Tries with less than 28 Points for Mike Forshaw? ### Context: CREATE TABLE table_name_79 (tries INTEGER, player VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(tries) FROM table_name_79 WHERE player = "mike forshaw" AND points < 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the player from the saskatchewan roughriders (via toronto) play? ### Context: CREATE TABLE table_name_31 (position VARCHAR, cfl_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_31 WHERE cfl_team = "saskatchewan roughriders (via toronto)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 numbered pick was dominic picard, ol, selected? ### Context: CREATE TABLE table_name_8 (pick__number VARCHAR, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date which has a home team of north melbourne ### Context: CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_3 WHERE home_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the away team for home team of fitzroy ### Context: CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_17 WHERE home_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the away team that played at Glenferrie Oval? ### Context: CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_27 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the attendance at a venue bigger than 35,151? ### Context: CREATE TABLE table_name_36 (date VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT date FROM table_name_36 WHERE crowd > 35 OFFSET 151 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the total number of Laps for Qual being larger than 142.81 with Grid of 12 ### Context: CREATE TABLE table_name_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = 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: Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32 ### Context: CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the payload that has an In service for 2011 ### Context: CREATE TABLE table_name_99 (payload__kg_ VARCHAR, in_service VARCHAR) [/INST] ### Response: SELECT payload__kg_ FROM table_name_99 WHERE in_service = "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: Tell me the dimension that has a range of 8,000 – 10,000 ### Context: CREATE TABLE table_name_57 (dimension__m_ VARCHAR, range__km_ VARCHAR) [/INST] ### Response: SELECT dimension__m_ FROM table_name_57 WHERE range__km_ = "8,000 – 10,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the project which has a missle of agni-iii ### Context: CREATE TABLE table_name_92 (project VARCHAR, missile VARCHAR) [/INST] ### Response: SELECT project FROM table_name_92 WHERE missile = "agni-iii" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the payload that has a weight of 12,000 ### Context: CREATE TABLE table_name_35 (payload__kg_ VARCHAR, weight__kg_ VARCHAR) [/INST] ### Response: SELECT payload__kg_ FROM table_name_35 WHERE weight__kg_ = "12,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the typ for project of igmdp and weight of 16,000 ### Context: CREATE TABLE table_name_65 (type VARCHAR, project VARCHAR, weight__kg_ VARCHAR) [/INST] ### Response: SELECT type FROM table_name_65 WHERE project = "igmdp" AND weight__kg_ = "16,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record of the game with Andrew Bogut (21) as the leading scorer? ### Context: CREATE TABLE table_name_43 (record VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT record FROM table_name_43 WHERE leading_scorer = "andrew bogut (21)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team of the game on 26 February 2008? ### Context: CREATE TABLE table_name_5 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_5 WHERE date = "26 february 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: Who is the leading scorer of the game on 9 February 2008? ### Context: CREATE TABLE table_name_31 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_31 WHERE date = "9 february 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: Who is the leading scorer of the game on 13 February 2008? ### Context: CREATE TABLE table_name_52 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_52 WHERE date = "13 february 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: Who is the visitor team of the game with Andrew Bogut (21) as the leading scorer? ### Context: CREATE TABLE table_name_97 (visitor VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_97 WHERE leading_scorer = "andrew bogut (21)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of events a tournament with more tha 5 cuts and less than 13 top-25 has? ### Context: CREATE TABLE table_name_75 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT MIN(events) FROM table_name_75 WHERE cuts_made > 5 AND top_25 < 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest top-10 a tournament with 16 cuts and less than 13 top-25 has? ### Context: CREATE TABLE table_name_81 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT MAX(top_10) FROM table_name_81 WHERE cuts_made = 16 AND top_25 < 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the top-25 of the U.S. open, which has less than 7 events? ### Context: CREATE TABLE table_name_93 (top_25 INTEGER, tournament VARCHAR, events VARCHAR) [/INST] ### Response: SELECT SUM(top_25) FROM table_name_93 WHERE tournament = "u.s. open" AND events < 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: How many events does the tournament with a top-10 of 2 and more than 5 cuts have? ### Context: CREATE TABLE table_name_77 (events INTEGER, top_10 VARCHAR, cuts_made VARCHAR) [/INST] ### Response: SELECT SUM(events) FROM table_name_77 WHERE top_10 = 2 AND cuts_made > 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 Pick number is Rich Burtness? ### Context: CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Kentucky State sitting in? ### Context: CREATE TABLE table_name_77 (position VARCHAR, school VARCHAR) [/INST] ### Response: SELECT position FROM table_name_77 WHERE school = "kentucky state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 density (hab/ km²) when the altitude m is 1300? ### Context: CREATE TABLE table_name_61 (density__hab__km²__ VARCHAR, altitude_m VARCHAR) [/INST] ### Response: SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = "1300" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Distance Medellín Downtown (km) when the municipalities Envigado? ### Context: CREATE TABLE table_name_86 (distance_medellín_downtown___km__ VARCHAR, municipalities VARCHAR) [/INST] ### Response: SELECT distance_medellín_downtown___km__ FROM table_name_86 WHERE municipalities = "envigado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 density (hab/ km²) when the extension km² is 380,64? ### Context: CREATE TABLE table_name_22 (density__hab__km²__ VARCHAR, extension_km² VARCHAR) [/INST] ### Response: SELECT density__hab__km²__ FROM table_name_22 WHERE extension_km² = "380,64" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 (hab) when the distance medellin downtown (km) is * dane? ### Context: CREATE TABLE table_name_10 (population__hab_ VARCHAR, distance_medellín_downtown___km__ VARCHAR) [/INST] ### Response: SELECT population__hab_ FROM table_name_10 WHERE distance_medellín_downtown___km__ = "* dane" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Density (hab/ km²) when the population (hab) is 58 414*? ### Context: CREATE TABLE table_name_53 (density__hab__km²__ VARCHAR, population__hab_ VARCHAR) [/INST] ### Response: SELECT density__hab__km²__ FROM table_name_53 WHERE population__hab_ = "58 414*" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 altitude for the distance medellin downtown (km) is 42? ### Context: CREATE TABLE table_name_10 (altitude_m VARCHAR, distance_medellín_downtown___km__ VARCHAR) [/INST] ### Response: SELECT altitude_m FROM table_name_10 WHERE distance_medellín_downtown___km__ = "42" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have SHT number 5? ### Context: CREATE TABLE table_name_49 (quantity INTEGER, sht_nos VARCHAR) [/INST] ### Response: SELECT MAX(quantity) FROM table_name_49 WHERE sht_nos = "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 GWR is associated with 4? ### Context: CREATE TABLE table_name_56 (gwr_nos VARCHAR, quantity VARCHAR) [/INST] ### Response: SELECT gwr_nos FROM table_name_56 WHERE quantity = 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 the score on march 11? ### Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_50 WHERE date = "march 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the nationality of the C? ### Context: CREATE TABLE table_name_79 (nationality VARCHAR, position VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_79 WHERE position = "c" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team has a player from Santa Clara? ### Context: CREATE TABLE table_name_82 (team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT team FROM table_name_82 WHERE college = "santa clara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the College of Minnesota pick? ### Context: CREATE TABLE table_name_27 (round VARCHAR, college VARCHAR) [/INST] ### Response: SELECT round FROM table_name_27 WHERE college = "minnesota" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team had Pick 2? ### Context: CREATE TABLE table_name_27 (team VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT team FROM table_name_27 WHERE pick = "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 nationality is the player from the College of Cincinnati? ### Context: CREATE TABLE table_name_6 (nationality VARCHAR, college VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_6 WHERE college = "cincinnati" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player went to the college of Western Washington? ### Context: CREATE TABLE table_name_84 (player VARCHAR, college VARCHAR) [/INST] ### Response: SELECT player FROM table_name_84 WHERE college = "western washington" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 money did the player ranked above 3 with under 28 events earn? ### Context: CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND 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 low win total for players ranked below 4? ### Context: CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER) [/INST] ### Response: SELECT MIN(wins) FROM table_name_17 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: Which name has a percentage of 0.59%? ### Context: CREATE TABLE table_name_28 (name VARCHAR, percentage VARCHAR) [/INST] ### Response: SELECT name FROM table_name_28 WHERE percentage = "0.59%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the exact number of Total that has a percentage of precisely 12.03%? ### Context: CREATE TABLE table_name_24 (total VARCHAR, percentage VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_24 WHERE percentage = "12.03%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1990-11-04? ### Context: CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_55 WHERE date = "1990-11-04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in week 3? ### Context: CREATE TABLE table_name_34 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_34 WHERE week = 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: Where was the game on 1990-11-18? ### Context: CREATE TABLE table_name_26 (game_site VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game_site FROM table_name_26 WHERE date = "1990-11-18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of laps for grid 8? ### Context: CREATE TABLE table_name_69 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_69 WHERE grid = 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 built the car that has a Time/Retired of 1:34:12.912? ### Context: CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rd number where the reg GP is 0 and the pick is 150? ### Context: CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where Result is nominated and Organization is 54th the television academy drama awards, what is the award? ### Context: CREATE TABLE table_name_80 (award VARCHAR, result VARCHAR, organization VARCHAR) [/INST] ### Response: SELECT award FROM table_name_80 WHERE result = "nominated" AND organization = "54th the television academy drama awards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where Work is veterinarian dolittle, what is the Organization? ### Context: CREATE TABLE table_name_82 (organization VARCHAR, work VARCHAR) [/INST] ### Response: SELECT organization FROM table_name_82 WHERE work = "veterinarian dolittle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where Award is newcomer actress, what is the work? ### Context: CREATE TABLE table_name_19 (work VARCHAR, award VARCHAR) [/INST] ### Response: SELECT work FROM table_name_19 WHERE award = "newcomer actress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where Award is best actress and Work is first kiss, what is the average Year? ### Context: CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the maccabi haifa fc club have? ### Context: CREATE TABLE table_name_58 (round VARCHAR, club VARCHAR) [/INST] ### Response: SELECT round FROM table_name_58 WHERE club = "maccabi haifa fc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition did the maccabi haifa fc club play? ### Context: CREATE TABLE table_name_87 (competition VARCHAR, club VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_87 WHERE club = "maccabi haifa fc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game on March 5? ### Context: CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_57 WHERE date = "march 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 home team of the game with the Raptors as the visitor team? ### Context: CREATE TABLE table_name_66 (home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT home FROM table_name_66 WHERE visitor = "raptors" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition was at puskás ferenc stadium , budapest , hungary, and a Score of 1–0? ### Context: CREATE TABLE table_name_91 (competition VARCHAR, venue VARCHAR, score VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_91 WHERE venue = "puskás ferenc stadium , budapest , hungary" 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: Name the object type with an NGC number more than 6638 and right ascensions being 18h25m37.8s ### Context: CREATE TABLE table_name_72 (object_type VARCHAR, ngc_number VARCHAR, right_ascension___j2000__ VARCHAR) [/INST] ### Response: SELECT object_type FROM table_name_72 WHERE ngc_number > 6638 AND right_ascension___j2000__ = "18h25m37.8s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the constellation which has a right ascension of 18h17m41.1s ### Context: CREATE TABLE table_name_54 (constellation VARCHAR, right_ascension___j2000__ VARCHAR) [/INST] ### Response: SELECT constellation FROM table_name_54 WHERE right_ascension___j2000__ = "18h17m41.1s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Since with a Goals larger than 6, and a Name with deco? ### Context: CREATE TABLE table_name_57 (since VARCHAR, goals VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(since) FROM table_name_57 WHERE goals > 6 AND name = "deco" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ends with a Since of 2003, and a Name with márquez? ### Context: CREATE TABLE table_name_93 (ends INTEGER, since VARCHAR, name VARCHAR) [/INST] ### Response: SELECT AVG(ends) FROM table_name_93 WHERE since = 2003 AND name = "márquez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ends with a Name of abidal, and has a Since larger than 2007? ### Context: CREATE TABLE table_name_58 (ends INTEGER, name VARCHAR, since VARCHAR) [/INST] ### Response: SELECT SUM(ends) FROM table_name_58 WHERE name = "abidal" AND since > 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finish has a Record of 74-68? ### Context: CREATE TABLE table_name_35 (finish VARCHAR, record VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_35 WHERE record = "74-68" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the year with a Team of johnson city yankees, and a Finish of 6th? ### Context: CREATE TABLE table_name_33 (year INTEGER, team VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_33 WHERE team = "johnson city yankees" AND finish = "6th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record has a Team of manchester yankees? ### Context: CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR) [/INST] ### Response: SELECT record FROM table_name_43 WHERE team = "manchester yankees" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 organization has a Finish of 4th? ### Context: CREATE TABLE table_name_93 (organization VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT organization FROM table_name_93 WHERE finish = "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: Which year has an Organization of new york yankees, and a Team of johnson city yankees? ### Context: CREATE TABLE table_name_61 (year VARCHAR, organization VARCHAR, team VARCHAR) [/INST] ### Response: SELECT year FROM table_name_61 WHERE organization = "new york yankees" AND team = "johnson city yankees" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor had a grid number bigger than 14, laps of more than 93, and rank higher than 25? ### Context: CREATE TABLE table_name_2 (constructor VARCHAR, rank VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_2 WHERE grid > 14 AND laps > 93 AND rank > 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: Which qual has rank of more than 28 and a grid number that is bigger than 23? ### Context: CREATE TABLE table_name_43 (qual VARCHAR, rank VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_43 WHERE rank > 28 AND grid > 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 total qual where the grid number is 24? ### Context: CREATE TABLE table_name_57 (qual INTEGER, grid VARCHAR) [/INST] ### Response: SELECT SUM(qual) FROM table_name_57 WHERE grid = 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Suffix for the Group of Benzyl? ### Context: CREATE TABLE table_name_73 (suffix VARCHAR, group VARCHAR) [/INST] ### Response: SELECT suffix FROM table_name_73 WHERE group = "benzyl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Formula has a Prefix of alkyl-? ### Context: CREATE TABLE table_name_72 (formula VARCHAR, prefix VARCHAR) [/INST] ### Response: SELECT formula FROM table_name_72 WHERE prefix = "alkyl-" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team when the Visitor was Florida, with a Decision of Ramo? ### Context: CREATE TABLE table_name_28 (home VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT home FROM table_name_28 WHERE decision = "ramo" AND visitor = "florida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Decision when the Visitor was Carolina? ### Context: CREATE TABLE table_name_53 (decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_53 WHERE visitor = "carolina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team was at windy hill? ### Context: CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_30 WHERE venue = "windy 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: For the category of most popular star with a result of won for 2007, what was the award? ### Context: CREATE TABLE table_name_27 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR) [/INST] ### Response: SELECT award FROM table_name_27 WHERE result = "won" AND category = "most popular star" AND year = 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result for the king and I after 2006? ### Context: CREATE TABLE table_name_58 (result VARCHAR, year VARCHAR, nominated_work VARCHAR) [/INST] ### Response: SELECT result FROM table_name_58 WHERE year > 2006 AND nominated_work = "the king and i" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 main color(s) for marlboro? ### Context: CREATE TABLE table_name_36 (main_colour_s_ VARCHAR, main_sponsor_s_ VARCHAR) [/INST] ### Response: SELECT main_colour_s_ FROM table_name_36 WHERE main_sponsor_s_ = "marlboro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 additional major sponsor(s) that has red as its main color after 1991? ### Context: CREATE TABLE table_name_91 (additional_major_sponsor_s_ VARCHAR, main_colour_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT additional_major_sponsor_s_ FROM table_name_91 WHERE main_colour_s_ = "red" AND year > 1991 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 brother of Edward VIII? ### Context: CREATE TABLE table_name_41 (name VARCHAR, relationship_with_predecessor_s_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_41 WHERE relationship_with_predecessor_s_ = "brother of edward viii" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps are associated with a time of + 1:39.591? ### Context: CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of laps for a grid of 6? ### Context: CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_31 WHERE grid = 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: Name the data with a percent gain of 28.4% ### Context: CREATE TABLE table_name_41 (data VARCHAR, percent_gain VARCHAR) [/INST] ### Response: SELECT data FROM table_name_41 WHERE percent_gain = "28.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: Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532? ### Context: CREATE TABLE table_name_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR) [/INST] ### Response: SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest interview number had a swimsuit stat of less than 9.322, an evening gown score of more than 9.259, and an average number of 9.321? ### Context: CREATE TABLE table_name_71 (interview INTEGER, average VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) [/INST] ### Response: SELECT MIN(interview) FROM table_name_71 WHERE swimsuit < 9.322 AND evening_gown > 9.259 AND average = 9.321 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean number for Texas when the swimsuit stat was more than 8.839? ### Context: CREATE TABLE table_name_45 (average INTEGER, state VARCHAR, swimsuit VARCHAR) [/INST] ### Response: SELECT MAX(average) FROM table_name_45 WHERE state = "texas" AND swimsuit > 8.839 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 evening gown number when the average is 8.686? ### Context: CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR) [/INST] ### Response: SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of evening gown stats for New Jersey when the interview was less than 9.344? ### Context: CREATE TABLE table_name_80 (evening_gown VARCHAR, state VARCHAR, interview VARCHAR) [/INST] ### Response: SELECT COUNT(evening_gown) FROM table_name_80 WHERE state = "new jersey" AND interview < 9.344 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine was made in 1991? ### Context: CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT engine_s_ FROM table_name_41 WHERE year = 1991 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engines have the year 1992? ### Context: CREATE TABLE table_name_7 (engine_s_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT engine_s_ FROM table_name_7 WHERE year = 1992 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis has the year 1987? ### Context: CREATE TABLE table_name_87 (chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_87 WHERE year = 1987 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points for the chassis LOLA LC88? ### Context: CREATE TABLE table_name_2 (points INTEGER, chassis VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_2 WHERE chassis = "lola lc88" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the location is veterans stadium, the game is more than 3 and the time is 2:21? ### Context: CREATE TABLE table_name_39 (attendance INTEGER, time VARCHAR, location VARCHAR, game VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_39 WHERE location = "veterans stadium" AND game > 3 AND time = "2:21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the score when the time is 2:22? ### Context: CREATE TABLE table_name_47 (score VARCHAR, time VARCHAR) [/INST] ### Response: SELECT score FROM table_name_47 WHERE time = "2: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: how many games have a location of memorial stadium and a time of 2:27? ### Context: CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on the date of october 16 and the game is more than 5? ### Context: CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_59 WHERE date = "october 16" AND game > 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 was the lowest attendance for a score of 5 - 0? ### Context: CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0" </s>