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 highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? ### Context: CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What scores did grand finalist hawthorn have? ### Context: CREATE TABLE table_name_63 (scores VARCHAR, grand_finalist VARCHAR) [/INST] ### Response: SELECT scores FROM table_name_63 WHERE grand_finalist = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What grand finalist had a year after 1979, a margin smaller than 30, and winners of essendon? ### Context: CREATE TABLE table_name_89 (grand_finalist VARCHAR, winners VARCHAR, year VARCHAR, margin VARCHAR) [/INST] ### Response: SELECT grand_finalist FROM table_name_89 WHERE year > 1979 AND margin < 30 AND winners = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640 ### Context: CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR) [/INST] ### Response: SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team played under 52 Reg GP, and picked 130? ### Context: CREATE TABLE table_name_23 (team__league_ VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT team__league_ FROM table_name_23 WHERE reg_gp < 52 AND pick__number = 130 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PL GP for a round greater than 9? ### Context: CREATE TABLE table_name_27 (pl_gp INTEGER, rd__number INTEGER) [/INST] ### Response: SELECT MAX(pl_gp) FROM table_name_27 WHERE rd__number > 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: Which title has a length of 4:22? ### Context: CREATE TABLE table_name_1 (title VARCHAR, time VARCHAR) [/INST] ### Response: SELECT title FROM table_name_1 WHERE time = "4: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: Which composer has a track length of 2:50? ### Context: CREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR) [/INST] ### Response: SELECT composer_s_ FROM table_name_33 WHERE time = "2:50" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title has a Black Ice for a guest performer and a length of 5:49? ### Context: CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guest performer has a track length of 5:49? ### Context: CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT guest_performer FROM table_name_8 WHERE time = "5:49" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 philadelphia visited? ### Context: CREATE TABLE table_name_38 (score VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_38 WHERE visitor = "philadelphia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the game with weekes recording the decision? ### Context: CREATE TABLE table_name_76 (attendance VARCHAR, decision VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_76 WHERE decision = "weekes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What digital channel does Three Angels Broadcasting Network own? ### Context: CREATE TABLE table_name_16 (Digital VARCHAR, owner VARCHAR) [/INST] ### Response: SELECT Digital AS channel FROM table_name_16 WHERE owner = "three angels broadcasting network" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Championship has Scores of 6–3, 2–6, 3–6, 6–3, 3–6? ### Context: CREATE TABLE table_name_27 (championship VARCHAR, score VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_27 WHERE score = "6–3, 2–6, 3–6, 6–3, 3–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game where Geelong was the away team? ### Context: CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_43 WHERE away_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the venue of the game where Geelong was the away team? ### Context: CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_61 WHERE away_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game where St Kilda is the home team? ### Context: CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_9 WHERE home_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team's score of the game where South Melbourne is the away team? ### Context: CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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's score of the game where the away team is Geelong? ### Context: CREATE TABLE table_name_1 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003? ### Context: CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 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: On what date did a friendly competition, hosted in Dubai, result in a draw? ### Context: CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_79 WHERE result = "draw" AND competition = "friendly" AND venue = "dubai" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hosted a match with a 3-0 score on December 7, 2002? ### Context: CREATE TABLE table_name_31 (venue VARCHAR, score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_31 WHERE score = "3-0" AND date = "december 7, 2002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What competition resulted in 2-0 score, hosted in Amman? ### Context: CREATE TABLE table_name_23 (competition VARCHAR, score VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_23 WHERE score = "2-0" AND venue = "amman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was Kuwait City a venue? ### Context: CREATE TABLE table_name_29 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_29 WHERE venue = "kuwait city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mariners play when their record was 26–32? ### Context: CREATE TABLE table_name_70 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_70 WHERE record = "26–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 was the Vanwall time/retired with 49 laps? ### Context: CREATE TABLE table_name_37 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_37 WHERE laps = 49 AND constructor = "vanwall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps did the grid 1 engine have? ### Context: CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 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 highest lap for Luigi Piotti with more than 13 grid and a time/retired engine? ### Context: CREATE TABLE table_name_19 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_19 WHERE grid > 13 AND time_retired = "engine" AND driver = "luigi piotti" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Cornerback has the lowest Pick # and Round of less than 1? ### Context: CREATE TABLE table_name_16 (pick__number INTEGER, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MIN(pick__number) FROM table_name_16 WHERE position = "cornerback" AND round < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Position of Pick #77? ### Context: CREATE TABLE table_name_25 (position VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT position FROM table_name_25 WHERE pick__number = 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: How many attended the game on August 12? ### Context: CREATE TABLE table_name_52 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(attendance) FROM table_name_52 WHERE date = "august 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest crowd with Home team of hawthorn? ### Context: CREATE TABLE table_name_62 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_62 WHERE home_team = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the home team score with Fitzroy as away team? ### Context: CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_91 WHERE away_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is glenferrie oval's home team? ### Context: CREATE TABLE table_name_59 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_59 WHERE venue = "glenferrie oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Super G value for the season that has an Overall score of 16? ### Context: CREATE TABLE table_name_8 (super_g VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT super_g FROM table_name_8 WHERE overall = "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 oldest season that had a listed Super G score of 33? ### Context: CREATE TABLE table_name_34 (season INTEGER, super_g VARCHAR) [/INST] ### Response: SELECT MIN(season) FROM table_name_34 WHERE super_g = "33" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's Season had an Overall of 77? ### Context: CREATE TABLE table_name_70 (season VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT season FROM table_name_70 WHERE overall = "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 high rank for players earning over $533,929? ### Context: CREATE TABLE table_name_13 (rank INTEGER, earnings___$__ INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_13 WHERE earnings___$__ > 533 OFFSET 929 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 3 wins and ranks above 3rd? ### Context: CREATE TABLE table_name_51 (player VARCHAR, wins VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 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 Time/Retired for emerson fittipaldi? ### Context: CREATE TABLE table_name_14 (time_retired VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_14 WHERE driver = "emerson fittipaldi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 long for the player with 26 carries? ### Context: CREATE TABLE table_name_60 (long VARCHAR, car VARCHAR) [/INST] ### Response: SELECT long FROM table_name_60 WHERE car = 26 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 carries for the player with a 2 yard long? ### Context: CREATE TABLE table_name_86 (car VARCHAR, long VARCHAR) [/INST] ### Response: SELECT COUNT(car) FROM table_name_86 WHERE long = "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 long for the player with under 30 carries and 0 yards? ### Context: CREATE TABLE table_name_78 (long VARCHAR, car VARCHAR, yards VARCHAR) [/INST] ### Response: SELECT long FROM table_name_78 WHERE car < 30 AND yards = "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: How many wins were there in the 2000 season in the central division with less than 81 losses? ### Context: CREATE TABLE table_name_85 (wins INTEGER, losses VARCHAR, division VARCHAR, reds_season VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_85 WHERE division = "central" AND reds_season < 2000 AND losses < 81 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentages of wins in 1989 with a GB [c] of 17? ### Context: CREATE TABLE table_name_59 (win_percentage INTEGER, reds_season VARCHAR, gb_ VARCHAR, c_ VARCHAR) [/INST] ### Response: SELECT MIN(win_percentage) FROM table_name_59 WHERE gb_[c_] = "17" AND reds_season = 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: How many losses did the 1943 MLB have? ### Context: CREATE TABLE table_name_61 (losses INTEGER, mlb_season VARCHAR) [/INST] ### Response: SELECT AVG(losses) FROM table_name_61 WHERE mlb_season = "1943" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins in a season less than 1915 with a 7th finish and 0.429 win %? ### Context: CREATE TABLE table_name_74 (wins INTEGER, reds_season VARCHAR, finish VARCHAR, win_percentage VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_74 WHERE finish = "7th" AND win_percentage > 0.429 AND reds_season < 1915 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1900 with 62 wins and a win percentage less than 0.457, what was the GB [c]? ### Context: CREATE TABLE table_name_98 (gb_ VARCHAR, c_ VARCHAR, reds_season VARCHAR, win_percentage VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT gb_[c_] FROM table_name_98 WHERE win_percentage < 0.457 AND wins = 62 AND reds_season = 1900 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which record has a score of 7–6 (12)? ### Context: CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR) [/INST] ### Response: SELECT record FROM table_name_77 WHERE score = "7–6 (12)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the record 59–59? ### Context: CREATE TABLE table_name_62 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_62 WHERE record = "59–59" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What loss occurred on August 21? ### Context: CREATE TABLE table_name_57 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_57 WHERE date = "august 21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1985 value that has a 1990 value of 93? ### Context: CREATE TABLE table_name_27 (Id VARCHAR) [/INST] ### Response: SELECT MAX(1985) FROM table_name_27 WHERE 1990 = 93 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2000 value that has a 2010 value of 82 and a 2005 value less than 74? ### Context: CREATE TABLE table_name_51 (Id VARCHAR) [/INST] ### Response: SELECT MAX(2000) FROM table_name_51 WHERE 2010 = 82 AND 2005 < 74 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1995 value with a Jiangxi year and a 2008 value bigger than 67? ### Context: CREATE TABLE table_name_7 (year VARCHAR) [/INST] ### Response: SELECT SUM(1995) FROM table_name_7 WHERE year = "jiangxi" AND 2008 > 67 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2009 value with a 2010 value of 141 and a 1985 value bigger than 165? ### Context: CREATE TABLE table_name_18 (Id VARCHAR) [/INST] ### Response: SELECT MIN(2009) FROM table_name_18 WHERE 2010 = 141 AND 1985 > 165 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1995 value with a 2005 value bigger than 74, a 2008 value of 84, and a 2000 value less than 80? ### Context: CREATE TABLE table_name_35 (Id VARCHAR) [/INST] ### Response: SELECT SUM(1995) FROM table_name_35 WHERE 2005 > 74 AND 2008 = 84 AND 2000 < 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: What label is after 2004? ### Context: CREATE TABLE table_name_24 (label VARCHAR, year INTEGER) [/INST] ### Response: SELECT label FROM table_name_24 WHERE year > 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Format and Special Notes for of the pact: ...of the gods? ### Context: CREATE TABLE table_name_23 (format VARCHAR, _special_notes VARCHAR, title VARCHAR) [/INST] ### Response: SELECT format, _special_notes FROM table_name_23 WHERE title = "the pact: ...of the gods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What movie has noxialicht as a track? ### Context: CREATE TABLE table_name_98 (title VARCHAR, tracks VARCHAR) [/INST] ### Response: SELECT title FROM table_name_98 WHERE tracks = "noxialicht" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gold medals of a rank 12 team? ### Context: CREATE TABLE table_name_81 (gold INTEGER, rank VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_81 WHERE rank = "12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of bronze medals of the team with more than 8 silvers and a total of 50 medals? ### Context: CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(bronze) FROM table_name_67 WHERE silver > 8 AND total = 50 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gold medals Uzbekistan, which has less than 24 total medals, has? ### Context: CREATE TABLE table_name_65 (gold INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(gold) FROM table_name_65 WHERE nation = "uzbekistan" AND total < 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: Which open cup was after 1993? ### Context: CREATE TABLE table_name_18 (open_cup VARCHAR, year INTEGER) [/INST] ### Response: SELECT open_cup FROM table_name_18 WHERE year > 1993 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had playoffs of champion? ### Context: CREATE TABLE table_name_27 (year INTEGER, playoffs VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What divisions was in the year 1993? ### Context: CREATE TABLE table_name_93 (division VARCHAR, year VARCHAR) [/INST] ### Response: SELECT division FROM table_name_93 WHERE year = 1993 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 UK base has 441st tcg Troop carrier group and 14 as their seir serial? ### Context: CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR) [/INST] ### Response: SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "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 Drop Zone time for the 439th tcg Troop Carrier Group with more tham 36 C-47s? ### Context: CREATE TABLE table_name_27 (drop_zone VARCHAR, troop_carrier_group VARCHAR, _number_of_c_47s VARCHAR) [/INST] ### Response: SELECT drop_zone AS Time FROM table_name_27 WHERE troop_carrier_group = "439th tcg" AND _number_of_c_47s > 36 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid placement for the Maserati that completed 14 laps? ### Context: CREATE TABLE table_name_40 (grid VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_40 WHERE constructor = "maserati" AND laps = 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 company built the car driven by Tony Brooks? ### Context: CREATE TABLE table_name_69 (constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_69 WHERE driver = "tony brooks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on the date of May 2? ### Context: CREATE TABLE table_name_54 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_54 WHERE date = "may 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 city was a visitor on the date of April 30? ### Context: CREATE TABLE table_name_74 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_74 WHERE date = "april 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On the date of April 22, which city was a visitor? ### Context: CREATE TABLE table_name_5 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_5 WHERE date = "april 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 visitor has Ottawa as a home and a date of April 26? ### Context: CREATE TABLE table_name_20 (visitor VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_20 WHERE home = "ottawa" AND date = "april 26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Paino Hehea's date of birth? ### Context: CREATE TABLE table_name_46 (date_of_birth__age_ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT date_of_birth__age_ FROM table_name_46 WHERE player = "paino hehea" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want to know the location that has a record of 3-0 ### Context: CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_66 WHERE record = "3-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: Tell me the record for round more than 1 ### Context: CREATE TABLE table_name_63 (record VARCHAR, round INTEGER) [/INST] ### Response: SELECT record FROM table_name_63 WHERE round > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want to know the method for opponent of jerry bohlander ### Context: CREATE TABLE table_name_71 (method VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT method FROM table_name_71 WHERE opponent = "jerry bohlander" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 belongs to the Bologna Milan club? ### Context: CREATE TABLE table_name_62 (player VARCHAR, club VARCHAR) [/INST] ### Response: SELECT player FROM table_name_62 WHERE club = "bologna milan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the opponent on June 6? ### Context: CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_23 WHERE date = "june 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game at Commerce Bank Ballpark? ### Context: CREATE TABLE table_name_67 (date VARCHAR, field VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE field = "commerce bank ballpark" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the game at Bishop Kearney Field on August 2? ### Context: CREATE TABLE table_name_98 (result VARCHAR, field VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_98 WHERE field = "bishop kearney field" AND date = "august 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent of the game at Homewood field? ### Context: CREATE TABLE table_name_86 (opponent VARCHAR, field VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_86 WHERE field = "homewood field" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the game at Bishop Kearney Field on August 2? ### Context: CREATE TABLE table_name_24 (result VARCHAR, field VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_24 WHERE field = "bishop kearney field" AND date = "august 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 time of the rider with a speed of 102.962mph? ### Context: CREATE TABLE table_name_92 (time VARCHAR, speed VARCHAR) [/INST] ### Response: SELECT time FROM table_name_92 WHERE speed = "102.962mph" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rider who had the time of 1:27.37.22? ### Context: CREATE TABLE table_name_52 (rider VARCHAR, time VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_52 WHERE time = "1:27.37.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: Who is the rider who has a rank lower than 10, and a time of 1:26.31.20? ### Context: CREATE TABLE table_name_57 (rider VARCHAR, rank VARCHAR, time VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_57 WHERE rank < 10 AND time = "1:26.31.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 date was the Circuit of Indianapolis? ### Context: CREATE TABLE table_name_33 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_33 WHERE circuit = "indianapolis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor at the Argentine Grand Prix? ### Context: CREATE TABLE table_name_21 (constructor VARCHAR, race VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_21 WHERE race = "argentine grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Circuit of Indianapolis? ### Context: CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_83 WHERE circuit = "indianapolis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver of the Argentine Grand Prix? ### Context: CREATE TABLE table_name_96 (winning_driver VARCHAR, race VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_96 WHERE race = "argentine grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Juan Manuel Fangio's reported pole position and the tire of C? ### Context: CREATE TABLE table_name_34 (report VARCHAR, pole_position VARCHAR, tyre VARCHAR) [/INST] ### Response: SELECT report FROM table_name_34 WHERE pole_position = "juan manuel fangio" AND tyre = "c" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Attendance when the Home team was Montreal, on the Date of March 24? ### Context: CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_59 WHERE home = "montreal" AND date = "march 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 was the Score on March 15? ### Context: CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_8 WHERE date = "march 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 school does Dell Curry play for? ### Context: CREATE TABLE table_name_48 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_48 WHERE player = "dell curry" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school does John Crotty play for? ### Context: CREATE TABLE table_name_35 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_35 WHERE player = "john crotty" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school does Wayne Cooper play for? ### Context: CREATE TABLE table_name_76 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_76 WHERE player = "wayne 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: Who has greater than 8 Long and a 73 Yards? ### Context: CREATE TABLE table_name_84 (player VARCHAR, long VARCHAR, yards VARCHAR) [/INST] ### Response: SELECT player FROM table_name_84 WHERE long > 8 AND yards = "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: Who has a highest Long with 26 Yards and less than 9 Car? ### Context: CREATE TABLE table_name_84 (long INTEGER, yards VARCHAR, car VARCHAR) [/INST] ### Response: SELECT MAX(long) FROM table_name_84 WHERE yards = "26" AND car < 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has the highest Long with 59 Car? ### Context: CREATE TABLE table_name_91 (long INTEGER, car VARCHAR) [/INST] ### Response: SELECT MAX(long) FROM table_name_91 WHERE car = 59 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the previous rank for italy with points more than 100 ### Context: CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR) [/INST] ### Response: SELECT Previous AS rank FROM table_name_92 WHERE nationality = "italy" AND points > 100 </s>