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 highest Year, when Laps is greater than 161? ### Context: CREATE TABLE table_name_82 (year INTEGER, laps INTEGER) [/INST] ### Response: SELECT MAX(year) FROM table_name_82 WHERE laps > 161 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a downhill of 35 and overall greater than 21? ### Context: CREATE TABLE table_name_53 (season VARCHAR, downhill VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT COUNT(season) FROM table_name_53 WHERE downhill = "35" AND overall > 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's the Super G when the combined was 13 and the overall was more than 7? ### Context: CREATE TABLE table_name_77 (super_g VARCHAR, overall VARCHAR, combined VARCHAR) [/INST] ### Response: SELECT super_g FROM table_name_77 WHERE overall > 7 AND combined = "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 Time, when Laps is 22, and when Grid is 15? ### Context: CREATE TABLE table_name_42 (time VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time FROM table_name_42 WHERE laps = 22 AND grid = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid, when Time is +45.855? ### Context: CREATE TABLE table_name_87 (grid INTEGER, time VARCHAR) [/INST] ### Response: SELECT AVG(grid) FROM table_name_87 WHERE time = "+45.855" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid, when Time is +43.191, and when Laps is less than 22? ### Context: CREATE TABLE table_name_51 (grid VARCHAR, time VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_51 WHERE time = "+43.191" AND laps < 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 place of Mark O'Meara? ### Context: CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_28 WHERE player = "mark o'meara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a score of 71-72=143? ### Context: CREATE TABLE table_name_43 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_43 WHERE score = 71 - 72 = 143 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the United States in place T1 for David Duval? ### Context: CREATE TABLE table_name_80 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT score FROM table_name_80 WHERE country = "united states" AND place = "t1" AND player = "david duval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player from the United States with a score of 71-72=143? ### Context: CREATE TABLE table_name_38 (player VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_38 WHERE country = "united states" AND score = 71 - 72 = 143 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country is Scott McCarron from? ### Context: CREATE TABLE table_name_90 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_90 WHERE player = "scott mccarron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country is in T1 place with a score of 71-68=139? ### Context: CREATE TABLE table_name_4 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_4 WHERE place = "t1" AND score = 71 - 68 = 139 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue when the competition is friendly on 26 may 1999? ### Context: CREATE TABLE table_name_37 (venue VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_37 WHERE competition = "friendly" AND date = "26 may 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 was Australia's place? ### Context: CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT place FROM table_name_99 WHERE country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for United States when the player was Mike Reid and the To par was e? ### Context: CREATE TABLE table_name_30 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT score FROM table_name_30 WHERE country = "united states" AND to_par = "e" AND player = "mike reid" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 holes did Mike Reid from United States have? ### Context: CREATE TABLE table_name_75 (hole VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT hole FROM table_name_75 WHERE country = "united states" AND player = "mike reid" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position smaller than 2? ### Context: CREATE TABLE table_name_72 (name VARCHAR, position INTEGER) [/INST] ### Response: SELECT name FROM table_name_72 WHERE position < 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 Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0? ### Context: CREATE TABLE table_name_48 (lost VARCHAR, drawn VARCHAR, position VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_48 WHERE position > 2 AND name = "sg münchen (n)" AND drawn > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Drawn has a Position of 2, and a Lost larger than 2? ### Context: CREATE TABLE table_name_24 (drawn INTEGER, position VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT MIN(drawn) FROM table_name_24 WHERE position = 2 AND lost > 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 Played has a Position of 3, and a Points smaller than 15? ### Context: CREATE TABLE table_name_85 (played VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_85 WHERE position = 3 AND points < 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0? ### Context: CREATE TABLE table_name_26 (played INTEGER, drawn VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_26 WHERE position > 5 AND points > 0 AND drawn < 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 is the score when Miami is the visitor? ### Context: CREATE TABLE table_name_33 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_33 WHERE visitor = "miami" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game that was 76-85, what was the record? ### Context: CREATE TABLE table_name_66 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_66 WHERE score = "76-85" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On April 18, which team was the visitor? ### Context: CREATE TABLE table_name_52 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_52 WHERE date = "april 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: Who was the leading scorer on April 7? ### Context: CREATE TABLE table_name_8 (leading_scorer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_8 WHERE date = "april 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: Where was the home court on April 14? ### Context: CREATE TABLE table_name_34 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_34 WHERE date = "april 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 is the boston celtics' record? ### Context: CREATE TABLE table_name_39 (record VARCHAR, team VARCHAR) [/INST] ### Response: SELECT record FROM table_name_39 WHERE team = "boston celtics" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Score has a Record of 9–8? ### Context: CREATE TABLE table_name_35 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_35 WHERE record = "9–8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Date has a Streak of loss 2, and a Team of @ boston celtics? ### Context: CREATE TABLE table_name_71 (date VARCHAR, streak VARCHAR, team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE streak = "loss 2" AND team = "@ boston celtics" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Date has a Streak of win 1, and a Record of 8–4? ### Context: CREATE TABLE table_name_35 (date VARCHAR, streak VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 WHERE streak = "win 1" AND record = "8–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 top score for grier jones? ### Context: CREATE TABLE table_name_59 (score INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(score) FROM table_name_59 WHERE player = "grier jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To par is scored at 70? ### Context: CREATE TABLE table_name_10 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_10 WHERE score = 70 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place did hubert green score below 70 in the united states? ### Context: CREATE TABLE table_name_91 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR) [/INST] ### Response: SELECT place FROM table_name_91 WHERE score < 70 AND country = "united states" AND player = "hubert green" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Driver and passenger have a bike number of less than 4 with zabel -vmc equipment? ### Context: CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR) [/INST] ### Response: SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 slalom when the average time was greater than 99.25? ### Context: CREATE TABLE table_name_5 (slalom INTEGER, average INTEGER) [/INST] ### Response: SELECT AVG(slalom) FROM table_name_5 WHERE average > 99.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: Where was the place that the downhill was 71.6 and the average was less than 90.06? ### Context: CREATE TABLE table_name_87 (place INTEGER, average VARCHAR, downhill VARCHAR) [/INST] ### Response: SELECT SUM(place) FROM table_name_87 WHERE average < 90.06 AND downhill = 71.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 ICAO, when Airport is "Sibulan Airport"? ### Context: CREATE TABLE table_name_90 (icao VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_90 WHERE airport = "sibulan airport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO, when IATA is "HKG"? ### Context: CREATE TABLE table_name_99 (icao VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_99 WHERE iata = "hkg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IATA, when ICAO is "VHHH"? ### Context: CREATE TABLE table_name_8 (iata VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT iata FROM table_name_8 WHERE icao = "vhhh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City, when IATA is "LAO"? ### Context: CREATE TABLE table_name_75 (city VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT city FROM table_name_75 WHERE iata = "lao" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country, when City is "Zamboanga"? ### Context: CREATE TABLE table_name_82 (country VARCHAR, city VARCHAR) [/INST] ### Response: SELECT country FROM table_name_82 WHERE city = "zamboanga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number drawn when the position was 12? ### Context: CREATE TABLE table_name_50 (drawn INTEGER, position VARCHAR) [/INST] ### Response: SELECT MAX(drawn) FROM table_name_50 WHERE position = 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: What is the highest number of goals against when the number of goals were 55 and the difference was +24? ### Context: CREATE TABLE table_name_94 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT MAX(goals_against) FROM table_name_94 WHERE goals_for > 55 AND goal_difference = "+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 average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against? ### Context: CREATE TABLE table_name_62 (lost INTEGER, team VARCHAR, drawn VARCHAR, goals_against VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_62 WHERE goals_against > 57 AND position < 17 AND drawn = 8 AND team = "hyde united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played when there was less than 74 goals against and points 1 of 36 2? ### Context: CREATE TABLE table_name_30 (played INTEGER, points_1 VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MAX(played) FROM table_name_30 WHERE points_1 = "36 2" AND goals_against < 74 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long is the diameter that has a longitude of 8.0e? ### Context: CREATE TABLE table_name_65 (diameter__km_ VARCHAR, longitude VARCHAR) [/INST] ### Response: SELECT diameter__km_ FROM table_name_65 WHERE longitude = "8.0e" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name was given in 1994 when the diameter (km) was larger than 125 and the latitude was 30.0s? ### Context: CREATE TABLE table_name_46 (name VARCHAR, latitude VARCHAR, year_named VARCHAR, diameter__km_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_46 WHERE year_named = 1994 AND diameter__km_ > 125 AND latitude = "30.0s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 longitude of Carmenta Farra in 1994? ### Context: CREATE TABLE table_name_74 (longitude VARCHAR, year_named VARCHAR, name VARCHAR) [/INST] ### Response: SELECT longitude FROM table_name_74 WHERE year_named = 1994 AND name = "carmenta farra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 5 which has a No. 6 of ethan, and a No. 4 of william, and a No. 9 of john? ### Context: CREATE TABLE table_name_28 (no_5 VARCHAR, no_9 VARCHAR, no_6 VARCHAR, no_4 VARCHAR) [/INST] ### Response: SELECT no_5 FROM table_name_28 WHERE no_6 = "ethan" AND no_4 = "william" AND no_9 = "john" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 2 which has a No. 3 of jacob, and a No. 10 of wyatt, and a No. 6 of ethan? ### Context: CREATE TABLE table_name_66 (no_2 VARCHAR, no_6 VARCHAR, no_3 VARCHAR, no_10 VARCHAR) [/INST] ### Response: SELECT no_2 FROM table_name_66 WHERE no_3 = "jacob" AND no_10 = "wyatt" AND no_6 = "ethan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 3 which has a No. 7 of logan, and a No. 5 of jackson? ### Context: CREATE TABLE table_name_72 (no_3 VARCHAR, no_7 VARCHAR, no_5 VARCHAR) [/INST] ### Response: SELECT no_3 FROM table_name_72 WHERE no_7 = "logan" AND no_5 = "jackson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 5 which has a No. 8 of logan, and a No. 10 of ethan, and a No. 4 of jacob? ### Context: CREATE TABLE table_name_39 (no_5 VARCHAR, no_4 VARCHAR, no_8 VARCHAR, no_10 VARCHAR) [/INST] ### Response: SELECT no_5 FROM table_name_39 WHERE no_8 = "logan" AND no_10 = "ethan" AND no_4 = "jacob" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 8 which has a No. 4 of benjamin, and a No. 3 of liam? ### Context: CREATE TABLE table_name_23 (no_8 VARCHAR, no_4 VARCHAR, no_3 VARCHAR) [/INST] ### Response: SELECT no_8 FROM table_name_23 WHERE no_4 = "benjamin" AND no_3 = "liam" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 No. 10 which has a No. 8 of jackson, and a No. 9 of jayden? ### Context: CREATE TABLE table_name_94 (no_10 VARCHAR, no_8 VARCHAR, no_9 VARCHAR) [/INST] ### Response: SELECT no_10 FROM table_name_94 WHERE no_8 = "jackson" AND no_9 = "jayden" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for Ron Paul as republican and a sample sized less than 472? ### Context: CREATE TABLE table_name_20 (date VARCHAR, sample_size VARCHAR, republican VARCHAR) [/INST] ### Response: SELECT date FROM table_name_20 WHERE sample_size < 472 AND republican = "ron paul" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Democrat when the Republican was Mike Huckabee, and the sample size was less than 495? ### Context: CREATE TABLE table_name_33 (democrat VARCHAR, sample_size VARCHAR, republican VARCHAR) [/INST] ### Response: SELECT democrat FROM table_name_33 WHERE sample_size < 495 AND republican = "mike huckabee" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the attendance in week 9? ### Context: CREATE TABLE table_name_26 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_26 WHERE week = 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week had attendance of 52,714? ### Context: CREATE TABLE table_name_54 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_54 WHERE attendance = 52 OFFSET 714 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold when silver is 1, event is 2000 summer paralympics and bronze is more than 3? ### Context: CREATE TABLE table_name_41 (gold INTEGER, bronze VARCHAR, silver VARCHAR, event VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_41 WHERE silver = 1 AND event = "2000 summer paralympics" AND bronze > 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: how many times is bronze 2 and gold more than 3? ### Context: CREATE TABLE table_name_34 (total VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_34 WHERE bronze = 2 AND gold > 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 gold when silver is 1 and bronze is less than 0? ### Context: CREATE TABLE table_name_63 (gold INTEGER, silver VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_63 WHERE silver = 1 AND bronze < 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 is the highest bronze when silver is less than 1 and gold is more than 0? ### Context: CREATE TABLE table_name_11 (bronze INTEGER, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_11 WHERE silver < 1 AND gold > 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 is the most silver when the event is 2008 summer paralympics and bronze is less than 1? ### Context: CREATE TABLE table_name_86 (silver INTEGER, event VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(silver) FROM table_name_86 WHERE event = "2008 summer paralympics" AND 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: Which Album title has a Title of 滑板? ### Context: CREATE TABLE table_name_53 (album_title VARCHAR, title VARCHAR) [/INST] ### Response: SELECT album_title FROM table_name_53 WHERE title = "滑板" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 label has a Title of 诀别诗? ### Context: CREATE TABLE table_name_46 (record_label VARCHAR, title VARCHAR) [/INST] ### Response: SELECT record_label FROM table_name_46 WHERE title = "诀别诗" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Track number has a Album title of 文武双全升级版, and a Title of 老爸你别装酷? ### Context: CREATE TABLE table_name_44 (track_number VARCHAR, album_title VARCHAR, title VARCHAR) [/INST] ### Response: SELECT track_number FROM table_name_44 WHERE album_title = "文武双全升级版" AND title = "老爸你别装酷" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 kind of Disc number has a Track number of 02 on 7 september 2004? ### Context: CREATE TABLE table_name_19 (disc_number VARCHAR, track_number VARCHAR, release_date VARCHAR) [/INST] ### Response: SELECT disc_number FROM table_name_19 WHERE track_number = "02" AND release_date = "7 september 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Title which has a Track number of 07, and a Record label of emi on 21 april 2006? ### Context: CREATE TABLE table_name_73 (title VARCHAR, release_date VARCHAR, track_number VARCHAR, record_label VARCHAR) [/INST] ### Response: SELECT title FROM table_name_73 WHERE track_number = "07" AND record_label = "emi" AND release_date = "21 april 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'S THE TIE NUMBER WITH AN AWAY TEAM OF WREXHAM? ### Context: CREATE TABLE table_name_52 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_52 WHERE away_team = "wrexham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_33 WHERE home_team = "leicester city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE AWAY TEAM WHEN HOME IS LEEDS UNITED? ### Context: CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_44 WHERE home_team = "leeds united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE AWAY TEAM WITH A TIE NUMBER 1? ### Context: CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_46 WHERE tie_no = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Total has a Club of darlington, and a League goals of 13, and a League Cup goals of 1? ### Context: CREATE TABLE table_name_68 (total INTEGER, league_cup_goals VARCHAR, club VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_68 WHERE club = "darlington" AND league_goals = "13" AND league_cup_goals = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Club has a League Cup goals of 0, and a FA Cup goals of 1, and a Total larger than 11, and a League goals of 13? ### Context: CREATE TABLE table_name_99 (club VARCHAR, league_goals VARCHAR, total VARCHAR, league_cup_goals VARCHAR, fa_cup_goals VARCHAR) [/INST] ### Response: SELECT club FROM table_name_99 WHERE league_cup_goals = "0" AND fa_cup_goals = "1" AND total > 11 AND league_goals = "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: Which League Cup goals have a Total larger than 14, and a League goals of 14, and a FA Cup goals of 0? ### Context: CREATE TABLE table_name_61 (league_cup_goals VARCHAR, fa_cup_goals VARCHAR, total VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT league_cup_goals FROM table_name_61 WHERE total > "14" AND league_goals = "14" AND fa_cup_goals = "0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Total has an FA Cup goals of 1, and a League goals of 4 + 7? ### Context: CREATE TABLE table_name_23 (total INTEGER, fa_cup_goals VARCHAR, league_goals VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_23 WHERE fa_cup_goals = "1" AND league_goals = "4 + 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 event had a win, record of 8-1 and n/a round? ### Context: CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR) [/INST] ### Response: SELECT event FROM table_name_98 WHERE res = "win" AND round = "n/a" AND record = "8-1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event was the opponent Karl Knothe and had a submission (rear naked choke)? ### Context: CREATE TABLE table_name_16 (event VARCHAR, method VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT event FROM table_name_16 WHERE method = "submission (rear naked choke)" AND opponent = "karl knothe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record for the match when the res was a win and the method was a decision? ### Context: CREATE TABLE table_name_91 (record VARCHAR, method VARCHAR, res VARCHAR) [/INST] ### Response: SELECT record FROM table_name_91 WHERE method = "decision" AND res = "win" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a record of 4-1? ### Context: CREATE TABLE table_name_17 (round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT round FROM table_name_17 WHERE record = "4-1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the record of the UCS 2 - Battle at the Barn when the round was n/a? ### Context: CREATE TABLE table_name_7 (record VARCHAR, round VARCHAR, event VARCHAR) [/INST] ### Response: SELECT record FROM table_name_7 WHERE round = "n/a" AND event = "ucs 2 - battle at the barn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a record of 8-2? ### Context: CREATE TABLE table_name_73 (round VARCHAR, record VARCHAR) [/INST] ### Response: SELECT round FROM table_name_73 WHERE record = "8-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: Who is the opponent when the record is 17-19-4? ### Context: CREATE TABLE table_name_27 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_27 WHERE record = "17-19-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 score of game 37? ### Context: CREATE TABLE table_name_72 (score VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_72 WHERE game = 37 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record on 1/17/1980? ### Context: CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_77 WHERE date = "1/17/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 date was game number 3? ### Context: CREATE TABLE table_name_34 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_34 WHERE game = 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 record when George Hill (11) had the high rebounds? ### Context: CREATE TABLE table_name_58 (record VARCHAR, high_rebounds VARCHAR) [/INST] ### Response: SELECT record FROM table_name_58 WHERE high_rebounds = "george hill (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 number game happened on November 19? ### Context: CREATE TABLE table_name_44 (game INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(game) FROM table_name_44 WHERE date = "november 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: Who had the high rebounds for game 12? ### Context: CREATE TABLE table_name_55 (high_rebounds VARCHAR, game VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_55 WHERE game = 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: What is the name of the manager in the city of Osijek? ### Context: CREATE TABLE table_name_33 (manager VARCHAR, home_city VARCHAR) [/INST] ### Response: SELECT manager FROM table_name_33 WHERE home_city = "osijek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the team at Stadion Maksimir? ### Context: CREATE TABLE table_name_48 (team VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT team FROM table_name_48 WHERE stadium = "stadion maksimir" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city when the stadium was Gradski Stadion U Poljudu? ### Context: CREATE TABLE table_name_69 (home_city VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT home_city FROM table_name_69 WHERE stadium = "gradski stadion u poljudu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city when Mladen Frančić is the manager? ### Context: CREATE TABLE table_name_36 (home_city VARCHAR, manager VARCHAR) [/INST] ### Response: SELECT home_city FROM table_name_36 WHERE manager = "mladen franč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: Who was the opponent when the attendance was 80,079? ### Context: CREATE TABLE table_name_99 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_99 WHERE attendance = "80,079" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the attendance was 31,002? ### Context: CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_86 WHERE attendance = "31,002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when they played at the legion field • birmingham, al site? ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, site VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_7 WHERE site = "legion field • birmingham, al" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On which site was the game against Louisville played? ### Context: CREATE TABLE table_name_22 (site VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT site FROM table_name_22 WHERE opponent = "louisville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total attendance on September 12? ### Context: CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_76 WHERE date = "september 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: What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"? ### Context: CREATE TABLE table_name_47 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR) [/INST] ### Response: SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 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 total number of Broadcasts (TV) 1, when Aired in Japan 3 is "5 January 2003 to 30 March 2003"? ### Context: CREATE TABLE table_name_50 (broadcasts__tv__1 VARCHAR, aired_in_japan_3 VARCHAR) [/INST] ### Response: SELECT COUNT(broadcasts__tv__1) FROM table_name_50 WHERE aired_in_japan_3 = "5 january 2003 to 30 march 2003" </s>