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 was the attendance at the post-week 7 game against the San Diego Chargers? ### Context: CREATE TABLE table_name_53 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Competition on July 7? ### Context: CREATE TABLE table_name_68 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_68 WHERE date = "july 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: At what Location in Round 3 is the Score 1-1? ### Context: CREATE TABLE table_name_12 (location VARCHAR, round VARCHAR, score VARCHAR) [/INST] ### Response: SELECT location FROM table_name_12 WHERE round = "round 3" AND score = "1-1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score of the competition on October 25? ### Context: CREATE TABLE table_name_47 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_47 WHERE date = "october 25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is 2nd Party, when Election is "1885"? ### Context: CREATE TABLE table_name_11 (election VARCHAR) [/INST] ### Response: SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1885" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Area (msr) that has an Area less than 291.045, is part of the Per family, and has a rank higher than 78? ### Context: CREATE TABLE table_name_70 (area__msr_ INTEGER, rank VARCHAR, area__sqdeg_ VARCHAR, family VARCHAR) [/INST] ### Response: SELECT MAX(area__msr_) FROM table_name_70 WHERE area__sqdeg_ < 291.045 AND family = "per" AND rank > 78 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of Areas (sq.deg) that have an Area (msr) of 43.059 and a Right ascension (hm) larger than 747.73? ### Context: CREATE TABLE table_name_47 (area__sqdeg_ INTEGER, area__msr_ VARCHAR, right_ascension__hm_ VARCHAR) [/INST] ### Response: SELECT SUM(area__sqdeg_) FROM table_name_47 WHERE area__msr_ = 43.059 AND right_ascension__hm_ > 747.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: What's the total time for the summer universiade competition? ### Context: CREATE TABLE table_name_82 (time VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT COUNT(time) FROM table_name_82 WHERE competition = "summer universiade" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the highest time for the 1995 200 metres event? ### Context: CREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR) [/INST] ### Response: SELECT MAX(time) FROM table_name_31 WHERE year = 1995 AND event = "200 metres" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a time over 38.61 at the gothenburg venue? ### Context: CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a time less than 40.2 at the rome venue? ### Context: CREATE TABLE table_name_69 (position VARCHAR, venue VARCHAR, time VARCHAR) [/INST] ### Response: SELECT position FROM table_name_69 WHERE venue = "rome" AND time < 40.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 most Bronze medals won among the participants that won less than 22 medals overall and less than 5 silver medals? ### Context: CREATE TABLE table_name_5 (bronze INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_5 WHERE total < 22 AND silver < 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: How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals? ### Context: CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average number of gold medals won among participants that won less than 13 silver, less than 8 bronze, and more than 18 medals overall? ### Context: CREATE TABLE table_name_99 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_99 WHERE silver < 13 AND total > 18 AND bronze < 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 is the number range for the T 3 class? ### Context: CREATE TABLE table_name_88 (number_range VARCHAR, class VARCHAR) [/INST] ### Response: SELECT number_range FROM table_name_88 WHERE class = "t 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 2009 has 52-75 as the 2010? ### Context: CREATE TABLE table_name_19 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_19 WHERE 2010 = "52-75" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 2008 has 2013 for the year 2013? ### Context: CREATE TABLE table_name_37 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_37 WHERE "2013" = "2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 2009 has 39th as the 2011? ### Context: CREATE TABLE table_name_45 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_45 WHERE 2011 = "39th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 specimens does the SANT institution have? ### Context: CREATE TABLE table_name_1 (no_specimens INTEGER, abbr VARCHAR) [/INST] ### Response: SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is the Universidad de Santiago de Compostela located? ### Context: CREATE TABLE table_name_37 (city VARCHAR, name VARCHAR) [/INST] ### Response: SELECT city FROM table_name_37 WHERE name = "universidad de santiago de compostela" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is MUB located? ### Context: CREATE TABLE table_name_29 (city VARCHAR, abbr VARCHAR) [/INST] ### Response: SELECT city FROM table_name_29 WHERE abbr = "mub" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st Party has an Election of 1893 by-election? ### Context: CREATE TABLE table_name_10 (election VARCHAR) [/INST] ### Response: SELECT 1 AS st_party FROM table_name_10 WHERE election = "1893 by-election" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st Member has an Election of 1895? ### Context: CREATE TABLE table_name_23 (election VARCHAR) [/INST] ### Response: SELECT 1 AS st_member FROM table_name_23 WHERE election = "1895" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1999 has 2000 as the year-end championship? ### Context: CREATE TABLE table_name_40 (Id VARCHAR) [/INST] ### Response: SELECT 1999 FROM table_name_40 WHERE 2000 = "year-end championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1997 has sf as the 2002? ### Context: CREATE TABLE table_name_74 (Id VARCHAR) [/INST] ### Response: SELECT 1997 FROM table_name_74 WHERE 2002 = "sf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament has 1r as the 2011? ### Context: CREATE TABLE table_name_12 (tournament VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_12 WHERE 2011 = "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 2009 has 3r as the 1999, and w as 2002? ### Context: CREATE TABLE table_name_40 (Id VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_40 WHERE 1999 = "3r" AND 2002 = "w" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mass, when Designation is Prognoz 2? ### Context: CREATE TABLE table_name_54 (mass VARCHAR, designation VARCHAR) [/INST] ### Response: SELECT mass FROM table_name_54 WHERE designation = "prognoz 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 Mass, when Launch Date/Time ( GMT ) is 25 November 1976, 03:59? ### Context: CREATE TABLE table_name_29 (mass VARCHAR, launch_date_time___gmt__ VARCHAR) [/INST] ### Response: SELECT mass FROM table_name_29 WHERE launch_date_time___gmt__ = "25 november 1976, 03:59" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Apogee, when Inclination is 65°, and when Launch Date/Time is ( GMT ) is 15 February 1973, 01:11? ### Context: CREATE TABLE table_name_48 (apogee VARCHAR, inclination VARCHAR, launch_date_time___gmt__ VARCHAR) [/INST] ### Response: SELECT apogee FROM table_name_48 WHERE inclination = "65°" AND launch_date_time___gmt__ = "15 february 1973, 01: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 Apogee, when Designation is Prognoz 6? ### Context: CREATE TABLE table_name_9 (apogee VARCHAR, designation VARCHAR) [/INST] ### Response: SELECT apogee FROM table_name_9 WHERE designation = "prognoz 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Designation, when Launch Date/Time ( GMT ) is 29 June 1972, 03:47? ### Context: CREATE TABLE table_name_73 (designation VARCHAR, launch_date_time___gmt__ VARCHAR) [/INST] ### Response: SELECT designation FROM table_name_73 WHERE launch_date_time___gmt__ = "29 june 1972, 03:47" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Elimination for Candice? ### Context: CREATE TABLE table_name_96 (elimination VARCHAR, wrestler VARCHAR) [/INST] ### Response: SELECT elimination FROM table_name_96 WHERE wrestler = "candice" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Wrestler has an Elimination of 7? ### Context: CREATE TABLE table_name_6 (wrestler VARCHAR, elimination VARCHAR) [/INST] ### Response: SELECT wrestler FROM table_name_6 WHERE elimination = "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 Natalya's Time? ### Context: CREATE TABLE table_name_86 (time VARCHAR, wrestler VARCHAR) [/INST] ### Response: SELECT time FROM table_name_86 WHERE wrestler = "natalya" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Maria's Elimination Move? ### Context: CREATE TABLE table_name_88 (elimination VARCHAR, wrestler VARCHAR) [/INST] ### Response: SELECT elimination AS Move FROM table_name_88 WHERE wrestler = "maria" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 area was there a score of 68? ### Context: CREATE TABLE table_name_42 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_42 WHERE score = 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: Which player had a position of t1 and played in the united states? ### Context: CREATE TABLE table_name_49 (player VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_49 WHERE place = "t1" AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What person had an opponent of linda wessberg and scored an average score? ### Context: CREATE TABLE table_name_4 (score INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(score) FROM table_name_4 WHERE player = "linda wessberg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest total for Italy when the latest win is 1950? ### Context: CREATE TABLE table_name_43 (total INTEGER, nationality VARCHAR, latest_win VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_43 WHERE nationality = "italy" AND latest_win = 1950 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 results for the incumbent from Iowa 2 district? ### Context: CREATE TABLE table_name_12 (results VARCHAR, district VARCHAR) [/INST] ### Response: SELECT results FROM table_name_12 WHERE district = "iowa 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the incumbent that has been in office since before 1996 and was again re-elected? ### Context: CREATE TABLE table_name_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_90 WHERE results = "re-elected" AND first_elected < 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: From which party is the incumbent who was first elected to office in 1990? ### Context: CREATE TABLE table_name_8 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_name_8 WHERE first_elected = 1990 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Democratic incumbent that was re-elected first take office? ### Context: CREATE TABLE table_name_52 (first_elected VARCHAR, results VARCHAR, party VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_name_52 WHERE results = "re-elected" AND party = "democratic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year built of kyrkjebø? ### Context: CREATE TABLE table_name_20 (year_built INTEGER, sub_parish__sogn_ VARCHAR) [/INST] ### Response: SELECT AVG(year_built) FROM table_name_20 WHERE sub_parish__sogn_ = "kyrkjebø" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 SUB-PARISH WITH A YEAR AFTER 1916, IN ortnevik? ### Context: CREATE TABLE table_name_41 (sub_parish__sogn_ VARCHAR, year_built VARCHAR, location_of_the_church VARCHAR) [/INST] ### Response: SELECT sub_parish__sogn_ FROM table_name_41 WHERE year_built > 1916 AND location_of_the_church = "ortnevik" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par of the Player who won in 1936? ### Context: CREATE TABLE table_name_45 (to_par VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_45 WHERE year_s__won = "1936" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player who won in 1931? ### Context: CREATE TABLE table_name_88 (player VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT player FROM table_name_88 WHERE year_s__won = "1931" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player who won in 1922, 1932? ### Context: CREATE TABLE table_name_44 (total INTEGER, year_s__won VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player who won in 1936? ### Context: CREATE TABLE table_name_66 (total VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_66 WHERE year_s__won = "1936" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finish of the Player with a To par of 23 of less and Total of 294? ### Context: CREATE TABLE table_name_91 (finish VARCHAR, to_par VARCHAR, total VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_91 WHERE to_par < 23 AND total = 294 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What season has a Level of 2nd, 29 points? ### Context: CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR) [/INST] ### Response: SELECT season FROM table_name_84 WHERE level = "2nd" AND points = 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 number of points when goals were 29–30? ### Context: CREATE TABLE table_name_98 (points INTEGER, goals VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_98 WHERE goals = "29–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 is the level when points are larger than 25, and goals are 64–31? ### Context: CREATE TABLE table_name_43 (level VARCHAR, points VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT level FROM table_name_43 WHERE points > 25 AND goals = "64–31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Engine 2.5 20v d has what engine code? ### Context: CREATE TABLE table_name_46 (engine VARCHAR) [/INST] ### Response: SELECT engine AS code FROM table_name_46 WHERE engine = "2.5 20v d" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Engine 2.3 16v has how many cylinders? ### Context: CREATE TABLE table_name_1 (cyl VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT cyl FROM table_name_1 WHERE engine = "2.3 16v" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an Opponent of milwaukee bucks? ### Context: CREATE TABLE table_name_93 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_93 WHERE opponent = "milwaukee bucks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location/Attendance of ford center, a Game larger than 30, and a Score of 87–79? ### Context: CREATE TABLE table_name_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR) [/INST] ### Response: SELECT record FROM table_name_51 WHERE location_attendance = "ford center" AND game > 30 AND score = "87–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: Which Game has an Opponent of @ houston rockets? ### Context: CREATE TABLE table_name_22 (game INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MIN(game) FROM table_name_22 WHERE opponent = "@ houston rockets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Streak has a Score of 98–109? ### Context: CREATE TABLE table_name_27 (streak VARCHAR, score VARCHAR) [/INST] ### Response: SELECT streak FROM table_name_27 WHERE score = "98–109" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Game has an Opponent of @ washington wizards? ### Context: CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT game FROM table_name_13 WHERE opponent = "@ washington wizards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Streak has a Record of 21–22? ### Context: CREATE TABLE table_name_9 (streak VARCHAR, record VARCHAR) [/INST] ### Response: SELECT streak FROM table_name_9 WHERE record = "21–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 outcome on 11 October 2009, when his partner was Jordan Kerr? ### Context: CREATE TABLE table_name_72 (outcome VARCHAR, partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_72 WHERE partner = "jordan kerr" AND date = "11 october 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did he play with Stephen Huss on 31 October 2010? ### Context: CREATE TABLE table_name_32 (surface VARCHAR, partner VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_32 WHERE partner = "stephen huss" AND date = "31 october 2010" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's was the 2008 during the Year End Ranking? ### Context: CREATE TABLE table_name_44 (tournament VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_44 WHERE tournament = "year end ranking" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the 2010 when Q2 happened in 2011? ### Context: CREATE TABLE table_name_45 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_45 WHERE 2011 = "q2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the 2008 when 1R happened in 2009? ### Context: CREATE TABLE table_name_5 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_5 WHERE 2009 = "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 the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is "Flying Dutchman"? ### Context: CREATE TABLE table_name_80 (olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR) [/INST] ### Response: SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 associated with the date in 2003? ### Context: CREATE TABLE table_name_34 (country VARCHAR, date VARCHAR) [/INST] ### Response: SELECT country FROM table_name_34 WHERE date = "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 the format for UK catalog S 63795? ### Context: CREATE TABLE table_name_90 (format VARCHAR, country VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_90 WHERE country = "uk" AND catalog = "s 63795" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for US catalog CK 9942? ### Context: CREATE TABLE table_name_4 (date VARCHAR, country VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT date FROM table_name_4 WHERE country = "us" AND catalog = "ck 9942" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label for catalog EMB 31956? ### Context: CREATE TABLE table_name_14 (label VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT label FROM table_name_14 WHERE catalog = "emb 31956" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for CBS label? ### Context: CREATE TABLE table_name_48 (date VARCHAR, label VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE label = "cbs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is constituency number 16? ### Context: CREATE TABLE table_name_57 (name VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT name FROM table_name_57 WHERE constituency_number = "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 Elevator has Elevated of april 12, 1281, a Nationality of french, and an Elector of jean cholet? ### Context: CREATE TABLE table_name_89 (elevator VARCHAR, elector VARCHAR, elevated VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT elevator FROM table_name_89 WHERE elevated = "april 12, 1281" AND nationality = "french" AND elector = "jean cholet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elevated has an Elector of matteo orsini rosso? ### Context: CREATE TABLE table_name_23 (elevated VARCHAR, elector VARCHAR) [/INST] ### Response: SELECT elevated FROM table_name_23 WHERE elector = "matteo orsini rosso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elector has a Title of s. cecilia? ### Context: CREATE TABLE table_name_1 (elector VARCHAR, title VARCHAR) [/INST] ### Response: SELECT elector FROM table_name_1 WHERE title = "title of s. cecilia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elevator has a Title of bishop of palestrina? ### Context: CREATE TABLE table_name_29 (elevator VARCHAR, title VARCHAR) [/INST] ### Response: SELECT elevator FROM table_name_29 WHERE title = "bishop of palestrina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Order has a Nationality of ese milan? ### Context: CREATE TABLE table_name_68 (order VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT order FROM table_name_68 WHERE nationality = "ese milan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Elector has an Order of cardinal-priest, and a Nationality of french? ### Context: CREATE TABLE table_name_74 (elector VARCHAR, order VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT elector FROM table_name_74 WHERE order = "cardinal-priest" AND nationality = "french" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 foundeds have sousse as the city, with a capacity greater than 25,000? ### Context: CREATE TABLE table_name_25 (founded VARCHAR, city VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT COUNT(founded) FROM table_name_25 WHERE city = "sousse" AND capacity > 25 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest founded that has bizerte athletic f.c. as the club? ### Context: CREATE TABLE table_name_42 (founded INTEGER, club VARCHAR) [/INST] ### Response: SELECT MIN(founded) FROM table_name_42 WHERE club = "bizerte athletic f.c." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many foundeds have stade tunisien as the club, with a capacity greater than 18,000? ### Context: CREATE TABLE table_name_6 (founded INTEGER, club VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT SUM(founded) FROM table_name_6 WHERE club = "stade tunisien" AND capacity > 18 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much capacity has 1944 as the founded? ### Context: CREATE TABLE table_name_84 (capacity VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT COUNT(capacity) FROM table_name_84 WHERE founded = 1944 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games, when Losses is greater than 6, when Club is "Club Sportif Sfaxien", and when Wins is less than 3? ### Context: CREATE TABLE table_name_58 (games VARCHAR, wins VARCHAR, losses VARCHAR, club VARCHAR) [/INST] ### Response: SELECT COUNT(games) FROM table_name_58 WHERE losses > 6 AND club = "club sportif sfaxien" AND wins < 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 lowest Games, when Wins is less than 1, and when Draws is greater than 1? ### Context: CREATE TABLE table_name_40 (games INTEGER, wins VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT MIN(games) FROM table_name_40 WHERE wins < 1 AND draws > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Draws, when Losses is greater than 9, and when Wins is greater than 9? ### Context: CREATE TABLE table_name_70 (draws INTEGER, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(draws) FROM table_name_70 WHERE losses > 9 AND wins > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2011 entry for the row with a 2007 entry of 558? ### Context: CREATE TABLE table_name_36 (Id VARCHAR) [/INST] ### Response: SELECT 2011 FROM table_name_36 WHERE 2007 = "558" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 entry for the row that has a 2009 entry of 270? ### Context: CREATE TABLE table_name_35 (Id VARCHAR) [/INST] ### Response: SELECT 2010 FROM table_name_35 WHERE 2009 = "270" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009 entry for the row that has a 2007 entry of A and a tournament entry of US Open? ### Context: CREATE TABLE table_name_94 (tournament VARCHAR) [/INST] ### Response: SELECT 2009 FROM table_name_94 WHERE 2007 = "a" AND tournament = "us open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2008 entry for the row that as a 2011 entry of 1R? ### Context: CREATE TABLE table_name_32 (Id VARCHAR) [/INST] ### Response: SELECT 2008 FROM table_name_32 WHERE 2011 = "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 the To par for Lanny Wadkins? ### Context: CREATE TABLE table_name_99 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_99 WHERE player = "lanny wadkins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Australia's highest total? ### Context: CREATE TABLE table_name_86 (total INTEGER, country VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_86 WHERE country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country has a to par larger than 5 and a player John Mahaffey? ### Context: CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Total has a Year(s) won of 1991? ### Context: CREATE TABLE table_name_9 (total INTEGER, year_s__won VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_9 WHERE year_s__won = "1991" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Year(s) won with a To par of 12? ### Context: CREATE TABLE table_name_84 (year_s__won VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_84 WHERE to_par = 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which To par has a Player of jack nicklaus, and a Total smaller than 146? ### Context: CREATE TABLE table_name_63 (to_par INTEGER, player VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(to_par) FROM table_name_63 WHERE player = "jack nicklaus" AND total < 146 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation? ### Context: CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR) [/INST] ### Response: SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 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 maximum points for higher when the points for foundation is less than 0? ### Context: CREATE TABLE table_name_66 (points_for_higher INTEGER, points_for_foundation INTEGER) [/INST] ### Response: SELECT MAX(points_for_higher) FROM table_name_66 WHERE points_for_foundation < 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: With 10 as the points for foundation, what is the maximum points for ordinary? ### Context: CREATE TABLE table_name_97 (points_for_ordinary INTEGER, points_for_foundation VARCHAR) [/INST] ### Response: SELECT MAX(points_for_ordinary) FROM table_name_97 WHERE points_for_foundation = 10 </s>