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 results of the 71st Academy Awards show? ### Context: CREATE TABLE table_name_66 (results VARCHAR, awards_show VARCHAR) [/INST] ### Response: SELECT results FROM table_name_66 WHERE awards_show = "71st academy awards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city in Alabama that opened in 1996? ### Context: CREATE TABLE table_name_89 (city VARCHAR, year_opened VARCHAR, state VARCHAR) [/INST] ### Response: SELECT city FROM table_name_89 WHERE year_opened = "1996" AND state = "alabama" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for 1903? ### Context: CREATE TABLE table_name_75 (capacity INTEGER, year_opened VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_75 WHERE year_opened = "1903" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year opened for North Carolina with a smaller than 21,500 capacity? ### Context: CREATE TABLE table_name_50 (year_opened VARCHAR, state VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT year_opened FROM table_name_50 WHERE state = "north carolina" AND capacity < 21 OFFSET 500 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rank for the year opened in 1959 in Pennsylvania? ### Context: CREATE TABLE table_name_83 (rank VARCHAR, year_opened VARCHAR, state VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_83 WHERE year_opened = "1959" AND state = "pennsylvania" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years were lightweight class on february 28, 2009? ### Context: CREATE TABLE table_name_87 (year VARCHAR, weight_class VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_87 WHERE weight_class = "lightweight" AND date = "february 28, 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: How many weeks have a Result of t 10-10? ### Context: CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-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 Date has a Week smaller than 8, and an Opponent of atlanta falcons? ### Context: CREATE TABLE table_name_31 (date VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_31 WHERE week < 8 AND opponent = "atlanta falcons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result has an Opponent of minnesota vikings? ### Context: CREATE TABLE table_name_85 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_85 WHERE opponent = "minnesota vikings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger? ### Context: CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 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 Place of the half marathon Event? ### Context: CREATE TABLE table_name_88 (place VARCHAR, event VARCHAR) [/INST] ### Response: SELECT place FROM table_name_88 WHERE event = "half 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 Place of the Event on August 25, 2007? ### Context: CREATE TABLE table_name_18 (place VARCHAR, date VARCHAR) [/INST] ### Response: SELECT place FROM table_name_18 WHERE date = "august 25, 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Country of the Half Marathon Event? ### Context: CREATE TABLE table_name_97 (country VARCHAR, event VARCHAR) [/INST] ### Response: SELECT country FROM table_name_97 WHERE event = "half 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 Country of the 10,000m Event? ### Context: CREATE TABLE table_name_39 (country VARCHAR, event VARCHAR) [/INST] ### Response: SELECT country FROM table_name_39 WHERE event = "10,000m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event labeled Country of (local competition)? ### Context: CREATE TABLE table_name_69 (event VARCHAR, country VARCHAR) [/INST] ### Response: SELECT event FROM table_name_69 WHERE country = "(local competition)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event with a Time of 2:23:47? ### Context: CREATE TABLE table_name_23 (date VARCHAR, time VARCHAR) [/INST] ### Response: SELECT date FROM table_name_23 WHERE time = "2:23: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 rank of the time of 6:30.53? ### Context: CREATE TABLE table_name_89 (rank VARCHAR, time VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_89 WHERE time = "6:30.53" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of the rowers that the time was 6:24.61? ### Context: CREATE TABLE table_name_70 (rowers VARCHAR, time VARCHAR) [/INST] ### Response: SELECT rowers FROM table_name_70 WHERE time = "6:24.61" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank smaller than 6, a time of 6:32.32 and notes of FB? ### Context: CREATE TABLE table_name_45 (country VARCHAR, time VARCHAR, rank VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT country FROM table_name_45 WHERE rank < 6 AND notes = "fb" AND time = "6:32.32" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which actor played on Home and Away for 20 years? ### Context: CREATE TABLE table_name_21 (actor VARCHAR, duration VARCHAR, soap_opera VARCHAR) [/INST] ### Response: SELECT actor FROM table_name_21 WHERE duration = "20 years" AND soap_opera = "home and away" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What character was portrayed by the same actor for 12 years on Neighbours? ### Context: CREATE TABLE table_name_64 (character VARCHAR, duration VARCHAR, soap_opera VARCHAR) [/INST] ### Response: SELECT character FROM table_name_64 WHERE duration = "12 years" AND soap_opera = "neighbours" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How long did Joyce Jacobs portray her character on her show? ### Context: CREATE TABLE table_name_83 (duration VARCHAR, actor VARCHAR) [/INST] ### Response: SELECT duration FROM table_name_83 WHERE actor = "joyce jacobs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 actor played Harold Bishop for 17 years? ### Context: CREATE TABLE table_name_85 (actor VARCHAR, duration VARCHAR, character VARCHAR) [/INST] ### Response: SELECT actor FROM table_name_85 WHERE duration = "17 years" AND character = "harold bishop" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did Martin Sacks work on a soap opera? ### Context: CREATE TABLE table_name_98 (years VARCHAR, actor VARCHAR) [/INST] ### Response: SELECT years FROM table_name_98 WHERE actor = "martin sacks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Arena when there were 65 points? ### Context: CREATE TABLE table_name_84 (arena VARCHAR, points VARCHAR) [/INST] ### Response: SELECT arena FROM table_name_84 WHERE points = "65" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record when the score was 2–0? ### Context: CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_45 WHERE score = "2–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 were the points on February 10? ### Context: CREATE TABLE table_name_15 (points VARCHAR, date VARCHAR) [/INST] ### Response: SELECT points FROM table_name_15 WHERE date = "february 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 record at Palasport Olimpico? ### Context: CREATE TABLE table_name_78 (record VARCHAR, arena VARCHAR) [/INST] ### Response: SELECT record FROM table_name_78 WHERE arena = "palasport olimpico" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points when the score was 3–1, and record was 25–19–11? ### Context: CREATE TABLE table_name_52 (points VARCHAR, score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT points FROM table_name_52 WHERE score = "3–1" AND record = "25–19–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 record at Arrowhead Pond of Anaheim, when the loss was Bryzgalov (10–11–1)? ### Context: CREATE TABLE table_name_53 (record VARCHAR, arena VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_53 WHERE arena = "arrowhead pond of anaheim" AND loss = "bryzgalov (10–11–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 finishing time with a 2/1q finish on the Meadowlands track? ### Context: CREATE TABLE table_name_10 (fin_time VARCHAR, finish VARCHAR, track VARCHAR) [/INST] ### Response: SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last 1/4 for the QUA race with a finishing time of 2:03.1? ### Context: CREATE TABLE table_name_22 (last_1_4 VARCHAR, race VARCHAR, fin_time VARCHAR) [/INST] ### Response: SELECT last_1_4 FROM table_name_22 WHERE race = "qua" AND fin_time = "2:03.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: How many ranks have 1:01.14.62 as the time, with michael russell as the rider? ### Context: CREATE TABLE table_name_98 (rank VARCHAR, time VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_98 WHERE time = "1:01.14.62" AND rider = "michael russell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What time has phil mcgurk as the rider? ### Context: CREATE TABLE table_name_34 (time VARCHAR, rider VARCHAR) [/INST] ### Response: SELECT time FROM table_name_34 WHERE rider = "phil mcgurk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ranks have michael russell as the rider? ### Context: CREATE TABLE table_name_71 (rank INTEGER, rider VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_71 WHERE rider = "michael russell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many goals were conceded by the team with more than 21 points more than 5 draws and less than 18 games played? ### Context: CREATE TABLE table_name_81 (goals_conceded INTEGER, played VARCHAR, draw VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(goals_conceded) FROM table_name_81 WHERE draw > 5 AND points > 21 AND played < 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many goals were conceded by teams with 32 points, more than 2 losses and more than 22 goals scored? ### Context: CREATE TABLE table_name_75 (goals_conceded VARCHAR, goals_scored VARCHAR, points VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(goals_conceded) FROM table_name_75 WHERE points = 32 AND lost > 2 AND goals_scored > 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: How many points did the team have that conceded 41 goals and finish in a place larger than 10? ### Context: CREATE TABLE table_name_25 (points VARCHAR, goals_conceded VARCHAR, place VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_25 WHERE goals_conceded = 41 AND place > 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: Who was the opponent in week 13? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_25 WHERE week = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What location has kingsmen as the mascot? ### Context: CREATE TABLE table_name_48 (location VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT location FROM table_name_48 WHERE mascot = "kingsmen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What IHSAA Football Class has 20 elkhart as the county? ### Context: CREATE TABLE table_name_39 (ihsaa_football_class VARCHAR, county VARCHAR) [/INST] ### Response: SELECT ihsaa_football_class FROM table_name_39 WHERE county = "20 elkhart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school has south bend as the location, with indians as the mascot? ### Context: CREATE TABLE table_name_32 (school VARCHAR, location VARCHAR, mascot VARCHAR) [/INST] ### Response: SELECT school FROM table_name_32 WHERE location = "south bend" AND mascot = "indians" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that the position is less than 1? ### Context: CREATE TABLE table_name_31 (total INTEGER, position INTEGER) [/INST] ### Response: SELECT MIN(total) FROM table_name_31 WHERE position < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the B Score when the total is 16.125 and the position is less than 7? ### Context: CREATE TABLE table_name_10 (b_score INTEGER, position VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = 16.125 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the total rating that had a score higher than 7 and a b score smaller than 8.65? ### Context: CREATE TABLE table_name_87 (total INTEGER, a_score VARCHAR, b_score VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_87 WHERE a_score > 7 AND b_score < 8.65 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gymnast had a b score of 8.95 and an a score less than 6.9 ### Context: CREATE TABLE table_name_94 (gymnast VARCHAR, b_score VARCHAR, a_score VARCHAR) [/INST] ### Response: SELECT gymnast FROM table_name_94 WHERE b_score = 8.95 AND a_score < 6.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: Who were the winners in 1998? ### Context: CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winners FROM table_name_11 WHERE year = 1998 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the runner-up Portugal with Italy in third place, and the gold keeper Nuno Hidalgo? ### Context: CREATE TABLE table_name_5 (year INTEGER, best_goalkeeper VARCHAR, runner_up VARCHAR, third_place VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_5 WHERE runner_up = "portugal" AND third_place = "italy" AND best_goalkeeper = "nuno hidalgo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college pick for 213? ### Context: CREATE TABLE table_name_23 (college VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT college FROM table_name_23 WHERE pick = 213 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the round on 21 february 2009? ### Context: CREATE TABLE table_name_54 (round VARCHAR, date VARCHAR) [/INST] ### Response: SELECT round FROM table_name_54 WHERE date = "21 february 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: What is the highest enrollment for rochester community school? ### Context: CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR) [/INST] ### Response: SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment that has hot dogs as the mascot, with a year joined later than 1926? ### Context: CREATE TABLE table_name_38 (enrollment INTEGER, mascot VARCHAR, year_joined VARCHAR) [/INST] ### Response: SELECT AVG(enrollment) FROM table_name_38 WHERE mascot = "hot dogs" AND year_joined > 1926 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment that has Lafayette as the location? ### Context: CREATE TABLE table_name_46 (enrollment INTEGER, location VARCHAR) [/INST] ### Response: SELECT MIN(enrollment) FROM table_name_46 WHERE location = "lafayette" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up in the 2006 Pacific Life Open? ### Context: CREATE TABLE table_name_62 (runner_up VARCHAR, name VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Class has a Quantity made of 29? ### Context: CREATE TABLE table_name_66 (class VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT class FROM table_name_66 WHERE quantity_made = "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 Theme Song of the Yukan Club? ### Context: CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR) [/INST] ### Response: SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Theme Song of 働きマン? ### Context: CREATE TABLE table_name_5 (theme_song_s_ VARCHAR, japanese_title VARCHAR) [/INST] ### Response: SELECT theme_song_s_ FROM table_name_5 WHERE japanese_title = "働きマン" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Theme Song of the show on Fuji TV Station with Average Ratings of 16.65%? ### Context: CREATE TABLE table_name_87 (theme_song_s_ VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) [/INST] ### Response: SELECT theme_song_s_ FROM table_name_87 WHERE tv_station = "fuji tv" AND average_ratings = "16.65%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Theme Song of Iryu -Team Medical Dragon-2? ### Context: CREATE TABLE table_name_23 (theme_song_s_ VARCHAR, romaji_title VARCHAR) [/INST] ### Response: SELECT theme_song_s_ FROM table_name_23 WHERE romaji_title = "iryu -team medical dragon-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 road numbers when the build year is 1943, the railroad (quantity) is clinchfield railroad (12 new, 6 secondhand)? ### Context: CREATE TABLE table_name_33 (road_numbers VARCHAR, build_year VARCHAR, railroad__quantity_ VARCHAR) [/INST] ### Response: SELECT road_numbers FROM table_name_33 WHERE build_year = "1943" AND railroad__quantity_ = "clinchfield railroad (12 new, 6 secondhand)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 road numbers when the builder is alco, the railroad (quantity) is union pacific railroad (105) and the class is csa-2? ### Context: CREATE TABLE table_name_8 (road_numbers VARCHAR, class VARCHAR, builder VARCHAR, railroad__quantity_ VARCHAR) [/INST] ### Response: SELECT road_numbers FROM table_name_8 WHERE builder = "alco" AND railroad__quantity_ = "union pacific railroad (105)" AND class = "csa-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 road numbers when the class is z-7? ### Context: CREATE TABLE table_name_66 (road_numbers VARCHAR, class VARCHAR) [/INST] ### Response: SELECT road_numbers FROM table_name_66 WHERE class = "z-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 peak date of Kelis's song? ### Context: CREATE TABLE table_name_1 (peak_date VARCHAR, main_artist VARCHAR) [/INST] ### Response: SELECT peak_date FROM table_name_1 WHERE main_artist = "kelis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality of the Swimmer in Lane 4 or larger with a Rank of 5 or more? ### Context: CREATE TABLE table_name_37 (nationality VARCHAR, lane VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_37 WHERE lane > 4 AND rank > 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: Who was the opponent the falcons played against on week 3? ### Context: CREATE TABLE table_name_87 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_87 WHERE week = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest podiums when the stage wins is 91 and the points is less than 140? ### Context: CREATE TABLE table_name_60 (podiums INTEGER, stage_wins VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(podiums) FROM table_name_60 WHERE stage_wins = 91 AND points < 140 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins when the podiums is more than 1, points is 80 and starts is less than 28? ### Context: CREATE TABLE table_name_49 (wins INTEGER, starts VARCHAR, podiums VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_49 WHERE podiums > 1 AND points = 80 AND starts < 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the total number of points when the constructor is citroën total world rally team and the wins is less than 7? ### Context: CREATE TABLE table_name_72 (points VARCHAR, constructor VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_72 WHERE constructor = "citroën total world rally team" AND wins < 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest points when the chassis is focus rs wrc 08 and 09 and the stage wins is more than 91? ### Context: CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, stage_wins VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_42 WHERE chassis = "focus rs wrc 08 and 09" AND stage_wins > 91 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What driver had a total time of 16:58? ### Context: CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_66 WHERE total_time = "16:58" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest capacity when the margin is 03:30? ### Context: CREATE TABLE table_name_77 (capacity INTEGER, margin VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_77 WHERE margin = "03:30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which vehicle has a class 6c3g? ### Context: CREATE TABLE table_name_20 (vehicle VARCHAR, class VARCHAR) [/INST] ### Response: SELECT vehicle FROM table_name_20 WHERE class = "6c3g" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for the 1975 toyota celica 1600gt? ### Context: CREATE TABLE table_name_89 (capacity INTEGER, vehicle VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_89 WHERE vehicle = "1975 toyota celica 1600gt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athlete when react is 0.164? ### Context: CREATE TABLE table_name_46 (athlete VARCHAR, react VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_46 WHERE react = 0.164 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lane when react is more than 0.164 and the nationality is guinea? ### Context: CREATE TABLE table_name_64 (lane INTEGER, react VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT MIN(lane) FROM table_name_64 WHERE react > 0.164 AND nationality = "guinea" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 retired of the locomotive which had the quantity made of 25? ### Context: CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "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: Which class had a quantity made of 20? ### Context: CREATE TABLE table_name_19 (class VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT class FROM table_name_19 WHERE quantity_made = "20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the locomotive class that has a wheel arrangement of 2-8-2 and a quantity made of 25? ### Context: CREATE TABLE table_name_48 (class VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT class FROM table_name_48 WHERE wheel_arrangement = "2-8-2" AND quantity_made = "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 the quantity preserved to the locomotive with a quantity made of 6? ### Context: CREATE TABLE table_name_11 (quantity_preserved VARCHAR, quantity_made VARCHAR) [/INST] ### Response: SELECT quantity_preserved FROM table_name_11 WHERE quantity_made = "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 Beohari's highest number of electorates? ### Context: CREATE TABLE table_name_81 (number_of_electorates__2009_ INTEGER, name VARCHAR) [/INST] ### Response: SELECT MAX(number_of_electorates__2009_) FROM table_name_81 WHERE name = "beohari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district with 79 constituency number? ### Context: CREATE TABLE table_name_13 (district VARCHAR, constituency_number VARCHAR) [/INST] ### Response: SELECT district FROM table_name_13 WHERE constituency_number = "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 Beohari's reserved for (SC/ST/None)? ### Context: CREATE TABLE table_name_31 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) [/INST] ### Response: SELECT reserved_for___sc___st__none_ FROM table_name_31 WHERE name = "beohari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the prominence in m of moussa ali terara peak? ### Context: CREATE TABLE table_name_88 (prominence__m_ INTEGER, peak VARCHAR) [/INST] ### Response: SELECT SUM(prominence__m_) FROM table_name_88 WHERE peak = "moussa ali terara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total prominence number in m of ethiopia, which has a col in m of 1728 and an elevation less than 3,358? ### Context: CREATE TABLE table_name_27 (prominence__m_ VARCHAR, elevation__m_ VARCHAR, country VARCHAR, col__m_ VARCHAR) [/INST] ### Response: SELECT COUNT(prominence__m_) FROM table_name_27 WHERE country = "ethiopia" AND col__m_ = 1728 AND elevation__m_ < 3 OFFSET 358 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team had a start of 8 in years under 2008? ### Context: CREATE TABLE table_name_22 (team VARCHAR, start VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_22 WHERE start = 8 AND year < 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Jeff's finish in 2011? ### Context: CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR) [/INST] ### Response: SELECT SUM(finish) FROM table_name_35 WHERE year = 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 number of finishes having a start of 15? ### Context: CREATE TABLE table_name_78 (finish VARCHAR, start VARCHAR) [/INST] ### Response: SELECT COUNT(finish) FROM table_name_78 WHERE start = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7? ### Context: CREATE TABLE table_name_9 (Id VARCHAR) [/INST] ### Response: SELECT COUNT(2011 AS _1h) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest 2011 1H value for a 2005 over 28? ### Context: CREATE TABLE table_name_35 (Id VARCHAR) [/INST] ### Response: SELECT MAX(2011 AS _1h) FROM table_name_35 WHERE 2005 > 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average 2007 value for a 2006 of 2.8 and 2009 under 20? ### Context: CREATE TABLE table_name_6 (Id VARCHAR) [/INST] ### Response: SELECT AVG(2007) FROM table_name_6 WHERE 2009 < 20 AND 2006 = 2.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 was the round for Villa Park? ### Context: CREATE TABLE table_name_85 (round VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT round FROM table_name_85 WHERE venue = "villa park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latitude when 2010 population is 24 and water is more than 0.319? ### Context: CREATE TABLE table_name_24 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR) [/INST] ### Response: SELECT MAX(latitude) FROM table_name_24 WHERE pop__2010_ = 24 AND water__sqmi_ > 0.319 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Is Blonanserin MHRA approved? ### Context: CREATE TABLE table_name_24 (mhra_approved VARCHAR, generic_name VARCHAR) [/INST] ### Response: SELECT mhra_approved FROM table_name_24 WHERE generic_name = "blonanserin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home team when kwong wah was the away team? ### Context: CREATE TABLE table_name_41 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_41 WHERE away_team = "kwong wah" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match at happy valley recreation ground pitch #2 with a 14:30 time? ### Context: CREATE TABLE table_name_93 (score VARCHAR, time VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT score FROM table_name_93 WHERE time = "14:30" AND venue = "happy valley recreation ground pitch #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 venue of the match with a 14:30 time and sun source as the away team? ### Context: CREATE TABLE table_name_67 (venue VARCHAR, time VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_67 WHERE time = "14:30" AND away_team = "sun source" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the away team when solon was the home team? ### Context: CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_63 WHERE home_team = "solon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Elizabeth Simmonds' average lane number? ### Context: CREATE TABLE table_name_21 (lane INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(lane) FROM table_name_21 WHERE name = "elizabeth simmonds" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laure Manaudou's highest rank? ### Context: CREATE TABLE table_name_32 (rank INTEGER, name VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_32 WHERE name = "laure manaudou" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What internet explorer has 1.67% as the opera, with 2012 q1 as the period? ### Context: CREATE TABLE table_name_4 (internet_explorer VARCHAR, opera VARCHAR, period VARCHAR) [/INST] ### Response: SELECT internet_explorer FROM table_name_4 WHERE opera = "1.67%" AND period = "2012 q1" </s>