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 Country, when Time is 1:29.43.60? ### Context: CREATE TABLE table_name_68 (country VARCHAR, time VARCHAR) [/INST] ### Response: SELECT country FROM table_name_68 WHERE time = "1:29.43.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 lowest Place, when Points are greater than 2? ### Context: CREATE TABLE table_name_17 (place INTEGER, points INTEGER) [/INST] ### Response: SELECT MIN(place) FROM table_name_17 WHERE points > 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 team was the opponent when the result was l 0-27? ### Context: CREATE TABLE table_name_21 (opponent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_21 WHERE result = "l 0-27" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was the opponent on 09/20/1975? ### Context: CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_62 WHERE date = "09/20/1975" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game on 11/08/1975*? ### Context: CREATE TABLE table_name_43 (location VARCHAR, date VARCHAR) [/INST] ### Response: SELECT location FROM table_name_43 WHERE date = "11/08/1975*" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals? ### Context: CREATE TABLE table_name_19 (gold VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT gold FROM table_name_19 WHERE bronze > 2 AND silver = 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the latest year that Cicely Tyson is the Golden Globe Award actor? ### Context: CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_76 WHERE actor = "cicely tyson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? ### Context: CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR) [/INST] ### Response: SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Award has a date of 2002? ### Context: CREATE TABLE table_name_5 (award VARCHAR, year VARCHAR) [/INST] ### Response: SELECT award FROM table_name_5 WHERE year = 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Award was received bby the Motion Picture What's Love Got To Do With It? ### Context: CREATE TABLE table_name_97 (award VARCHAR, motion_picture VARCHAR) [/INST] ### Response: SELECT award FROM table_name_97 WHERE motion_picture = "what's love got to do with it" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest Year with Marianne Jean-Baptiste as the Golden Globe Actor? ### Context: CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_50 WHERE actor = "marianne jean-baptiste" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film was released in August 2004? ### Context: CREATE TABLE table_name_67 (title VARCHAR, date VARCHAR) [/INST] ### Response: SELECT title FROM table_name_67 WHERE date = "august 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the production cost for the film directed by 2004? ### Context: CREATE TABLE table_name_39 (production_cost VARCHAR, director VARCHAR) [/INST] ### Response: SELECT production_cost FROM table_name_39 WHERE director = "2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What film did Pen-Ek Ratanaruang direct? ### Context: CREATE TABLE table_name_62 (title VARCHAR, director VARCHAR) [/INST] ### Response: SELECT title FROM table_name_62 WHERE director = "pen-ek ratanaruang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film directed by Pen-Ek Ratanaruang released? ### Context: CREATE TABLE table_name_13 (date VARCHAR, director VARCHAR) [/INST] ### Response: SELECT date FROM table_name_13 WHERE director = "pen-ek ratanaruang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed Tequila? ### Context: CREATE TABLE table_name_50 (director VARCHAR, title VARCHAR) [/INST] ### Response: SELECT director FROM table_name_50 WHERE title = "tequila" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 left office in June 2011? ### Context: CREATE TABLE table_name_1 (name VARCHAR, left_office VARCHAR) [/INST] ### Response: SELECT name FROM table_name_1 WHERE left_office = "june 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 is the Born-Died date for the Representative of Italy? ### Context: CREATE TABLE table_name_16 (born_died VARCHAR, country VARCHAR) [/INST] ### Response: SELECT born_died FROM table_name_16 WHERE country = "italy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Representative that left office as incumbent? ### Context: CREATE TABLE table_name_29 (country VARCHAR, left_office VARCHAR) [/INST] ### Response: SELECT country FROM table_name_29 WHERE left_office = "incumbent" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Package/Option, when Language is Italian, and when Television Service is Sky Radio? ### Context: CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT package_option FROM table_name_51 WHERE language = "italian" AND television_service = "sky radio" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 HDTV, when Television Service is MTV Rocks? ### Context: CREATE TABLE table_name_21 (hdtv VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT hdtv FROM table_name_21 WHERE television_service = "mtv rocks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Television Service, when HDTV is No, and when Language is Italian? ### Context: CREATE TABLE table_name_11 (television_service VARCHAR, hdtv VARCHAR, language VARCHAR) [/INST] ### Response: SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Television Service, when Package/Option is Sky Famiglia, and when Language is Italian? ### Context: CREATE TABLE table_name_54 (television_service VARCHAR, package_option VARCHAR, language VARCHAR) [/INST] ### Response: SELECT television_service FROM table_name_54 WHERE package_option = "sky famiglia" AND language = "italian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 HDTV, when Language is English, and when Television Service is MTV Dance? ### Context: CREATE TABLE table_name_82 (hdtv VARCHAR, language VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT hdtv FROM table_name_82 WHERE language = "english" AND television_service = "mtv dance" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average 100s were there for Tim Bresnan? ### Context: CREATE TABLE table_name_51 (player VARCHAR) [/INST] ### Response: SELECT AVG(100 AS s) FROM table_name_51 WHERE player = "tim bresnan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Platforms have a Frequency of less than 2? ### Context: CREATE TABLE table_name_60 (platform VARCHAR, frequency__per_hour_ INTEGER) [/INST] ### Response: SELECT COUNT(platform) FROM table_name_60 WHERE frequency__per_hour_ < 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 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota? ### Context: CREATE TABLE table_name_93 (height__cm_ VARCHAR, birthplace VARCHAR) [/INST] ### Response: SELECT 1999 AS _2000_team FROM table_name_93 WHERE height__cm_ < 187 AND birthplace = "cloquet, minnesota" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Height (cm), when the Weight (kg) is 90? ### Context: CREATE TABLE table_name_13 (height__cm_ INTEGER, weight__kg_ VARCHAR) [/INST] ### Response: SELECT SUM(height__cm_) FROM table_name_13 WHERE weight__kg_ = 90 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Losses have a Pct of .451 and Finished 6th? ### Context: CREATE TABLE table_name_92 (losses VARCHAR, pct VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT losses FROM table_name_92 WHERE pct = ".451" AND finish = "6th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which season has Losses of 30? ### Context: CREATE TABLE table_name_65 (season VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT season FROM table_name_65 WHERE losses = "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: In which Season was the Division Washington Bullets? ### Context: CREATE TABLE table_name_4 (season VARCHAR, division VARCHAR) [/INST] ### Response: SELECT season FROM table_name_4 WHERE division = "washington bullets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which season were there Wins of 29 and a Finished place of 3rd? ### Context: CREATE TABLE table_name_10 (season VARCHAR, wins VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT season FROM table_name_10 WHERE wins = "29" AND finish = "3rd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 EASA (EU) when the notes show aoc 135? ### Context: CREATE TABLE table_name_76 (easa__eu_ VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT easa__eu_ FROM table_name_76 WHERE notes = "aoc 135" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Notes when the fleet size is 3? ### Context: CREATE TABLE table_name_39 (notes VARCHAR, fleet_size VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_39 WHERE fleet_size = 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 Fleet Size when the EASA (EU) is no? ### Context: CREATE TABLE table_name_27 (fleet_size VARCHAR, easa__eu_ VARCHAR) [/INST] ### Response: SELECT fleet_size FROM table_name_27 WHERE easa__eu_ = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: hat is the Airline when the EASA (EU) is yes? ### Context: CREATE TABLE table_name_55 (airline VARCHAR, easa__eu_ VARCHAR) [/INST] ### Response: SELECT airline FROM table_name_55 WHERE easa__eu_ = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Airline when the notes show aoc 135? ### Context: CREATE TABLE table_name_51 (airline VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT airline FROM table_name_51 WHERE notes = "aoc 135" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest Year with a Competition that is new york city marathon? ### Context: CREATE TABLE table_name_10 (year INTEGER, competition VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_10 WHERE competition = "new york city marathon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Notes with a Venue that is venice, italy? ### Context: CREATE TABLE table_name_23 (notes VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_23 WHERE venue = "venice, italy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1994, when 2002 is ATP Masters Series? ### Context: CREATE TABLE table_name_76 (Id VARCHAR) [/INST] ### Response: SELECT 1994 FROM table_name_76 WHERE 2002 = "atp masters series" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 2001, when 1987 is N/A, and when Career SR is N/A? ### Context: CREATE TABLE table_name_50 (career_sr VARCHAR) [/INST] ### Response: SELECT 2001 FROM table_name_50 WHERE 1987 = "n/a" AND career_sr = "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: What is 1989, when 1999 is F, and when 1994 is 2R? ### Context: CREATE TABLE table_name_39 (Id VARCHAR) [/INST] ### Response: SELECT 1989 FROM table_name_39 WHERE 1999 = "f" AND 1994 = "2r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R? ### Context: CREATE TABLE table_name_33 (Id VARCHAR) [/INST] ### Response: SELECT 2001 FROM table_name_33 WHERE 1990 = "a" AND 1987 = "nme" AND 1997 = "1r" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1997, when 2003 is 0 / 4? ### Context: CREATE TABLE table_name_22 (Id VARCHAR) [/INST] ### Response: SELECT 1997 FROM table_name_22 WHERE 2003 = "0 / 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5? ### Context: CREATE TABLE table_name_38 (total INTEGER, nominated_by_the_taoiseach VARCHAR, agricultural_panel VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_38 WHERE nominated_by_the_taoiseach = 0 AND agricultural_panel > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0? ### Context: CREATE TABLE table_name_90 (cultural_and_educational_panel INTEGER, industrial_and_commercial_panel VARCHAR, agricultural_panel VARCHAR) [/INST] ### Response: SELECT SUM(cultural_and_educational_panel) FROM table_name_90 WHERE industrial_and_commercial_panel = 0 AND agricultural_panel > 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 total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0? ### Context: CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR) [/INST] ### Response: SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5? ### Context: CREATE TABLE table_name_46 (labour_panel INTEGER, university_of_dublin VARCHAR, agricultural_panel VARCHAR) [/INST] ### Response: SELECT MAX(labour_panel) FROM table_name_46 WHERE university_of_dublin < 2 AND agricultural_panel > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3? ### Context: CREATE TABLE table_name_75 (university_of_dublin INTEGER, industrial_and_commercial_panel VARCHAR, national_university_of_ireland VARCHAR) [/INST] ### Response: SELECT AVG(university_of_dublin) FROM table_name_75 WHERE industrial_and_commercial_panel > 4 AND national_university_of_ireland > 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: When has a Site of tainan city and a Score of 8–6? ### Context: CREATE TABLE table_name_21 (year VARCHAR, site VARCHAR, score VARCHAR) [/INST] ### Response: SELECT year FROM table_name_21 WHERE site = "tainan city" AND score = "8–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: Which Score that has a Winning team of wei chuan dragons? ### Context: CREATE TABLE table_name_35 (score VARCHAR, winning_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_35 WHERE winning_team = "wei chuan dragons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 passengers in millions that have traveled a distance of 1271km? ### Context: CREATE TABLE table_name_37 (distance VARCHAR) [/INST] ### Response: SELECT 2011 AS _passengers__in_millions_ FROM table_name_37 WHERE distance = "1271km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 passengers in millions that have traveled a distance of 1075km? ### Context: CREATE TABLE table_name_56 (distance VARCHAR) [/INST] ### Response: SELECT COUNT(2012 AS _passengers__in_millions_) FROM table_name_56 WHERE distance = "1075km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 SECOND, when SIXTH is Victoria? ### Context: CREATE TABLE table_name_18 (second VARCHAR, sixth VARCHAR) [/INST] ### Response: SELECT second FROM table_name_18 WHERE sixth = "victoria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 SECOND, when FIRST is Western Australia? ### Context: CREATE TABLE table_name_64 (second VARCHAR, first VARCHAR) [/INST] ### Response: SELECT second FROM table_name_64 WHERE first = "western australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many losses does corinthians have when they scored over 22 points? ### Context: CREATE TABLE table_name_21 (lost VARCHAR, team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_21 WHERE team = "corinthians" 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: What was the termination type for the headphones with comfort pads and selling for $150? ### Context: CREATE TABLE table_name_2 (termination VARCHAR, earpads VARCHAR, us_msrp VARCHAR) [/INST] ### Response: SELECT termination FROM table_name_2 WHERE earpads = "comfort pads" AND us_msrp = "$150" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the earpads for the headphones that are Reference class and have MSRP of $695? ### Context: CREATE TABLE table_name_88 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR) [/INST] ### Response: SELECT earpads FROM table_name_88 WHERE headphone_class = "reference" AND us_msrp = "$695" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have? ### Context: CREATE TABLE table_name_49 (earpads VARCHAR, driver_matched_db VARCHAR, us_msrp VARCHAR) [/INST] ### Response: SELECT earpads FROM table_name_49 WHERE driver_matched_db > 0.05 AND us_msrp = "$79" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race from round 1? ### Context: CREATE TABLE table_name_90 (race_name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_90 WHERE round = 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 race was in Sydney, New South Wales? ### Context: CREATE TABLE table_name_37 (race_name VARCHAR, city_state VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_37 WHERE city_state = "sydney, new south wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit had a round larger than 5? ### Context: CREATE TABLE table_name_30 (circuit VARCHAR, round INTEGER) [/INST] ### Response: SELECT circuit FROM table_name_30 WHERE round > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the title of the story published on October 19, 2011? ### Context: CREATE TABLE table_name_42 (story VARCHAR, date VARCHAR) [/INST] ### Response: SELECT story FROM table_name_42 WHERE date = "october 19, 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 Issue number was released on August 17, 2011? ### Context: CREATE TABLE table_name_22 (issue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT issue FROM table_name_22 WHERE date = "august 17, 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 story title was included in Issue #8? ### Context: CREATE TABLE table_name_47 (story VARCHAR, issue VARCHAR) [/INST] ### Response: SELECT story FROM table_name_47 WHERE issue = "#8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which young classification has general classification of Christian Vande Velde for Team Columbia and Mark Cavendish? ### Context: CREATE TABLE table_name_26 (young_classification VARCHAR, sprint_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR) [/INST] ### Response: SELECT young_classification FROM table_name_26 WHERE general_classification = "christian vande velde" AND team_classification = "team columbia" AND sprint_classification = "mark cavendish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30? ### Context: CREATE TABLE table_name_80 (mountains_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR) [/INST] ### Response: SELECT mountains_classification FROM table_name_80 WHERE general_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner for a Sprint Classification and Young Classification to Mark Cavendish and Garmin-Chipotle-H30 for team? ### Context: CREATE TABLE table_name_42 (stage__winner_ VARCHAR, young_classification VARCHAR, sprint_classification VARCHAR, team_classification VARCHAR) [/INST] ### Response: SELECT stage__winner_ FROM table_name_42 WHERE sprint_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30" AND young_classification = "mark cavendish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome has a partner named Mark Dickson, with the opponents of Hans Gildemeister Belus Prajoux? ### Context: CREATE TABLE table_name_66 (outcome VARCHAR, partner VARCHAR, opponents_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_66 WHERE partner = "mark dickson" AND opponents_in_the_final = "hans gildemeister belus prajoux" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Format with a Catalog that is vcrd 103? ### Context: CREATE TABLE table_name_78 (format VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_78 WHERE catalog = "vcrd 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 is the Region with a Catalog that is vlmx 1087-3? ### Context: CREATE TABLE table_name_27 (region VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT region FROM table_name_27 WHERE catalog = "vlmx 1087-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 Format with a Label of electropolis and a Date that is 2002? ### Context: CREATE TABLE table_name_90 (format VARCHAR, label VARCHAR, date VARCHAR) [/INST] ### Response: SELECT format FROM table_name_90 WHERE label = "electropolis" AND date = "2002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many in the cultural and educational panel have a university of Dublin of 3 & A labor panel larger than 11? ### Context: CREATE TABLE table_name_41 (cultural_and_educational_panel VARCHAR, university_of_dublin VARCHAR, labour_panel VARCHAR) [/INST] ### Response: SELECT COUNT(cultural_and_educational_panel) FROM table_name_41 WHERE university_of_dublin = 3 AND labour_panel > 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 Margin, when Match Date is Oct 17, 2007? ### Context: CREATE TABLE table_name_86 (margin VARCHAR, match_date VARCHAR) [/INST] ### Response: SELECT margin FROM table_name_86 WHERE match_date = "oct 17, 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 Team (B), when S No is greater than 17? ### Context: CREATE TABLE table_name_10 (team__b_ VARCHAR, s_no INTEGER) [/INST] ### Response: SELECT team__b_ FROM table_name_10 WHERE s_no > 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: What is the total number of S No(s), when the Margin is 16 runs? ### Context: CREATE TABLE table_name_88 (s_no VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 S No, when the Match Date is Nov 1, 2003? ### Context: CREATE TABLE table_name_8 (s_no INTEGER, match_date VARCHAR) [/INST] ### Response: SELECT MAX(s_no) FROM table_name_8 WHERE match_date = "nov 1, 2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Team (B), when S No is less than 18, when Margin is 8 Wickets, and when Match Date is Oct 30, 1989? ### Context: CREATE TABLE table_name_31 (team__b_ VARCHAR, match_date VARCHAR, s_no VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT team__b_ FROM table_name_31 WHERE s_no < 18 AND margin = "8 wickets" AND match_date = "oct 30, 1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 last time, since December 14, 1986, that the attendance was lower than 47,096? ### Context: CREATE TABLE table_name_51 (week INTEGER, date VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_51 WHERE date = "december 14, 1986" AND attendance < 47 OFFSET 096 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface of indoor/carpet Outcome on 13 October 1996 ### Context: CREATE TABLE table_name_33 (outcome VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_33 WHERE surface = "indoor/carpet" AND date = "13 october 1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the Outcome for the Tournament of Johannesburg, South Africa ### Context: CREATE TABLE table_name_5 (outcome VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_5 WHERE tournament = "johannesburg, 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 launch site of the delta iv rocket? ### Context: CREATE TABLE table_name_26 (launch_site VARCHAR, rocket VARCHAR) [/INST] ### Response: SELECT launch_site FROM table_name_26 WHERE rocket = "delta iv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of the gps iif-10 satellite with an unknown date? ### Context: CREATE TABLE table_name_13 (type VARCHAR, date VARCHAR, satellite VARCHAR) [/INST] ### Response: SELECT type FROM table_name_13 WHERE date = "unknown" AND satellite = "gps iif-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 is the type of the gps iif-10 satellite? ### Context: CREATE TABLE table_name_38 (type VARCHAR, satellite VARCHAR) [/INST] ### Response: SELECT type FROM table_name_38 WHERE satellite = "gps iif-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 is the launch site of the delta iv rocket with an unknown date and a gps iif-10 satellite? ### Context: CREATE TABLE table_name_86 (launch_site VARCHAR, satellite VARCHAR, date VARCHAR, rocket VARCHAR) [/INST] ### Response: SELECT launch_site FROM table_name_86 WHERE date = "unknown" AND rocket = "delta iv" AND satellite = "gps iif-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 is the date of the gps iif-7 satellite? ### Context: CREATE TABLE table_name_48 (date VARCHAR, satellite VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE satellite = "gps iif-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 finish for 1992? ### Context: CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_89 WHERE year = 1992 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Andretti's finish for the year he had a Buick engine and started 16th? ### Context: CREATE TABLE table_name_50 (finish VARCHAR, engine VARCHAR, start VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_50 WHERE engine = "buick" AND start = "16th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Andretti's finish the year he started 16th with a Buick engine? ### Context: CREATE TABLE table_name_62 (finish VARCHAR, engine VARCHAR, start VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_62 WHERE engine = "buick" AND start = "16th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Drawn has a Points of 6, and a Against larger than 16? ### Context: CREATE TABLE table_name_17 (drawn INTEGER, points VARCHAR, against VARCHAR) [/INST] ### Response: SELECT SUM(drawn) FROM table_name_17 WHERE points = 6 AND against > 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: Which Points has a Difference of 3, and a Played smaller than 10? ### Context: CREATE TABLE table_name_80 (points INTEGER, difference VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_80 WHERE difference = "3" AND played < 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: Which Points has a Team of são paulo athletic, and a Position larger than 5? ### Context: CREATE TABLE table_name_15 (points INTEGER, team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_15 WHERE team = "são paulo athletic" AND position > 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: Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0? ### Context: CREATE TABLE table_name_95 (position INTEGER, drawn VARCHAR, played VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(position) FROM table_name_95 WHERE played > 9 AND points < 11 AND drawn < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What track has a catalogue of 47-9465? ### Context: CREATE TABLE table_name_21 (track INTEGER, catalogue VARCHAR) [/INST] ### Response: SELECT SUM(track) FROM table_name_21 WHERE catalogue = "47-9465" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What track has a time of 2:30? ### Context: CREATE TABLE table_name_23 (track VARCHAR, time VARCHAR) [/INST] ### Response: SELECT track FROM table_name_23 WHERE time = "2:30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What catalogue was recorded on 9/10/67 and a release date of 1/9/68? ### Context: CREATE TABLE table_name_77 (catalogue VARCHAR, recorded VARCHAR, release_date VARCHAR) [/INST] ### Response: SELECT catalogue FROM table_name_77 WHERE recorded = "9/10/67" AND release_date = "1/9/68" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where does Norway rank in total medals among countries with fewer than 7 bronzes? ### Context: CREATE TABLE table_name_96 (rank VARCHAR, bronze VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_96 WHERE bronze < 7 AND nation = "norway" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Inns of 435 Runs? ### Context: CREATE TABLE table_name_80 (inns VARCHAR, runs VARCHAR) [/INST] ### Response: SELECT inns FROM table_name_80 WHERE runs = 435 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st place with a Rank that is larger than 10? ### Context: CREATE TABLE table_name_26 (rank INTEGER) [/INST] ### Response: SELECT AVG(1 AS st_place) FROM table_name_26 WHERE rank > 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 week was the Runner-up Lori McNeil? ### Context: CREATE TABLE table_name_70 (week_of VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT week_of FROM table_name_70 WHERE runner_up = "lori mcneil" </s>