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 relationship of the woman who died at 96? ### Context: CREATE TABLE table_name_95 (relationship VARCHAR, age_at_death VARCHAR) [/INST] ### Response: SELECT relationship FROM table_name_95 WHERE age_at_death = "96" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lifespan of Stefanie Rabatsch? ### Context: CREATE TABLE table_name_93 (life VARCHAR, name VARCHAR) [/INST] ### Response: SELECT life FROM table_name_93 WHERE name = "stefanie rabatsch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Brendan Gaughan's Car #? ### Context: CREATE TABLE table_name_72 (car__number VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT car__number FROM table_name_72 WHERE driver = "brendan gaughan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mike Skinner's Chevrolet's Car #? ### Context: CREATE TABLE table_name_74 (car__number VARCHAR, make VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT COUNT(car__number) FROM table_name_74 WHERE make = "chevrolet" AND driver = "mike skinner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Driver Brendan Gaughan's Pos? ### Context: CREATE TABLE table_name_29 (pos VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT pos FROM table_name_29 WHERE driver = "brendan gaughan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009 value for a total over 1 and 4th on 2010? ### Context: CREATE TABLE table_name_36 (total VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_36 WHERE total > 1 AND 2010 = "4th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of laps for the Time/Retired of +16.445? ### Context: CREATE TABLE table_name_76 (laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_76 WHERE time_retired = "+16.445" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps for the honda vehicle, with a grid of 13? ### Context: CREATE TABLE table_name_17 (laps VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the company that constructed the vehicle for Timo Glock? ### Context: CREATE TABLE table_name_15 (constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_15 WHERE driver = "timo glock" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Grid for Rubens Barrichello? ### Context: CREATE TABLE table_name_99 (grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_99 WHERE driver = "rubens barrichello" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time/Retired for the BMW Sauber, and Nick Heidfeld? ### Context: CREATE TABLE table_name_80 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_80 WHERE constructor = "bmw sauber" AND driver = "nick heidfeld" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of games in April greater than 83? ### Context: CREATE TABLE table_name_61 (april VARCHAR, game INTEGER) [/INST] ### Response: SELECT COUNT(april) FROM table_name_61 WHERE game > 83 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games↑ is the lowest one that has a Position of wlb? ### Context: CREATE TABLE table_name_88 (games INTEGER, position VARCHAR) [/INST] ### Response: SELECT MIN(games) AS ↑ FROM table_name_88 WHERE position = "wlb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games↑ is the lowest one that has a Number of 98? ### Context: CREATE TABLE table_name_88 (games INTEGER, number VARCHAR) [/INST] ### Response: SELECT MIN(games) AS ↑ FROM table_name_88 WHERE number = 98 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height of Josh Tabb? ### Context: CREATE TABLE table_name_28 (height VARCHAR, name VARCHAR) [/INST] ### Response: SELECT height FROM table_name_28 WHERE name = "josh tabb" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What series episode has stetson hats (part 1) under segment C? ### Context: CREATE TABLE table_name_22 (series_ep VARCHAR, segment_c VARCHAR) [/INST] ### Response: SELECT series_ep FROM table_name_22 WHERE segment_c = "stetson hats (part 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 under segment C when s cuckoo clock is under segment B? ### Context: CREATE TABLE table_name_22 (segment_c VARCHAR, segment_b VARCHAR) [/INST] ### Response: SELECT segment_c FROM table_name_22 WHERE segment_b = "s cuckoo clock" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 segment B is s pineapple, what is the segment C? ### Context: CREATE TABLE table_name_92 (segment_c VARCHAR, segment_b VARCHAR) [/INST] ### Response: SELECT segment_c FROM table_name_92 WHERE segment_b = "s pineapple" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What series episode has jukeboxes as segment B? ### Context: CREATE TABLE table_name_80 (series_ep VARCHAR, segment_b VARCHAR) [/INST] ### Response: SELECT series_ep FROM table_name_80 WHERE segment_b = "jukeboxes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ended in a result of w 30-3, and had an attendance less than 62,795? ### Context: CREATE TABLE table_name_53 (week INTEGER, result VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_53 WHERE result = "w 30-3" AND attendance < 62 OFFSET 795 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Format has a Catalog of 61298, and a Date of september 1984? ### Context: CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR, date VARCHAR) [/INST] ### Response: SELECT format FROM table_name_51 WHERE catalog = 61298 AND date = "september 1984" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Format has a Catalog smaller than 61298? ### Context: CREATE TABLE table_name_11 (format VARCHAR, catalog INTEGER) [/INST] ### Response: SELECT format FROM table_name_11 WHERE catalog < 61298 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game with 96 points? ### Context: CREATE TABLE table_name_85 (score VARCHAR, points VARCHAR) [/INST] ### Response: SELECT score FROM table_name_85 WHERE points = 96 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game with a record of 34–17–11–2? ### Context: CREATE TABLE table_name_1 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_1 WHERE record = "34–17–11–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 after the game at Rich Stadium? ### Context: CREATE TABLE table_name_72 (record VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT record FROM table_name_72 WHERE game_site = "rich 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: When was the first cap associated with 74 caps? ### Context: CREATE TABLE table_name_27 (first_cap VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT first_cap FROM table_name_27 WHERE caps = 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 many goals are associated with over 97 caps and a Latest cap of april 24, 2013? ### Context: CREATE TABLE table_name_43 (goals INTEGER, latest_cap VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT AVG(goals) FROM table_name_43 WHERE latest_cap = "april 24, 2013" AND caps > 97 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first cap associated with 39 caps and under 33 goals? ### Context: CREATE TABLE table_name_29 (first_cap VARCHAR, goals VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT first_cap FROM table_name_29 WHERE goals < 33 AND caps = 39 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 associated with 39 caps? ### Context: CREATE TABLE table_name_33 (goals INTEGER, caps VARCHAR) [/INST] ### Response: SELECT MAX(goals) FROM table_name_33 WHERE caps = 39 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 days in April has a record of 42–22–12–3, and less than 99 points? ### Context: CREATE TABLE table_name_98 (april VARCHAR, record VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of points for 44 game and january more than 15 ### Context: CREATE TABLE table_name_78 (points VARCHAR, game VARCHAR, january VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_78 WHERE game = 44 AND january > 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 Date had a Result of 7–20? ### Context: CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_37 WHERE result = "7–20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had an Opponent of buffalo bills? ### Context: CREATE TABLE table_name_50 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_50 WHERE opponent = "buffalo bills" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Kickoff had a Game Site of bank of america stadium? ### Context: CREATE TABLE table_name_5 (kickoff VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT kickoff FROM table_name_5 WHERE game_site = "bank of america stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Kickoff had a Game Site of fawcett stadium? ### Context: CREATE TABLE table_name_12 (kickoff VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT kickoff FROM table_name_12 WHERE game_site = "fawcett stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which NFL Recap had a Kickoff of 7:00pm edt? ### Context: CREATE TABLE table_name_16 (nfl_recap VARCHAR, kickoff VARCHAR) [/INST] ### Response: SELECT nfl_recap FROM table_name_16 WHERE kickoff = "7:00pm edt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NFL Recap had a Record of 1–3? ### Context: CREATE TABLE table_name_1 (nfl_recap VARCHAR, record VARCHAR) [/INST] ### Response: SELECT nfl_recap FROM table_name_1 WHERE record = "1–3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Record on Game 50? ### Context: CREATE TABLE table_name_68 (record VARCHAR, game VARCHAR) [/INST] ### Response: SELECT record FROM table_name_68 WHERE game = 50 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what player score is higher than 17 ### Context: CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR) [/INST] ### Response: SELECT player FROM table_name_78 WHERE round = 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which opponent has an attendance of 17,015? ### Context: CREATE TABLE table_name_33 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_33 WHERE attendance = "17,015" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency MHz is the highest one that has a Call sign of k241an? ### Context: CREATE TABLE table_name_65 (frequency_mhz INTEGER, call_sign VARCHAR) [/INST] ### Response: SELECT MAX(frequency_mhz) FROM table_name_65 WHERE call_sign = "k241an" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W is the highest one that has a Frequency MHz larger than 88.3, and a City of license of lewis, kansas? ### Context: CREATE TABLE table_name_9 (erp_w INTEGER, frequency_mhz VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT MAX(erp_w) FROM table_name_9 WHERE frequency_mhz > 88.3 AND city_of_license = "lewis, kansas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FCC info has a ERP W smaller than 222, and a Call sign of k297ai? ### Context: CREATE TABLE table_name_35 (fcc_info VARCHAR, erp_w VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT fcc_info FROM table_name_35 WHERE erp_w < 222 AND call_sign = "k297ai" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which City of license has a Call sign of k241an? ### Context: CREATE TABLE table_name_68 (city_of_license VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_68 WHERE call_sign = "k241an" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class has an ERP W of 222? ### Context: CREATE TABLE table_name_21 (class VARCHAR, erp_w VARCHAR) [/INST] ### Response: SELECT class FROM table_name_21 WHERE erp_w = 222 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent? ### Context: CREATE TABLE table_name_43 (score VARCHAR, opponent VARCHAR, surface VARCHAR, year VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE surface = "clay" AND year > 2006 AND opponent = "david ferrer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 championship is in a year later than 2010 on a grass surface? ### Context: CREATE TABLE table_name_10 (championship VARCHAR, year VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_10 WHERE year > 2010 AND surface = "grass" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 championship has Roger Federer as an opponent on a clay surface in a year earlier than 2007? ### Context: CREATE TABLE table_name_36 (championship VARCHAR, year VARCHAR, opponent VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_36 WHERE opponent = "roger federer" AND surface = "clay" AND year < 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest attendance that has December 16, 1962 as the date? ### Context: CREATE TABLE table_name_84 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_84 WHERE date = "december 16, 1962" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest week that has t 35-35 as the result? ### Context: CREATE TABLE table_name_69 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_69 WHERE result = "t 35-35" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of no result for losses more than 1 and played of 38 and wins less than 19 ### Context: CREATE TABLE table_name_16 (no_result VARCHAR, wins VARCHAR, losses VARCHAR, played VARCHAR) [/INST] ### Response: SELECT COUNT(no_result) FROM table_name_16 WHERE losses > 1 AND played = 38 AND wins < 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of played with wins more than 19 ### Context: CREATE TABLE table_name_14 (played INTEGER, wins INTEGER) [/INST] ### Response: SELECT SUM(played) FROM table_name_14 WHERE wins > 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the total number of losses with number result less than 0 ### Context: CREATE TABLE table_name_5 (losses VARCHAR, no_result INTEGER) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_5 WHERE no_result < 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 Rank has Goals larger than 4, and a Scorer of oh seok-jae? ### Context: CREATE TABLE table_name_14 (rank VARCHAR, goals VARCHAR, scorer VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_14 WHERE goals > 4 AND scorer = "oh seok-jae" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Goals is the lowest one that has Matches of 16, and a Scorer of park sang-in? ### Context: CREATE TABLE table_name_92 (goals INTEGER, matches VARCHAR, scorer VARCHAR) [/INST] ### Response: SELECT MIN(goals) FROM table_name_92 WHERE matches = "16" AND scorer = "park sang-in" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank of 1? ### Context: CREATE TABLE table_name_69 (club VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT club FROM table_name_69 WHERE rank = "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 Goals have a Club of hallelujah fc, and a Rank of 7? ### Context: CREATE TABLE table_name_78 (goals INTEGER, club VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT SUM(goals) FROM table_name_78 WHERE club = "hallelujah fc" AND rank = "7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Extra points have Touchdowns larger than 2, and Field goals larger than 0? ### Context: CREATE TABLE table_name_4 (extra_points VARCHAR, touchdowns VARCHAR, field_goals VARCHAR) [/INST] ### Response: SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_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 Field goals is the highest one that has Touchdowns of 0, and Points larger than 4? ### Context: CREATE TABLE table_name_76 (field_goals INTEGER, touchdowns VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(field_goals) FROM table_name_76 WHERE touchdowns = 0 AND points > 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 grid number of Sandro Cortese, who has Aprilia as the manufacturer and less than 19 laps? ### Context: CREATE TABLE table_name_44 (grid INTEGER, rider VARCHAR, manufacturer VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_44 WHERE manufacturer = "aprilia" AND laps < 19 AND rider = "sandro cortese" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73? ### Context: CREATE TABLE table_name_95 (rank INTEGER, lost VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_95 WHERE lost < 12 AND played > 20 AND Avg.points > 1.73 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drew has a Rank of 5, and a Played larger than 30? ### Context: CREATE TABLE table_name_55 (drew VARCHAR, rank VARCHAR, played VARCHAR) [/INST] ### Response: SELECT COUNT(drew) FROM table_name_55 WHERE rank = 5 AND played > 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Rank has a Club of zulte waregem, and Points larger than 22? ### Context: CREATE TABLE table_name_93 (rank VARCHAR, club VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_93 WHERE club = "zulte waregem" AND points > 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Lost has Seasons of 2, and Goals against larger than 43? ### Context: CREATE TABLE table_name_75 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drew has a Lost larger than 14? ### Context: CREATE TABLE table_name_17 (drew INTEGER, lost INTEGER) [/INST] ### Response: SELECT SUM(drew) FROM table_name_17 WHERE lost > 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: Which Record has a Week smaller than 15, and an Opponent of at new york jets? ### Context: CREATE TABLE table_name_48 (record VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_48 WHERE week < 15 AND opponent = "at new york jets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result has a Record of 5–4? ### Context: CREATE TABLE table_name_14 (result VARCHAR, record VARCHAR) [/INST] ### Response: SELECT result FROM table_name_14 WHERE record = "5–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 Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs? ### Context: CREATE TABLE table_name_25 (record VARCHAR, time___et__ VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_25 WHERE time___et__ = "1:00pm" AND opponent = "kansas city chiefs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hindi associated with a Domari of tærən? ### Context: CREATE TABLE table_name_78 (hindi VARCHAR, domari VARCHAR) [/INST] ### Response: SELECT hindi FROM table_name_78 WHERE domari = "tærən" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lomavren associated with a Persian of se? ### Context: CREATE TABLE table_name_32 (lomavren VARCHAR, persian VARCHAR) [/INST] ### Response: SELECT lomavren FROM table_name_32 WHERE persian = "se" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Romani associated with a Domari of na? ### Context: CREATE TABLE table_name_44 (romani VARCHAR, domari VARCHAR) [/INST] ### Response: SELECT romani FROM table_name_44 WHERE domari = "na" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Domari associated with a Persian of yak, yek? ### Context: CREATE TABLE table_name_19 (domari VARCHAR, persian VARCHAR) [/INST] ### Response: SELECT domari FROM table_name_19 WHERE persian = "yak, yek" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lomavren associated with a Hindi of sāt? ### Context: CREATE TABLE table_name_68 (lomavren VARCHAR, hindi VARCHAR) [/INST] ### Response: SELECT lomavren FROM table_name_68 WHERE hindi = "sāt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Version before 2001 with a Length of 7:42? ### Context: CREATE TABLE table_name_64 (version VARCHAR, year VARCHAR, length VARCHAR) [/INST] ### Response: SELECT version FROM table_name_64 WHERE year < 2001 AND length = "7:42" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what Year is the length of the Song 7:42? ### Context: CREATE TABLE table_name_40 (year INTEGER, length VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_40 WHERE length = "7:42" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3? ### Context: CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_48 WHERE position = "right wing" AND round < 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 orbital regime of launches greater than 4 and failures less than 2? ### Context: CREATE TABLE table_name_76 (orbital_regime VARCHAR, launches VARCHAR, failures VARCHAR) [/INST] ### Response: SELECT orbital_regime FROM table_name_76 WHERE launches > 4 AND failures < 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 of medium earth orbital regime, accidentally achieved and successes greater than 3? ### Context: CREATE TABLE table_name_19 (accidentally_achieved INTEGER, orbital_regime VARCHAR, successes VARCHAR) [/INST] ### Response: SELECT SUM(accidentally_achieved) FROM table_name_19 WHERE orbital_regime = "medium earth" AND successes > 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 greatest successes that have failures greater than 1 and launches less than 28? ### Context: CREATE TABLE table_name_25 (successes INTEGER, failures VARCHAR, launches VARCHAR) [/INST] ### Response: SELECT MAX(successes) FROM table_name_25 WHERE failures > 1 AND launches < 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total failures of heliocentric orbit orbital regimes and launches less than 1? ### Context: CREATE TABLE table_name_33 (failures INTEGER, orbital_regime VARCHAR, launches VARCHAR) [/INST] ### Response: SELECT SUM(failures) FROM table_name_33 WHERE orbital_regime = "heliocentric orbit" AND launches < 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 rank of tris speaker when BB/SO was 7? ### Context: CREATE TABLE table_name_20 (rank VARCHAR, player VARCHAR, bb_so VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_20 WHERE player = "tris speaker" AND bb_so = 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 average rank for team cle when the BB/SO is 10.89? ### Context: CREATE TABLE table_name_97 (rank INTEGER, team VARCHAR, bb_so VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_97 WHERE team = "cle" AND bb_so = 10.89 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a partner that played on a hard surface on 18 April 2011? ### Context: CREATE TABLE table_name_23 (partner VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_23 WHERE surface = "hard" AND date = "18 april 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score for the final played on 2 July 2012? ### Context: CREATE TABLE table_name_5 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_5 WHERE date = "2 july 2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score on February 18, 2008? ### Context: CREATE TABLE table_name_32 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_32 WHERE date = "february 18, 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 was the Opponent on the game played on a Hard Surface with a Score of 3–6, 6–3, [7–10]? ### Context: CREATE TABLE table_name_61 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_61 WHERE surface = "hard" AND score = "3–6, 6–3, [7–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: On what Surface was the game with Partner David Martin played Scoring 4–6, 6–7 (4-7)? ### Context: CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_24 WHERE partner = "david martin" AND score = "4–6, 6–7 (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 was the Outcome of the game with a Score of 3–6, 4–6? ### Context: CREATE TABLE table_name_67 (outcome VARCHAR, score VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_67 WHERE score = "3–6, 4–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 was the Partner on June 17, 2012? ### Context: CREATE TABLE table_name_69 (partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_69 WHERE date = "june 17, 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 record has Glenn Robinson (16) as the leading scorer? ### Context: CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT record FROM table_name_83 WHERE leading_scorer = "glenn robinson (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: What date has 136-134 as the score? ### Context: CREATE TABLE table_name_83 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_83 WHERE score = "136-134" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What home has 136-134 as the score? ### Context: CREATE TABLE table_name_6 (home VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home FROM table_name_6 WHERE score = "136-134" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 recent year that China won a bronze? ### Context: CREATE TABLE table_name_77 (year INTEGER, bronze VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_77 WHERE bronze = "china" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the oldest year that the location was at Guangzhou? ### Context: CREATE TABLE table_name_1 (year INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_1 WHERE location = "guangzhou" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 how many years was the location at Beijing? ### Context: CREATE TABLE table_name_7 (year INTEGER, location VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_7 WHERE location = "beijing" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What location is previous to 1994? ### Context: CREATE TABLE table_name_56 (location VARCHAR, year INTEGER) [/INST] ### Response: SELECT location FROM table_name_56 WHERE year < 1994 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for? ### Context: CREATE TABLE table_name_20 (college VARCHAR, pick__number VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college FROM table_name_20 WHERE pick__number < 98 AND round = "round 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 pick number for the player(s) drafted in round 8? ### Context: CREATE TABLE table_name_31 (pick__number VARCHAR, round VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_31 WHERE round = "round 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position(s) did the player(s) with a pick number of 125 play? ### Context: CREATE TABLE table_name_38 (position VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT position FROM table_name_38 WHERE pick__number = 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 mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1? ### Context: CREATE TABLE table_name_7 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR) [/INST] ### Response: SELECT AVG(extra_points) FROM table_name_7 WHERE player = "james lawrence" AND touchdowns < 1 </s>