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 sum of Date of Official Foundation of Municipality, when Province is "Kermān", when 2006 us "167014", and when Rank is less than 46? ### Context: CREATE TABLE table_name_65 (date_of_official_foundation_of_municipality INTEGER, rank VARCHAR, province VARCHAR) [/INST] ### Response: SELECT SUM(date_of_official_foundation_of_municipality) FROM table_name_65 WHERE province = "kermān" AND 2006 = 167014 AND rank < 46 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank, when Date of Official Foundation of Municipality is after 1926, when Province is "Sistan and Baluchestan", and when 2006 is greater than 567449? ### Context: CREATE TABLE table_name_87 (rank VARCHAR, date_of_official_foundation_of_municipality VARCHAR, province VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_87 WHERE date_of_official_foundation_of_municipality > 1926 AND province = "sistan and baluchestan" AND 2006 > 567449 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366? ### Context: CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank, when Date of Official Foundation of Municipality is "1952", and when 2006 is less than 189120? ### Context: CREATE TABLE table_name_16 (rank INTEGER, date_of_official_foundation_of_municipality VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_16 WHERE date_of_official_foundation_of_municipality = 1952 AND 2006 < 189120 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Province, when 2006 is less than 153748, when Date of Official Foundation of Municipality is after 1958, and when City is "Pakdasht"? ### Context: CREATE TABLE table_name_46 (province VARCHAR, city VARCHAR, date_of_official_foundation_of_municipality VARCHAR) [/INST] ### Response: SELECT province FROM table_name_46 WHERE 2006 < 153748 AND date_of_official_foundation_of_municipality > 1958 AND city = "pakdasht" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the score is 68-70-68=206? ### Context: CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the country when the score is 71-65-69=205? ### Context: CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_47 WHERE score = 71 - 65 - 69 = 205 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the country when the score is 72-68-67=207? ### Context: CREATE TABLE table_name_79 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_79 WHERE score = 72 - 68 - 67 = 207 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the country when the score is 68-72-67=207? ### Context: CREATE TABLE table_name_75 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_75 WHERE score = 68 - 72 - 67 = 207 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the place is t5 and the score is 69-66-71=206? ### Context: CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest amount of laps when the class was v8 and the entrant was diet-coke racing? ### Context: CREATE TABLE table_name_13 (laps INTEGER, class VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_13 WHERE class = "v8" AND entrant = "diet-coke racing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the tie with a win of 0? ### Context: CREATE TABLE table_name_38 (ties VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT ties FROM table_name_38 WHERE wins = "0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the final position with ties of 0, and wins of 5? ### Context: CREATE TABLE table_name_87 (final_position VARCHAR, ties VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT final_position FROM table_name_87 WHERE ties = "0" AND wins = "5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the ties for division of bafl division two south? ### Context: CREATE TABLE table_name_8 (ties VARCHAR, division VARCHAR) [/INST] ### Response: SELECT ties FROM table_name_8 WHERE division = "bafl division two south" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final position for the season 2008? ### Context: CREATE TABLE table_name_76 (final_position VARCHAR, season VARCHAR) [/INST] ### Response: SELECT final_position FROM table_name_76 WHERE season = "2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the final position for the season 2012? ### Context: CREATE TABLE table_name_70 (final_position VARCHAR, season VARCHAR) [/INST] ### Response: SELECT final_position FROM table_name_70 WHERE season = "2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the division with wins of 2? ### Context: CREATE TABLE table_name_76 (division VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT division FROM table_name_76 WHERE wins = "2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location of the Hietalahti Stadium? ### Context: CREATE TABLE table_name_46 (location VARCHAR, stadium VARCHAR) [/INST] ### Response: SELECT location FROM table_name_46 WHERE stadium = "hietalahti stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location of the Stadium where Job Dragtsma is Manager? ### Context: CREATE TABLE table_name_5 (location VARCHAR, manager VARCHAR) [/INST] ### Response: SELECT location FROM table_name_5 WHERE manager = "job dragtsma" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 react when the lane is 3 and heat is 2? ### Context: CREATE TABLE table_name_98 (react VARCHAR, lane VARCHAR, heat VARCHAR) [/INST] ### Response: SELECT react FROM table_name_98 WHERE lane = 3 AND heat = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest lane number for johan wissman when the react is less than 0.242? ### Context: CREATE TABLE table_name_48 (lane INTEGER, name VARCHAR, react VARCHAR) [/INST] ### Response: SELECT MAX(lane) FROM table_name_48 WHERE name = "johan wissman" AND react < 0.242 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 heat when the country is united kingdom and react is less than 0.232? ### Context: CREATE TABLE table_name_91 (heat INTEGER, country VARCHAR, react VARCHAR) [/INST] ### Response: SELECT MAX(heat) FROM table_name_91 WHERE country = "united kingdom" AND react < 0.232 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 react when the country is sweden and the lane is higher than 6? ### Context: CREATE TABLE table_name_65 (react INTEGER, country VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT SUM(react) FROM table_name_65 WHERE country = "sweden" AND lane > 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 1st leg of the UEFA Champions League Compeition in the Skonto Riga Club? ### Context: CREATE TABLE table_name_52 (competition VARCHAR, club VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_52 WHERE competition = "uefa champions league" AND club = "skonto riga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which season has the Renova Club? ### Context: CREATE TABLE table_name_43 (season VARCHAR, club VARCHAR) [/INST] ### Response: SELECT season FROM table_name_43 WHERE club = "renova" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which season has the Werder Bremen Club and is in Round 2r? ### Context: CREATE TABLE table_name_50 (season VARCHAR, club VARCHAR, round VARCHAR) [/INST] ### Response: SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub? ### Context: CREATE TABLE table_name_39 (round VARCHAR, competition VARCHAR, club VARCHAR) [/INST] ### Response: SELECT round FROM table_name_39 WHERE competition = "uefa cup" AND club = "kolkheti-1913 poti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PAL B, G, H for the PAL I 4.43361875mhz? ### Context: CREATE TABLE table_name_60 (pal_b VARCHAR, g VARCHAR, h VARCHAR, pal_i VARCHAR) [/INST] ### Response: SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 PAL M has a PAL I of 50HZ? ### Context: CREATE TABLE table_name_55 (pal_m VARCHAR, pal_i VARCHAR) [/INST] ### Response: SELECT pal_m FROM table_name_55 WHERE pal_i = "50hz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NTSC M for Pal M 525/60? ### Context: CREATE TABLE table_name_23 (ntsc_m VARCHAR, pal_m VARCHAR) [/INST] ### Response: SELECT ntsc_m FROM table_name_23 WHERE pal_m = "525/60" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PAL M for the NTSC M 4.5mhz? ### Context: CREATE TABLE table_name_54 (pal_m VARCHAR, ntsc_m VARCHAR) [/INST] ### Response: SELECT pal_m FROM table_name_54 WHERE ntsc_m = "4.5mhz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Year, when Rank is less than 19? ### Context: CREATE TABLE table_name_4 (year INTEGER, rank INTEGER) [/INST] ### Response: SELECT SUM(year) FROM table_name_4 WHERE rank < 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Year, when Publication is "VH1", and when Rank is greater than 11? ### Context: CREATE TABLE table_name_65 (year INTEGER, publication VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_65 WHERE publication = "vh1" AND rank > 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 Accolade, when Year is less than 2002, when Publication is "Rolling Stone", and when Rank is "48"? ### Context: CREATE TABLE table_name_76 (accolade VARCHAR, rank VARCHAR, year VARCHAR, publication VARCHAR) [/INST] ### Response: SELECT accolade FROM table_name_76 WHERE year < 2002 AND publication = "rolling stone" AND rank = 48 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year, when Rank is greater than 85? ### Context: CREATE TABLE table_name_28 (year INTEGER, rank INTEGER) [/INST] ### Response: SELECT MIN(year) FROM table_name_28 WHERE rank > 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: What is Accolade, when Country is "United States", and when Year is "1999"? ### Context: CREATE TABLE table_name_8 (accolade VARCHAR, country VARCHAR, year VARCHAR) [/INST] ### Response: SELECT accolade FROM table_name_8 WHERE country = "united states" AND year = 1999 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Pick, when Player is "Dexter Bailey"? ### Context: CREATE TABLE table_name_34 (pick VARCHAR, player VARCHAR) [/INST] ### Response: SELECT pick FROM table_name_34 WHERE player = "dexter bailey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round, when Nationality is "United States", and when Pick is "125"? ### Context: CREATE TABLE table_name_91 (round INTEGER, nationality VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_91 WHERE nationality = "united states" AND pick = 125 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round, when School/Club Team is "Tennessee-Chattanooga"? ### Context: CREATE TABLE table_name_62 (round VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT round FROM table_name_62 WHERE school_club_team = "tennessee-chattanooga" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Pick, when Player is "Willie White",and when Round is less than 2? ### Context: CREATE TABLE table_name_82 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(pick) FROM table_name_82 WHERE player = "willie white" AND round < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total prominence in ft of the peak of kangchenjunga central, which has a prominence in m less than 32? ### Context: CREATE TABLE table_name_67 (prominence__ft_ VARCHAR, name_of_peak VARCHAR, prominence__m_ VARCHAR) [/INST] ### Response: SELECT COUNT(prominence__ft_) FROM table_name_67 WHERE name_of_peak = "kangchenjunga central" AND prominence__m_ < 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: What is the highest prominence in ft of the peak with a prominence in m less than 103? ### Context: CREATE TABLE table_name_18 (prominence__ft_ INTEGER, prominence__m_ INTEGER) [/INST] ### Response: SELECT MAX(prominence__ft_) FROM table_name_18 WHERE prominence__m_ < 103 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the attendance was 78,793? ### Context: CREATE TABLE table_name_53 (result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_53 WHERE attendance = "78,793" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the result was a bye? ### Context: CREATE TABLE table_name_79 (attendance VARCHAR, result VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_79 WHERE result = "bye" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total for week 10? ### Context: CREATE TABLE table_name_77 (attendance VARCHAR, week VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_77 WHERE week = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the game date for week 7? ### Context: CREATE TABLE table_name_32 (date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_32 WHERE week = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE ROUND WITH PICK OF 7? ### Context: CREATE TABLE table_name_9 (round INTEGER, pick VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_9 WHERE pick = 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE PICK WITH K POSITION AND OVERALL SMALLER THAN 181? ### Context: CREATE TABLE table_name_40 (pick INTEGER, position VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_40 WHERE position = "k" AND overall < 181 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ROUND FROM MICHIGAN COLLEGE, AND OVERALL LARGER THAN 37? ### Context: CREATE TABLE table_name_55 (round INTEGER, college VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_55 WHERE college = "michigan" AND overall > 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 LOWEST ROUND FOR CB POSITION? ### Context: CREATE TABLE table_name_56 (round INTEGER, position VARCHAR) [/INST] ### Response: SELECT MIN(round) FROM table_name_56 WHERE position = "cb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the Writer with an Original Airdate of september 4, 2005 (hbo)? ### Context: CREATE TABLE table_name_91 (writer VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_91 WHERE original_airdate = "september 4, 2005 (hbo)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director has an Episode of 13? ### Context: CREATE TABLE table_name_17 (director VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT director FROM table_name_17 WHERE episode = 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 Original Airdate has an Episode of 1? ### Context: CREATE TABLE table_name_2 (original_airdate VARCHAR, episode VARCHAR) [/INST] ### Response: SELECT original_airdate FROM table_name_2 WHERE episode = 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: On what date was the venue A with a result of 3–0? ### Context: CREATE TABLE table_name_93 (date VARCHAR, venue VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE venue = "a" AND result = "3–0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most noteworthy Bike No that has a Position bigger than 1, and a Points bigger than 369, and an Equipment of zabel-wsp? ### Context: CREATE TABLE table_name_77 (bike_no INTEGER, equipment VARCHAR, position VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(bike_no) FROM table_name_77 WHERE position > 1 AND points > 369 AND equipment = "zabel-wsp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aggregate number of Position that has a Bike No of 4? ### Context: CREATE TABLE table_name_19 (position VARCHAR, bike_no VARCHAR) [/INST] ### Response: SELECT COUNT(position) FROM table_name_19 WHERE bike_no = 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: When was the result l 14–24? ### Context: CREATE TABLE table_name_71 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE result = "l 14–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 was the first week when there was an attendance over 75,007 at Mile High Stadium? ### Context: CREATE TABLE table_name_21 (week INTEGER, game_site VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_21 WHERE game_site = "mile high stadium" AND attendance > 75 OFFSET 007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Away team Swindon Town had a Tie no listing of Replay with what as an Attendance? ### Context: CREATE TABLE table_name_74 (attendance VARCHAR, tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_74 WHERE tie_no = "replay" AND away_team = "swindon town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Liverpool as a home team as listed what in the Tie no column? ### Context: CREATE TABLE table_name_28 (tie_no VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_28 WHERE home_team = "liverpool" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team of Grimsby Town? ### Context: CREATE TABLE table_name_41 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_41 WHERE away_team = "grimsby town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick has a Round larger than 1, a School/Club Team of alcorn state, and a Position of defensive back? ### Context: CREATE TABLE table_name_88 (pick INTEGER, position VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_88 WHERE round > 1 AND school_club_team = "alcorn state" AND position = "defensive back" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pick has a Position of offensive guard, a Player of reggie mckenzie, and a Round larger than 2? ### Context: CREATE TABLE table_name_96 (pick VARCHAR, round VARCHAR, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_96 WHERE position = "offensive guard" AND player = "reggie mckenzie" AND round > 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 School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie? ### Context: CREATE TABLE table_name_97 (school_club_team VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round smaller than 2? ### Context: CREATE TABLE table_name_69 (player VARCHAR, round INTEGER) [/INST] ### Response: SELECT player FROM table_name_69 WHERE round < 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 was the record on march 26? ### Context: CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_79 WHERE date = "march 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who visited on march 26? ### Context: CREATE TABLE table_name_6 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_6 WHERE date = "march 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the lowest points on march 2? ### Context: CREATE TABLE table_name_56 (points INTEGER, date VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_56 WHERE date = "march 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 Points have a Record of 21–36–9, and an Attendance larger than 14,768? ### Context: CREATE TABLE table_name_9 (points INTEGER, record VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_9 WHERE record = "21–36–9" AND attendance > 14 OFFSET 768 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Loss larger than 2, and a Avg/G larger than -16, and a GP-GS of 11–7, and a Gain larger than 86? ### Context: CREATE TABLE table_name_23 (name VARCHAR, gain VARCHAR, gp_gs VARCHAR, loss VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT name FROM table_name_23 WHERE loss > 2 AND avg_g > -16 AND gp_gs = "11–7" AND gain > 86 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4–0? ### Context: CREATE TABLE table_name_88 (long INTEGER, avg_g VARCHAR, gp_gs VARCHAR) [/INST] ### Response: SELECT MAX(long) FROM table_name_88 WHERE avg_g < 8.4 AND gp_gs = "4–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 lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3? ### Context: CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR) [/INST] ### Response: SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = "4–0" AND loss < 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: Name the total of Loss which has an Avg/G of 8.4? ### Context: CREATE TABLE table_name_37 (loss VARCHAR, avg_g VARCHAR) [/INST] ### Response: SELECT COUNT(loss) FROM table_name_37 WHERE avg_g = 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: Which Team has Points of 15? ### Context: CREATE TABLE table_name_80 (team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT team FROM table_name_80 WHERE 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 Laps has a Points of lead changes: 13 between 8 drivers? ### Context: CREATE TABLE table_name_99 (laps VARCHAR, points VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_99 WHERE points = "lead changes: 13 between 8 drivers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Grid of 1? ### Context: CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_45 WHERE grid = "1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE HIGHEST WINS WITH A SERIES OF BRITISH FORMULA THREE, SEASON 2005, POLES SMALLER THAN 0? ### Context: CREATE TABLE table_name_89 (wins INTEGER, poles VARCHAR, series VARCHAR, season VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_89 WHERE series = "british formula three" AND season = "2005" AND poles < 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 SUM OF RACES WITH 9 POINTS? ### Context: CREATE TABLE table_name_49 (races INTEGER, points VARCHAR) [/INST] ### Response: SELECT SUM(races) FROM table_name_49 WHERE points = "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 IS THE AVERAGE POLES WITH POINTS N/A? ### Context: CREATE TABLE table_name_71 (poles INTEGER, points VARCHAR) [/INST] ### Response: SELECT AVG(poles) FROM table_name_71 WHERE points = "n/a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that player from South Africa who had a total score under 293? ### Context: CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_93 WHERE total < 293 AND country = "south africa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best when the qual 2 is 1:47.042? ### Context: CREATE TABLE table_name_5 (best VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT best FROM table_name_5 WHERE qual_2 = "1:47.042" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the name is alex sperafico? ### Context: CREATE TABLE table_name_58 (team VARCHAR, name VARCHAR) [/INST] ### Response: SELECT team FROM table_name_58 WHERE name = "alex sperafico" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual 2 when the best is 1:45.172? ### Context: CREATE TABLE table_name_32 (qual_2 VARCHAR, best VARCHAR) [/INST] ### Response: SELECT qual_2 FROM table_name_32 WHERE best = "1:45.172" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name for the best of 1:45.361? ### Context: CREATE TABLE table_name_17 (name VARCHAR, best VARCHAR) [/INST] ### Response: SELECT name FROM table_name_17 WHERE best = "1:45.361" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a qual 2 of 1:43.374? ### Context: CREATE TABLE table_name_97 (name VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT name FROM table_name_97 WHERE qual_2 = "1:43.374" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a qual 2 of 1:46.025? ### Context: CREATE TABLE table_name_33 (name VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT name FROM table_name_33 WHERE qual_2 = "1:46.025" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 streak on March 27? ### Context: CREATE TABLE table_name_81 (streak VARCHAR, date VARCHAR) [/INST] ### Response: SELECT streak FROM table_name_81 WHERE date = "march 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: Which streak before game 12 had a team points larger than 113 on November 16? ### Context: CREATE TABLE table_name_88 (streak VARCHAR, date VARCHAR, team_points VARCHAR, game VARCHAR) [/INST] ### Response: SELECT streak FROM table_name_88 WHERE team_points > 113 AND game < 12 AND date = "november 16" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who scored the lowest with 8 gold medals and less than 4 silver medals? ### Context: CREATE TABLE table_name_40 (total INTEGER, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_40 WHERE gold = 8 AND silver < 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 rank for the 3 silver medals? ### Context: CREATE TABLE table_name_13 (rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_13 WHERE silver = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which young classification has an aggressive rider of Tim Johnson? ### Context: CREATE TABLE table_name_89 (young_classification VARCHAR, aggressive_rider VARCHAR) [/INST] ### Response: SELECT young_classification FROM table_name_89 WHERE aggressive_rider = "tim johnson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number for rich dobbert? ### Context: CREATE TABLE table_name_36 (overall INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_36 WHERE name = "rich dobbert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the rounds where the overall pick was more than 295 and the pick was smaller than 10 and the player was rich dobbert? ### Context: CREATE TABLE table_name_93 (round INTEGER, pick VARCHAR, overall VARCHAR, name VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_93 WHERE overall > 295 AND name = "rich dobbert" AND pick < 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position did eric norri play who was the overall pick less than 322 on a round larger than 3? ### Context: CREATE TABLE table_name_33 (position VARCHAR, name VARCHAR, overall VARCHAR, round VARCHAR) [/INST] ### Response: SELECT position FROM table_name_33 WHERE overall < 322 AND round > 3 AND name = "eric norri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for the game with the home team of the Townsville Crocodiles? ### Context: CREATE TABLE table_name_54 (report VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT report FROM table_name_54 WHERE home_team = "townsville crocodiles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue that featured the Melbourne Tigers as the away team? ### Context: CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_95 WHERE away_team = "melbourne tigers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for the game played at the Hisense Arena? ### Context: CREATE TABLE table_name_42 (report VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT report FROM table_name_42 WHERE venue = "hisense arena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the Points 1 was 51 and the Goals Against was less than 66, what was the Goal Difference? ### Context: CREATE TABLE table_name_56 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT goal_difference FROM table_name_56 WHERE points_1 = "51" AND goals_against < 66 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Played where the Goals For is higher than 60, the Lost is 8, and the Position is less than 1? ### Context: CREATE TABLE table_name_22 (played INTEGER, position VARCHAR, goals_for VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_22 WHERE goals_for > 60 AND lost = 8 AND position < 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 was the Goal Difference for Postion 22? ### Context: CREATE TABLE table_name_61 (goal_difference VARCHAR, position VARCHAR) [/INST] ### Response: SELECT goal_difference FROM table_name_61 WHERE position = 22 </s>