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's the name of the tournament that Gianni Ocleppo was the runner-up? ### Context: CREATE TABLE table_name_80 (tournament_name VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT tournament_name FROM table_name_80 WHERE runners_up = "gianni ocleppo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage of wins for 6½ games and more than 77 total wins? ### Context: CREATE TABLE table_name_63 (win_percentage INTEGER, games_behind VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(win_percentage) FROM table_name_63 WHERE games_behind = "6½" AND wins > 77 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 November 10? ### Context: CREATE TABLE table_name_90 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_90 WHERE date = "november 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 is the visitor when the record is 2-1? ### Context: CREATE TABLE table_name_95 (visitor VARCHAR, record VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_95 WHERE record = "2-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: Who is the home team when the score is 81-80? ### Context: CREATE TABLE table_name_56 (home VARCHAR, score VARCHAR) [/INST] ### Response: SELECT home FROM table_name_56 WHERE score = "81-80" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Gold medals did Japan receive who had a Total of more than 1 medals? ### Context: CREATE TABLE table_name_39 (gold INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_39 WHERE nation = "japan" AND total > 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 time (cst) has and NFL recap of recap with october 19, 2008 as the date? ### Context: CREATE TABLE table_name_75 (time__cst_ VARCHAR, nfl_recap VARCHAR, date VARCHAR) [/INST] ### Response: SELECT time__cst_ FROM table_name_75 WHERE nfl_recap = "recap" AND date = "october 19, 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: Which week has giants stadium as the game site? ### Context: CREATE TABLE table_name_57 (week VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT week FROM table_name_57 WHERE game_site = "giants stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site? ### Context: CREATE TABLE table_name_53 (week INTEGER, time__cst_ VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT MIN(week) FROM table_name_53 WHERE time__cst_ = "7:15 p.m." AND game_site = "fedexfield" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What office was law preservation ticket holder William E. Barron running for? ### Context: CREATE TABLE table_name_51 (office VARCHAR, law_preservation_ticket VARCHAR) [/INST] ### Response: SELECT office FROM table_name_51 WHERE law_preservation_ticket = "william e. barron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constitutional ticken when Charles B. Sears was the republican ticket? ### Context: CREATE TABLE table_name_51 (constitutional_ticket VARCHAR, republican_ticket VARCHAR) [/INST] ### Response: SELECT constitutional_ticket FROM table_name_51 WHERE republican_ticket = "charles b. sears" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constitutional ticket when william karlin was the socialist ticket? ### Context: CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR) [/INST] ### Response: SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = "william karlin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory on Mar 18, 1979? ### Context: CREATE TABLE table_name_69 (margin_of_victory VARCHAR, date VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_69 WHERE date = "mar 18, 1979" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 comp for the year 1989? ### Context: CREATE TABLE table_name_42 (comp VARCHAR, year VARCHAR) [/INST] ### Response: SELECT comp FROM table_name_42 WHERE year = "1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the team in 1989? ### Context: CREATE TABLE table_name_50 (team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_50 WHERE year = "1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the RAtt in the year 1988? ### Context: CREATE TABLE table_name_72 (ratt VARCHAR, year VARCHAR) [/INST] ### Response: SELECT ratt FROM table_name_72 WHERE year = "1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team with a Ratt of 42? ### Context: CREATE TABLE table_name_73 (team VARCHAR, ratt VARCHAR) [/INST] ### Response: SELECT team FROM table_name_73 WHERE ratt = "42" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the team with a ratt of 57? ### Context: CREATE TABLE table_name_18 (team VARCHAR, ratt VARCHAR) [/INST] ### Response: SELECT team FROM table_name_18 WHERE ratt = "57" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Giants play before week 7 in Tulane Stadium? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR, game_site VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_25 WHERE week < 7 AND game_site = "tulane stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the lowest attendance for week 1? ### Context: CREATE TABLE table_name_48 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_48 WHERE week = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest rank of a player from Ethiopia? ### Context: CREATE TABLE table_name_8 (rank INTEGER, country VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_8 WHERE country = "ethiopia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had 367 matches and more than 216 goals? ### Context: CREATE TABLE table_name_94 (rank INTEGER, matches VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_94 WHERE matches = 367 AND goals > 216 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean rank number when goals are 230 and there are more than 535? ### Context: CREATE TABLE table_name_86 (rank INTEGER, goals VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_86 WHERE goals = 230 AND matches > 535 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the audience share is 8%, what is the original airing? ### Context: CREATE TABLE table_name_60 (original_airing VARCHAR, audience_share__average_ VARCHAR) [/INST] ### Response: SELECT original_airing FROM table_name_60 WHERE audience_share__average_ = "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 episode number has an audience share of 10%? ### Context: CREATE TABLE table_name_80 (episode_number VARCHAR, audience_share__average_ VARCHAR) [/INST] ### Response: SELECT COUNT(episode_number) FROM table_name_80 WHERE audience_share__average_ = "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 value for the item "Class" when the value of the item "Wheels" is 137? ### Context: CREATE TABLE table_name_97 (class VARCHAR, wheels VARCHAR) [/INST] ### Response: SELECT class FROM table_name_97 WHERE wheels = 137 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest number of games for the fenerbahçe team? ### Context: CREATE TABLE table_name_84 (games INTEGER, team VARCHAR) [/INST] ### Response: SELECT MIN(games) FROM table_name_84 WHERE team = "fenerbahçe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean game number for the olympiacos team when there's less than 17 rebounds? ### Context: CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, rebounds VARCHAR) [/INST] ### Response: SELECT AVG(games) FROM table_name_75 WHERE team = "olympiacos" AND rebounds < 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many games does novica veličković have when there's more than 24 rebounds? ### Context: CREATE TABLE table_name_57 (games VARCHAR, name VARCHAR, rebounds VARCHAR) [/INST] ### Response: SELECT COUNT(games) FROM table_name_57 WHERE name = "novica veličković" AND rebounds > 24 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the League with a Year that is 1990/91? ### Context: CREATE TABLE table_name_64 (league VARCHAR, year VARCHAR) [/INST] ### Response: SELECT league FROM table_name_64 WHERE year = "1990/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 is the ICAO for simferopol international airport? ### Context: CREATE TABLE table_name_75 (icao VARCHAR, airport VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_75 WHERE airport = "simferopol international airport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has an IATA of gzt? ### Context: CREATE TABLE table_name_70 (country VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT country FROM table_name_70 WHERE iata = "gzt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Yerevan located in? ### Context: CREATE TABLE table_name_21 (country VARCHAR, city VARCHAR) [/INST] ### Response: SELECT country FROM table_name_21 WHERE city = "yerevan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO when the IATA is ika? ### Context: CREATE TABLE table_name_19 (icao VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_19 WHERE iata = "ika" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO when the IATA is ist? ### Context: CREATE TABLE table_name_34 (icao VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_34 WHERE iata = "ist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has 10 losses? ### Context: CREATE TABLE table_name_33 (team VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT team FROM table_name_33 WHERE lost = 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: In which yearly change was there a capacity of 78.4% and a rank smaller than 3? ### Context: CREATE TABLE table_name_31 (annual_change VARCHAR, rank VARCHAR, capacity_in_use VARCHAR) [/INST] ### Response: SELECT annual_change FROM table_name_31 WHERE rank < 3 AND capacity_in_use = "78.4%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In Which rank was there a location of porto alegre? ### Context: CREATE TABLE table_name_85 (rank VARCHAR, location VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_85 WHERE location = "porto alegre" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 passengers when the capacity is 81.2%? ### Context: CREATE TABLE table_name_88 (total_passengers INTEGER, capacity_in_use VARCHAR) [/INST] ### Response: SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = "81.2%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest amount of passengers when there is a rank of 1? ### Context: CREATE TABLE table_name_94 (total_passengers INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MAX(total_passengers) FROM table_name_94 WHERE rank = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the latest Week on which the Result was l 17–0? ### Context: CREATE TABLE table_name_95 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_95 WHERE result = "l 17–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 average cuts made at the top 25, less than 10, and at the Top 10 more than 3? ### Context: CREATE TABLE table_name_65 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR) [/INST] ### Response: SELECT AVG(cuts_made) FROM table_name_65 WHERE top_25 < 10 AND top_10 > 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 average Top 10 with 0 wins? ### Context: CREATE TABLE table_name_93 (top_10 INTEGER, wins INTEGER) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_93 WHERE wins < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average event for the Open Championship Tournament, and a Top-5 less than 1? ### Context: CREATE TABLE table_name_18 (events INTEGER, tournament VARCHAR, top_5 VARCHAR) [/INST] ### Response: SELECT AVG(events) FROM table_name_18 WHERE tournament = "the open championship" AND top_5 < 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 wins has Top-25 less than 0? ### Context: CREATE TABLE table_name_66 (wins INTEGER, top_25 INTEGER) [/INST] ### Response: SELECT AVG(wins) FROM table_name_66 WHERE top_25 < 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 largest Against with a Byes larger than 0? ### Context: CREATE TABLE table_name_40 (against INTEGER, byes INTEGER) [/INST] ### Response: SELECT MAX(against) FROM table_name_40 WHERE byes > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Wins has an Against of 1940, and a Byes larger than 0? ### Context: CREATE TABLE table_name_61 (wins INTEGER, against VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0? ### Context: CREATE TABLE table_name_28 (draws INTEGER, byes VARCHAR, wins VARCHAR, peel VARCHAR) [/INST] ### Response: SELECT AVG(draws) FROM table_name_28 WHERE wins = 10 AND peel = "south mandurah" AND byes > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4? ### Context: CREATE TABLE table_name_50 (against INTEGER, wins VARCHAR, draws VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Losses has an Against of 1101, and a Byes smaller than 0? ### Context: CREATE TABLE table_name_52 (losses VARCHAR, against VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_52 WHERE against = 1101 AND byes < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Byes has a Losses smaller than 1? ### Context: CREATE TABLE table_name_5 (byes INTEGER, losses INTEGER) [/INST] ### Response: SELECT MAX(byes) FROM table_name_5 WHERE losses < 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 number of games of the player with a rank less than 1? ### Context: CREATE TABLE table_name_55 (games INTEGER, rank INTEGER) [/INST] ### Response: SELECT AVG(games) FROM table_name_55 WHERE rank < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest rank of the player with less than 32 points? ### Context: CREATE TABLE table_name_24 (rank INTEGER, points INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_24 WHERE points < 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rank of the player with less than 34 points? ### Context: CREATE TABLE table_name_95 (rank INTEGER, points INTEGER) [/INST] ### Response: SELECT SUM(rank) FROM table_name_95 WHERE points < 34 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's Fourth District has a Second District of bob springstead? ### Context: CREATE TABLE table_name_72 (fourth_district VARCHAR, second_district VARCHAR) [/INST] ### Response: SELECT fourth_district FROM table_name_72 WHERE second_district = "bob springstead" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the First District with a Fifth District of prudy adam? ### Context: CREATE TABLE table_name_9 (first_district VARCHAR, fifth_district VARCHAR) [/INST] ### Response: SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the Fourth District with a First District of beverly bodem? ### Context: CREATE TABLE table_name_98 (fourth_district VARCHAR, first_district VARCHAR) [/INST] ### Response: SELECT fourth_district FROM table_name_98 WHERE first_district = "beverly bodem" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the Fourth District with a Second District of kurt van koevering? ### Context: CREATE TABLE table_name_41 (fourth_district VARCHAR, second_district VARCHAR) [/INST] ### Response: SELECT fourth_district FROM table_name_41 WHERE second_district = "kurt van koevering" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the Fifth District with a Second District of paul leidig? ### Context: CREATE TABLE table_name_23 (fifth_district VARCHAR, second_district VARCHAR) [/INST] ### Response: SELECT fifth_district FROM table_name_23 WHERE second_district = "paul leidig" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the Fourth District with a Third District of sharon yentsch? ### Context: CREATE TABLE table_name_82 (fourth_district VARCHAR, third_district VARCHAR) [/INST] ### Response: SELECT fourth_district FROM table_name_82 WHERE third_district = "sharon yentsch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sets did Gary Muller have? ### Context: CREATE TABLE table_name_21 (sets VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(sets) FROM table_name_21 WHERE player = "gary muller" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Player in 2005 Wimbledon had less than 5 Sets? ### Context: CREATE TABLE table_name_12 (player VARCHAR, sets VARCHAR, event VARCHAR) [/INST] ### Response: SELECT player FROM table_name_12 WHERE sets < 5 AND event = "2005 wimbledon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the 2001 Davis Cup, what Opponent had less than 50 Aces? ### Context: CREATE TABLE table_name_93 (opponent VARCHAR, aces VARCHAR, event VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_93 WHERE aces < 50 AND event = "2001 davis cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Channel 4 air an episode number larger than 106 with the title of Marry Me A Little? ### Context: CREATE TABLE table_name_74 (time_of_airing_on_channel_4 VARCHAR, episode_number VARCHAR, title VARCHAR) [/INST] ### Response: SELECT time_of_airing_on_channel_4 FROM table_name_74 WHERE episode_number > 106 AND title = "marry me a little" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sunk by U-boats with less than 2 German submarines lost, 56328 sunk by aircrafts, and more than 8269 sunk by mines? ### Context: CREATE TABLE table_name_4 (sunk_by_u_boat VARCHAR, sunk_by_mines VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR) [/INST] ### Response: SELECT COUNT(sunk_by_u_boat) FROM table_name_4 WHERE german_submarines_lost < 2 AND sunk_by_aircraft = 56328 AND sunk_by_mines > 8269 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sunk by warship or raider with 20 German submarines lost and more than 21616 sunk by aircraft? ### Context: CREATE TABLE table_name_30 (sunk_by_warship_or_raider VARCHAR, german_submarines_lost VARCHAR, sunk_by_aircraft VARCHAR) [/INST] ### Response: SELECT COUNT(sunk_by_warship_or_raider) FROM table_name_30 WHERE german_submarines_lost = 20 AND sunk_by_aircraft > 21616 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 German submarines lost with more than 120958 sunk by mines? ### Context: CREATE TABLE table_name_46 (german_submarines_lost VARCHAR, sunk_by_mines INTEGER) [/INST] ### Response: SELECT COUNT(german_submarines_lost) FROM table_name_46 WHERE sunk_by_mines > 120958 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 month and year less than 5 German submarines were lost, less than 6893 were sunk by warship or raider, less than 133746 were sunk by aircraft, and more than 111263 were sunk by U-boat? ### Context: CREATE TABLE table_name_24 (month VARCHAR, _year VARCHAR, sunk_by_u_boat VARCHAR, sunk_by_aircraft VARCHAR, german_submarines_lost VARCHAR, sunk_by_warship_or_raider VARCHAR) [/INST] ### Response: SELECT month, _year FROM table_name_24 WHERE german_submarines_lost < 5 AND sunk_by_warship_or_raider < 6893 AND sunk_by_aircraft < 133746 AND sunk_by_u_boat > 111263 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 month and year less than 106005 were sunk by aircraft and 61857 were sunk by warship or raider? ### Context: CREATE TABLE table_name_73 (month VARCHAR, _year VARCHAR, sunk_by_aircraft VARCHAR, sunk_by_warship_or_raider VARCHAR) [/INST] ### Response: SELECT month, _year FROM table_name_73 WHERE sunk_by_aircraft < 106005 AND sunk_by_warship_or_raider = 61857 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 post-1986 provinces with a 全羅道 Hanja? ### Context: CREATE TABLE table_name_52 (post_1896_provinces VARCHAR, hanja VARCHAR) [/INST] ### Response: SELECT post_1896_provinces FROM table_name_52 WHERE hanja = "全羅道" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Korean dialect in the daegu capital? ### Context: CREATE TABLE table_name_71 (korean_dialect VARCHAR, capital VARCHAR) [/INST] ### Response: SELECT korean_dialect FROM table_name_71 WHERE capital = "daegu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Korean dialect with a jeolla RR Romaja? ### Context: CREATE TABLE table_name_18 (korean_dialect VARCHAR, rr_romaja VARCHAR) [/INST] ### Response: SELECT korean_dialect FROM table_name_18 WHERE rr_romaja = "jeolla" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hanja for the hamgyeong RR Romaja? ### Context: CREATE TABLE table_name_4 (hanja VARCHAR, rr_romaja VARCHAR) [/INST] ### Response: SELECT hanja FROM table_name_4 WHERE rr_romaja = "hamgyeong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean huc example code when the example name's lower snake, there are 6 digits, and less than 3 levels? ### Context: CREATE TABLE table_name_35 (example_code__huc_ INTEGER, level VARCHAR, example_name VARCHAR, digits VARCHAR) [/INST] ### Response: SELECT AVG(example_code__huc_) FROM table_name_35 WHERE example_name = "lower snake" AND digits = 6 AND level < 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's the approximate number of HUs when there are more than 2 digits, and 6 levels? ### Context: CREATE TABLE table_name_66 (number_of_hus__approximate_ VARCHAR, digits VARCHAR, level VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_hus__approximate_) FROM table_name_66 WHERE digits > 2 AND level = 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: How many HUC example codes have 1 level? ### Context: CREATE TABLE table_name_48 (example_code__huc_ VARCHAR, level VARCHAR) [/INST] ### Response: SELECT COUNT(example_code__huc_) FROM table_name_48 WHERE level = 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 mean level number when the example name is lower snake and the approximate number is hus is less than 370? ### Context: CREATE TABLE table_name_42 (level INTEGER, example_name VARCHAR, number_of_hus__approximate_ VARCHAR) [/INST] ### Response: SELECT AVG(level) FROM table_name_42 WHERE example_name = "lower snake" AND number_of_hus__approximate_ < 370 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses average when the against is greater than 1255 and wins is 0 and the draws less than 0? ### Context: CREATE TABLE table_name_43 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(losses) FROM table_name_43 WHERE against > 1255 AND wins = 0 AND draws < 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 smallest losses when the wins are 5 and the against less than 1852? ### Context: CREATE TABLE table_name_14 (losses INTEGER, wins VARCHAR, against VARCHAR) [/INST] ### Response: SELECT MIN(losses) FROM table_name_14 WHERE wins = 5 AND against < 1852 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest losses that Ballarat FL of Lake Wendouree has when the wins are smaller than 9? ### Context: CREATE TABLE table_name_9 (losses INTEGER, ballarat_fl VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(losses) FROM table_name_9 WHERE ballarat_fl = "lake wendouree" 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 smallest byes when the wins are 3? ### Context: CREATE TABLE table_name_49 (byes INTEGER, wins VARCHAR) [/INST] ### Response: SELECT MIN(byes) FROM table_name_49 WHERE 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 highest Attendance when the away team was Wrexham? ### Context: CREATE TABLE table_name_39 (attendance INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MAX(attendance) FROM table_name_39 WHERE away_team = "wrexham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the home team was wycombe wanderers? ### Context: CREATE TABLE table_name_9 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_9 WHERE home_team = "wycombe wanderers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance when the home team was slough town? ### Context: CREATE TABLE table_name_62 (attendance INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_62 WHERE home_team = "slough town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Attendance when macclesfield town was the way team? ### Context: CREATE TABLE table_name_22 (attendance INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_22 WHERE away_team = "macclesfield town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many Spins sources have a CCM Chart of CHR with a peak position less than 1? ### Context: CREATE TABLE table_name_61 (spins__since_1998__source VARCHAR, ccm_chart VARCHAR, peak_pos VARCHAR) [/INST] ### Response: SELECT COUNT(spins__since_1998__source) AS :_mediabase FROM table_name_61 WHERE ccm_chart = "chr" AND peak_pos < 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 CCM Chart had 18 total weeks? ### Context: CREATE TABLE table_name_94 (ccm_chart VARCHAR, total_wks VARCHAR) [/INST] ### Response: SELECT ccm_chart FROM table_name_94 WHERE total_wks = 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: What is Opponent, when Date is December 18, 1988? ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_7 WHERE date = "december 18, 1988" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance, when Opponent is Pittsburgh Steelers? ### Context: CREATE TABLE table_name_2 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_2 WHERE opponent = "pittsburgh steelers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week, when Result is l 37–34? ### Context: CREATE TABLE table_name_80 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_80 WHERE result = "l 37–34" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was Shannon Long the Centerfold model? ### Context: CREATE TABLE table_name_15 (date VARCHAR, centerfold_model VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE centerfold_model = "shannon long" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold model on 5-88? ### Context: CREATE TABLE table_name_20 (centerfold_model VARCHAR, date VARCHAR) [/INST] ### Response: SELECT centerfold_model FROM table_name_20 WHERE date = "5-88" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfild model that used Bruce Willis as her Interview subject? ### Context: CREATE TABLE table_name_60 (centerfold_model VARCHAR, interview_subject VARCHAR) [/INST] ### Response: SELECT centerfold_model FROM table_name_60 WHERE interview_subject = "bruce willis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Series, when Launch Date is 23 February 2013? ### Context: CREATE TABLE table_name_16 (series VARCHAR, launch_date VARCHAR) [/INST] ### Response: SELECT series FROM table_name_16 WHERE launch_date = "23 february 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 is Series, when Days is greater than 99, and when Prize is €50,000? ### Context: CREATE TABLE table_name_15 (series VARCHAR, days VARCHAR, prize VARCHAR) [/INST] ### Response: SELECT series FROM table_name_15 WHERE days > 99 AND prize = "€50,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 Series, when Winner is Jetmir Salaj? ### Context: CREATE TABLE table_name_54 (series VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT series FROM table_name_54 WHERE winner = "jetmir salaj" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Highest Days, when Launch Date is 23 January 2010? ### Context: CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR) [/INST] ### Response: SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 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 is the lowest Rank, when Name is Jeremiah Massey, and when Games is less than 20? ### Context: CREATE TABLE table_name_60 (rank INTEGER, name VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_60 WHERE name = "jeremiah massey" AND games < 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 lowest Games, when Name is Jeremiah Massey, and when Points is less than 340? ### Context: CREATE TABLE table_name_91 (games INTEGER, name VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(games) FROM table_name_91 WHERE name = "jeremiah massey" AND points < 340 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points, when Games is greater than 20, and when Team is Partizan Belgrade? ### Context: CREATE TABLE table_name_30 (points INTEGER, games VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_30 WHERE games > 20 AND team = "partizan belgrade" </s>