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: At what average position is the drawn 9 and the points greater than 25? ### Context: CREATE TABLE table_name_75 (position INTEGER, drawn VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(position) FROM table_name_75 WHERE drawn = 9 AND points > 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: How many played has an against greater than 57 and a lost bigger than 14? ### Context: CREATE TABLE table_name_83 (played VARCHAR, against VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(played) FROM table_name_83 WHERE against > 57 AND lost > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The event rip curl pro mademoiselle is in which location? ### Context: CREATE TABLE table_name_55 (location VARCHAR, event VARCHAR) [/INST] ### Response: SELECT location FROM table_name_55 WHERE event = "rip curl pro mademoiselle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On the date november 24-december 6 what's the winner when the country is united states? ### Context: CREATE TABLE table_name_35 (winner VARCHAR, country VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_35 WHERE country = "united states" AND date = "november 24-december 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which year was the 100 m event played in Thessaloniki, Greece? ### Context: CREATE TABLE table_name_93 (year INTEGER, event VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_93 WHERE event = "100 m" AND venue = "thessaloniki, greece" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which position was the World Indoor Championships in a year later than 2008? ### Context: CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT position FROM table_name_64 WHERE competition = "world indoor championships" 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 position was played at the World Athletics Final Competition in a year more recent than 2008? ### Context: CREATE TABLE table_name_62 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT position FROM table_name_62 WHERE competition = "world athletics final" 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 position was played at the World Athletics Final Competition in a year more recent than 2008? ### Context: CREATE TABLE table_name_11 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT position FROM table_name_11 WHERE competition = "world athletics final" 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 are the goals of the assists of 5? ### Context: CREATE TABLE table_name_92 (goals VARCHAR, assists VARCHAR) [/INST] ### Response: SELECT goals FROM table_name_92 WHERE assists = "5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the assists for the year 1995? ### Context: CREATE TABLE table_name_66 (assists VARCHAR, year VARCHAR) [/INST] ### Response: SELECT assists FROM table_name_66 WHERE year = "1995" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What assists has the Team SMU and the total points of 85? ### Context: CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR) [/INST] ### Response: SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had 48 assists? ### Context: CREATE TABLE table_name_35 (year VARCHAR, assists VARCHAR) [/INST] ### Response: SELECT year FROM table_name_35 WHERE assists = "48" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for GP/GS of 24/23? ### Context: CREATE TABLE table_name_28 (total_points VARCHAR, gp_gs VARCHAR) [/INST] ### Response: SELECT total_points FROM table_name_28 WHERE gp_gs = "24/23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assists for the Team of Florida and the total points of 75? ### Context: CREATE TABLE table_name_29 (assists VARCHAR, team VARCHAR, total_points VARCHAR) [/INST] ### Response: SELECT assists FROM table_name_29 WHERE team = "florida" AND total_points = "75" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the attendance of the match with F.C. central chugoku as the home team? ### Context: CREATE TABLE table_name_24 (attendance VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_24 WHERE home_team = "f.c. central chugoku" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of match 9? ### Context: CREATE TABLE table_name_52 (away_team VARCHAR, match_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_52 WHERE match_no = "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 score of match 15? ### Context: CREATE TABLE table_name_30 (score VARCHAR, match_no VARCHAR) [/INST] ### Response: SELECT score FROM table_name_30 WHERE match_no = "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: What is the attendance of the match with kochi university as the away team? ### Context: CREATE TABLE table_name_23 (attendance VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_23 WHERE away_team = "kochi university" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the match with rosso kumamoto as the away team? ### Context: CREATE TABLE table_name_82 (attendance VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_82 WHERE away_team = "rosso kumamoto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the company have a balance sheet total of €125,359,000? ### Context: CREATE TABLE table_name_69 (year VARCHAR, balance_sheet_total VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_69 WHERE balance_sheet_total = "€125,359,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 was the average Year of release for the Album, "Da Baddest Bitch"? ### Context: CREATE TABLE table_name_31 (year INTEGER, album VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_31 WHERE album = "da baddest bitch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of the game with a score of 3-2? ### Context: CREATE TABLE table_name_99 (result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT result FROM table_name_99 WHERE score = "3-2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the 2014 World Cup Qualification? ### Context: CREATE TABLE table_name_91 (score VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT score FROM table_name_91 WHERE competition = "2014 world cup qualification" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of the game with a score of 4-1? ### Context: CREATE TABLE table_name_65 (result VARCHAR, score VARCHAR) [/INST] ### Response: SELECT result FROM table_name_65 WHERE score = "4-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 venue held with game with a score of 3-2? ### Context: CREATE TABLE table_name_42 (venue VARCHAR, score VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_42 WHERE score = "3-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: When has a Centerfold model of krista kelly? ### Context: CREATE TABLE table_name_20 (date VARCHAR, centerfold_model VARCHAR) [/INST] ### Response: SELECT date FROM table_name_20 WHERE centerfold_model = "krista kelly" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)? ### Context: CREATE TABLE table_name_60 (cover_model VARCHAR) [/INST] ### Response: SELECT 20 AS _questions FROM table_name_60 WHERE cover_model = "rena mero , torrie wilson (two alternative covers)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold model is on 3-04? ### Context: CREATE TABLE table_name_80 (centerfold_model VARCHAR, date VARCHAR) [/INST] ### Response: SELECT centerfold_model FROM table_name_80 WHERE date = "3-04" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cover model has a Centerfold model of scarlett keegan? ### Context: CREATE TABLE table_name_22 (cover_model VARCHAR, centerfold_model VARCHAR) [/INST] ### Response: SELECT cover_model FROM table_name_22 WHERE centerfold_model = "scarlett keegan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When has a Centerfold model of pilar lastra? ### Context: CREATE TABLE table_name_95 (date VARCHAR, centerfold_model VARCHAR) [/INST] ### Response: SELECT date FROM table_name_95 WHERE centerfold_model = "pilar lastra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 share with an air date of March 21, 2008 and had viewers larger than 5.15? ### Context: CREATE TABLE table_name_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR) [/INST] ### Response: SELECT MIN(share) FROM table_name_8 WHERE air_date = "march 21, 2008" AND viewers > 5.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: What is the lowest team (s) that have tvmk as top scorer (s) and flora as the champion? ### Context: CREATE TABLE table_name_31 (team_s_ INTEGER, top_goalscorer_s_ VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT MIN(team_s_) FROM table_name_31 WHERE top_goalscorer_s_ = "tvmk" AND champion = "flora" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round had the opponent Lyon? ### Context: CREATE TABLE table_name_1 (round VARCHAR, opposition VARCHAR) [/INST] ### Response: SELECT round FROM table_name_1 WHERE opposition = "lyon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the first leg that has a round in the semi-final? ### Context: CREATE TABLE table_name_53 (first_leg VARCHAR, round VARCHAR) [/INST] ### Response: SELECT first_leg FROM table_name_53 WHERE round = "semi-final" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Most Laps Led, when Winning Team is Chip Ganassi Racing, and when Fastest Lap is Marco Andretti? ### Context: CREATE TABLE table_name_28 (most_laps_led VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT most_laps_led FROM table_name_28 WHERE winning_team = "chip ganassi racing" AND fastest_lap = "marco andretti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning Driver, when Most Laps Led is Dario Franchitti, and when Pole Position is Hélio Castroneves? ### Context: CREATE TABLE table_name_10 (winning_driver VARCHAR, most_laps_led VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_10 WHERE most_laps_led = "dario franchitti" AND pole_position = "hélio castroneves" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winning Team, when Most Laps Led is Alex Tagliani? ### Context: CREATE TABLE table_name_21 (winning_team VARCHAR, most_laps_led VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_21 WHERE most_laps_led = "alex tagliani" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winning Driver, when Fastest Lap is Ryan Hunter-Reay, and when Most Laps Led is Ryan Briscoe? ### Context: CREATE TABLE table_name_7 (winning_driver VARCHAR, fastest_lap VARCHAR, most_laps_led VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_7 WHERE fastest_lap = "ryan hunter-reay" AND most_laps_led = "ryan briscoe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Race, when Winning Team is Chip Ganassi Racing, when Pole Position is Ryan Briscoe, and when Most Laps Led is Scott Dixon? ### Context: CREATE TABLE table_name_91 (race VARCHAR, most_laps_led VARCHAR, winning_team VARCHAR, pole_position VARCHAR) [/INST] ### Response: SELECT race FROM table_name_91 WHERE winning_team = "chip ganassi racing" AND pole_position = "ryan briscoe" AND most_laps_led = "scott dixon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Winner when the Runner-up was Real Salt Lake? ### Context: CREATE TABLE table_name_20 (winner VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_20 WHERE runner_up = "real salt lake" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During which Season was the tournament in progress? ### Context: CREATE TABLE table_name_64 (season VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT season FROM table_name_64 WHERE runner_up = "tournament in progress" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score during the Season in which the Winner was C.F. Atlante? ### Context: CREATE TABLE table_name_15 (score VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_15 WHERE winner = "c.f. atlante" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Score when the Losing Semifinalists were Toluca Unam? ### Context: CREATE TABLE table_name_88 (score VARCHAR, losing_semifinalists VARCHAR) [/INST] ### Response: SELECT score FROM table_name_88 WHERE losing_semifinalists = "toluca unam" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What law has a penalty of — in Iraq? ### Context: CREATE TABLE table_name_90 (laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR) [/INST] ### Response: SELECT laws_against_homosexuality FROM table_name_90 WHERE penalty = "—" AND country = "iraq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the laws against homosexuality in Malaysia? ### Context: CREATE TABLE table_name_34 (laws_against_homosexuality VARCHAR, country VARCHAR) [/INST] ### Response: SELECT laws_against_homosexuality FROM table_name_34 WHERE country = "malaysia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Events when the top-25 is 12 and there are less than 0 wins? ### Context: CREATE TABLE table_name_62 (events INTEGER, top_25 VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(events) FROM table_name_62 WHERE top_25 = 12 AND 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 sum of Events when the top-25 is more than 5, and the top-10 is less than 4, and wins is more than 2? ### Context: CREATE TABLE table_name_88 (events INTEGER, wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR) [/INST] ### Response: SELECT SUM(events) FROM table_name_88 WHERE top_25 > 5 AND top_10 < 4 AND wins > 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 average Top-10 when there were 17 cuts made with less than 0 wins? ### Context: CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND 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 sum of Cuts made when there were more than 72 events? ### Context: CREATE TABLE table_name_95 (cuts_made INTEGER, events INTEGER) [/INST] ### Response: SELECT SUM(cuts_made) FROM table_name_95 WHERE events > 72 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Top-5 for the open championship, and a Top-10 smaller than 2? ### Context: CREATE TABLE table_name_98 (top_5 INTEGER, tournament VARCHAR, top_10 VARCHAR) [/INST] ### Response: SELECT AVG(top_5) FROM table_name_98 WHERE tournament = "the open championship" AND top_10 < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09? ### Context: CREATE TABLE table_name_74 (original_airing VARCHAR, rating VARCHAR, episode_number_production_number VARCHAR) [/INST] ### Response: SELECT original_airing FROM table_name_74 WHERE rating < 10.1 AND episode_number_production_number = "96 5-09" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest number of viewers for the episode production number of 109 5-22? ### Context: CREATE TABLE table_name_54 (total_viewers__in_millions_ INTEGER, episode_number_production_number VARCHAR) [/INST] ### Response: SELECT MIN(total_viewers__in_millions_) FROM table_name_54 WHERE episode_number_production_number = "109 5-22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the First Aligned date in 1614? ### Context: CREATE TABLE table_name_67 (first_aligned_day VARCHAR, date VARCHAR) [/INST] ### Response: SELECT first_aligned_day FROM table_name_67 WHERE date = "1614" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Airlines have a total distance of 705 (km)? ### Context: CREATE TABLE table_name_76 (_number_of_airlines VARCHAR, distance__km_ VARCHAR) [/INST] ### Response: SELECT COUNT(_number_of_airlines) FROM table_name_76 WHERE distance__km_ = 705 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg result when team 1 is Gambia? ### Context: CREATE TABLE table_name_10 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_10 WHERE team_1 = "gambia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg result when team 2 is Morocco? ### Context: CREATE TABLE table_name_16 (team_2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name was in the Year 2001? ### Context: CREATE TABLE table_name_32 (name VARCHAR, year VARCHAR) [/INST] ### Response: SELECT name FROM table_name_32 WHERE year = "2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name had a Rank of 18 Out of a number smaller than 149? ### Context: CREATE TABLE table_name_31 (name VARCHAR, out_of VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT name FROM table_name_31 WHERE out_of < 149 AND rank = 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: Which Name had the Rank, 15? ### Context: CREATE TABLE table_name_54 (name VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT name FROM table_name_54 WHERE rank = 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: What is the lowest Rank for the Name, "area of permanent crops", Out of a number smaller than 181? ### Context: CREATE TABLE table_name_66 (rank INTEGER, name VARCHAR, out_of VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_66 WHERE name = "area of permanent crops" AND out_of < 181 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name had the Source, World Bank, and a Rank smaller than 110, Out of a number smaller than 199? ### Context: CREATE TABLE table_name_48 (name VARCHAR, out_of VARCHAR, source VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT name FROM table_name_48 WHERE source = "world bank" AND rank < 110 AND out_of < 199 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manzoor Elahi as Coach and Taufeeq Umar as Captain? ### Context: CREATE TABLE table_name_88 (team VARCHAR, coach VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT team FROM table_name_88 WHERE coach = "manzoor elahi" AND captain = "taufeeq umar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which City has the Bahawalpur Stags Team? ### Context: CREATE TABLE table_name_98 (city VARCHAR, team VARCHAR) [/INST] ### Response: SELECT city FROM table_name_98 WHERE team = "bahawalpur stags" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent of the December 18, 1994 game? ### Context: CREATE TABLE table_name_90 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_90 WHERE date = "december 18, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Artist with a Date that is june 1979? ### Context: CREATE TABLE table_name_48 (artist VARCHAR, date VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_48 WHERE date = "june 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 Writer with an Actual Title that is mork & mindy? ### Context: CREATE TABLE table_name_8 (writer VARCHAR, actual_title VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_8 WHERE actual_title = "mork & mindy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Writer with a Date that is january 1975? ### Context: CREATE TABLE table_name_63 (writer VARCHAR, date VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_63 WHERE date = "january 1975" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest played amount when there are 2 draws and an against of more than 73? ### Context: CREATE TABLE table_name_66 (played INTEGER, drawn VARCHAR, against VARCHAR) [/INST] ### Response: SELECT MIN(played) FROM table_name_66 WHERE drawn = 2 AND against > 73 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the earliest season with a premiere of february5,2007? ### Context: CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR) [/INST] ### Response: SELECT MIN(episodes) FROM table_name_90 WHERE premiere = "february5,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: Which premiere had more than 15 episodes? ### Context: CREATE TABLE table_name_36 (premiere VARCHAR, episodes INTEGER) [/INST] ### Response: SELECT premiere FROM table_name_36 WHERE episodes > 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: Who had the highest rebounds of the game on April 7? ### Context: CREATE TABLE table_name_15 (high_rebounds VARCHAR, date VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_name_15 WHERE date = "april 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 Result, when Date is 2003? ### Context: CREATE TABLE table_name_80 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_80 WHERE date = "2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Record, when Date is 1996? ### Context: CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_45 WHERE date = "1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Notes, when Date is 2007? ### Context: CREATE TABLE table_name_9 (notes VARCHAR, date VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_9 WHERE date = "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 highest Round, when the Opponent is Junior Pitbull? ### Context: CREATE TABLE table_name_28 (round INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_28 WHERE opponent = "junior pitbull" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Result is Loss, and when Method is Submission (Armbar)? ### Context: CREATE TABLE table_name_8 (date VARCHAR, result VARCHAR, method VARCHAR) [/INST] ### Response: SELECT date FROM table_name_8 WHERE result = "loss" AND method = "submission (armbar)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Coombe Road time with a Selsdon evening peak? ### Context: CREATE TABLE table_name_17 (coombe_road VARCHAR, selsdon VARCHAR) [/INST] ### Response: SELECT coombe_road FROM table_name_17 WHERE selsdon = "evening peak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Woodside for the 16:19 Coombe Road? ### Context: CREATE TABLE table_name_81 (woodside VARCHAR, coombe_road VARCHAR) [/INST] ### Response: SELECT woodside FROM table_name_81 WHERE coombe_road = "16:19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Elmers End with a 09:54 Bingham Road? ### Context: CREATE TABLE table_name_65 (elmers_end VARCHAR, bingham_road VARCHAR) [/INST] ### Response: SELECT elmers_end FROM table_name_65 WHERE bingham_road = "09:54" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Coombe Road with a Woodside time of 07:23? ### Context: CREATE TABLE table_name_14 (coombe_road VARCHAR, woodside VARCHAR) [/INST] ### Response: SELECT coombe_road FROM table_name_14 WHERE woodside = "07:23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Elmers End with a 17:57 Selsdon time? ### Context: CREATE TABLE table_name_30 (elmers_end VARCHAR, selsdon VARCHAR) [/INST] ### Response: SELECT elmers_end FROM table_name_30 WHERE selsdon = "17: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: What is the Selsdon for the 17:19 Coombe Road? ### Context: CREATE TABLE table_name_14 (selsdon VARCHAR, coombe_road VARCHAR) [/INST] ### Response: SELECT selsdon FROM table_name_14 WHERE coombe_road = "17:19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest win for losses less than 2? ### Context: CREATE TABLE table_name_65 (wins INTEGER, losses INTEGER) [/INST] ### Response: SELECT MAX(wins) FROM table_name_65 WHERE losses < 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 average Byes for the losses of 15, and before 1874? ### Context: CREATE TABLE table_name_46 (byes INTEGER, losses VARCHAR, against VARCHAR) [/INST] ### Response: SELECT AVG(byes) FROM table_name_46 WHERE losses = 15 AND against < 1874 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against in Ballarat FL of East Point and wins less than 16? ### Context: CREATE TABLE table_name_75 (against INTEGER, ballarat_fl VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT SUM(against) FROM table_name_75 WHERE ballarat_fl = "east point" AND wins < 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the School with a Pick that is 24? ### Context: CREATE TABLE table_name_99 (school VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT school FROM table_name_99 WHERE pick = 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 Team with a Player that is david cooper? ### Context: CREATE TABLE table_name_86 (team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT team FROM table_name_86 WHERE player = "david cooper" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitors in 2007 were there for ski jumping hill? ### Context: CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR) [/INST] ### Response: SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games, when Rebounds is greater than 100, when Name is Nikola Peković, and when Rank is less than 4? ### Context: CREATE TABLE table_name_26 (games INTEGER, rank VARCHAR, rebounds VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MAX(games) FROM table_name_26 WHERE rebounds > 100 AND name = "nikola peković" AND rank < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102? ### Context: CREATE TABLE table_name_99 (games VARCHAR, rank VARCHAR, rebounds VARCHAR) [/INST] ### Response: SELECT COUNT(games) FROM table_name_99 WHERE rank < 4 AND rebounds < 102 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Travis Watson, and when Rebounds is less than 136? ### Context: CREATE TABLE table_name_38 (games INTEGER, name VARCHAR, rebounds VARCHAR) [/INST] ### Response: SELECT MIN(games) FROM table_name_38 WHERE name = "travis watson" AND rebounds < 136 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14? ### Context: CREATE TABLE table_name_56 (rebounds INTEGER, team VARCHAR, games VARCHAR) [/INST] ### Response: SELECT SUM(rebounds) FROM table_name_56 WHERE team = "aris thessaloniki" AND games > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest Rank, when Name is Travis Watson, and when Games is less than 14? ### Context: CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_52 WHERE name = "travis watson" AND games < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name is Criocephalosaurus? ### Context: CREATE TABLE table_name_90 (authors VARCHAR, name VARCHAR, novelty VARCHAR, location VARCHAR) [/INST] ### Response: SELECT authors FROM table_name_90 WHERE novelty = "gen nov" AND location = "south africa" AND name = "criocephalosaurus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Status, when Location is Russia? ### Context: CREATE TABLE table_name_69 (status VARCHAR, location VARCHAR) [/INST] ### Response: SELECT status FROM table_name_69 WHERE location = "russia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus? ### Context: CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR) [/INST] ### Response: SELECT authors FROM table_name_13 WHERE novelty = "gen et sp nov" AND name = "lanthanocephalus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Authors are Kammerer & Sidor? ### Context: CREATE TABLE table_name_51 (name VARCHAR, authors VARCHAR) [/INST] ### Response: SELECT name FROM table_name_51 WHERE authors = "kammerer & sidor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Location is Tanzania, and when Novelty is Gen Nov? ### Context: CREATE TABLE table_name_88 (name VARCHAR, location VARCHAR, novelty VARCHAR) [/INST] ### Response: SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Status is Valid, when Authors is Maisch, when Location is Tanzania, and when Novelty is Gen Et Sp Nov? ### Context: CREATE TABLE table_name_24 (name VARCHAR, novelty VARCHAR, location VARCHAR, status VARCHAR, authors VARCHAR) [/INST] ### Response: SELECT name FROM table_name_24 WHERE status = "valid" AND authors = "maisch" AND location = "tanzania" AND novelty = "gen et sp nov" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T568A color for the cable with a white/orange stripe T568B color? ### Context: CREATE TABLE table_name_44 (t568a_color VARCHAR, t568b_color VARCHAR) [/INST] ### Response: SELECT t568a_color FROM table_name_44 WHERE t568b_color = "white/orange stripe" </s>