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 is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap? ### Context: CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_42 WHERE constructor = "tyrrell - yamaha" AND time_retired = "+ 1 lap" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low lap total for a grid of 14? ### Context: CREATE TABLE table_name_12 (laps INTEGER, grid VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_12 WHERE grid = 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: How many laps for martin brundle with a grid of less than 10? ### Context: CREATE TABLE table_name_54 (laps VARCHAR, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_54 WHERE driver = "martin brundle" AND grid < 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the average points in the quarterfinals domestic cup? ### Context: CREATE TABLE table_name_72 (points INTEGER, domestic_cup VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_72 WHERE domestic_cup = "quarterfinals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 level is quarterfinals domestic cup? ### Context: CREATE TABLE table_name_22 (level VARCHAR, domestic_cup VARCHAR) [/INST] ### Response: SELECT level FROM table_name_22 WHERE domestic_cup = "quarterfinals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What format is catalogue 148615 in? ### Context: CREATE TABLE table_name_78 (format VARCHAR, catalogue VARCHAR) [/INST] ### Response: SELECT format FROM table_name_78 WHERE catalogue = "148615" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region was on June 8, 2004? ### Context: CREATE TABLE table_name_7 (region VARCHAR, date VARCHAR) [/INST] ### Response: SELECT region FROM table_name_7 WHERE date = "june 8, 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 format is catalogue WPCR13504 in? ### Context: CREATE TABLE table_name_94 (format VARCHAR, catalogue VARCHAR) [/INST] ### Response: SELECT format FROM table_name_94 WHERE catalogue = "wpcr13504" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What format is the Catalogue 9362486152 from the region of Australia in? ### Context: CREATE TABLE table_name_79 (format VARCHAR, catalogue VARCHAR, region VARCHAR) [/INST] ### Response: SELECT format FROM table_name_79 WHERE catalogue = "9362486152" AND region = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What region is the catalogue number 9362486152 that was from September 3, 2004 from? ### Context: CREATE TABLE table_name_50 (region VARCHAR, catalogue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT region FROM table_name_50 WHERE catalogue = "9362486152" AND date = "september 3, 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 region is the catalogue released on June 8, 2004 from? ### Context: CREATE TABLE table_name_88 (region VARCHAR, date VARCHAR) [/INST] ### Response: SELECT region FROM table_name_88 WHERE date = "june 8, 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 day is carlton the home side? ### Context: CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_87 WHERE home_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's score when south melbourne is away? ### Context: CREATE TABLE table_name_23 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_23 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: Tell me the listed when cerclis id is msd004006995 ### Context: CREATE TABLE table_name_17 (listed VARCHAR, cerclis_id VARCHAR) [/INST] ### Response: SELECT listed FROM table_name_17 WHERE cerclis_id = "msd004006995" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5? ### Context: CREATE TABLE table_name_2 (rank__timeslot_ INTEGER, rank__night_ VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT AVG(rank__timeslot_) FROM table_name_2 WHERE rating > 2.9 AND rating / SHARE(18 - 49) = 2.6 / 8 AND rank__night_ > 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 smallest rating with nightly rank smaller than 7, timeslot rank smaller than 5 and eposide after episode 6? ### Context: CREATE TABLE table_name_27 (rating INTEGER, episode VARCHAR, rank__night_ VARCHAR, rank__timeslot_ VARCHAR) [/INST] ### Response: SELECT MIN(rating) FROM table_name_27 WHERE rank__night_ < 7 AND rank__timeslot_ < 5 AND episode > 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 lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8? ### Context: CREATE TABLE table_name_91 (rank__night_ INTEGER, episode VARCHAR, rating VARCHAR) [/INST] ### Response: SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 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 timeslot rank when the rating is smaller than 2.6 and the share is more than 4? ### Context: CREATE TABLE table_name_97 (rank__timeslot_ INTEGER, rating VARCHAR, share VARCHAR) [/INST] ### Response: SELECT AVG(rank__timeslot_) FROM table_name_97 WHERE rating < 2.6 AND share > 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 smallest timeslot rank when the rating is smaller than 2.6? ### Context: CREATE TABLE table_name_29 (rank__timeslot_ INTEGER, rating INTEGER) [/INST] ### Response: SELECT MIN(rank__timeslot_) FROM table_name_29 WHERE rating < 2.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 away team played at Kardinia Park? ### Context: CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_24 WHERE venue = "kardinia park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team played Hawthorn? ### Context: CREATE TABLE table_name_82 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_82 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 total wins with less than 21 goals taken? ### Context: CREATE TABLE table_name_19 (wins INTEGER, goals_against INTEGER) [/INST] ### Response: SELECT SUM(wins) FROM table_name_19 WHERE goals_against < 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 date of game 59? ### Context: CREATE TABLE table_name_96 (date VARCHAR, game VARCHAR) [/INST] ### Response: SELECT date FROM table_name_96 WHERE game = 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 player is a lock with 1 cap? ### Context: CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 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 position does ceri sweeney with under 87 caps of the newport gwent dragons play? ### Context: CREATE TABLE table_name_41 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT position FROM table_name_41 WHERE club_province = "newport gwent dragons" AND caps < 87 AND player = "ceri sweeney" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 12 caps? ### Context: CREATE TABLE table_name_36 (player VARCHAR, caps VARCHAR) [/INST] ### Response: SELECT player FROM table_name_36 WHERE caps = 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: Tell me the Shuji Kondo for MAZADA of X with Ryuji Hijikata of hijikata (14:24) ### Context: CREATE TABLE table_name_90 (shuji_kondo VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR) [/INST] ### Response: SELECT shuji_kondo FROM table_name_90 WHERE mazada = "x" AND ryuji_hijikata = "hijikata (14: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: Name the El samurai with MAZADA of x for Ryuji Hijikata of draw (30:00) ### Context: CREATE TABLE table_name_30 (el_samurai VARCHAR, mazada VARCHAR, ryuji_hijikata VARCHAR) [/INST] ### Response: SELECT el_samurai FROM table_name_30 WHERE mazada = "x" AND ryuji_hijikata = "draw (30:00)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the MAZADA for El Samurai of mazada (16:22) ### Context: CREATE TABLE table_name_67 (mazada VARCHAR, el_samurai VARCHAR) [/INST] ### Response: SELECT mazada FROM table_name_67 WHERE el_samurai = "mazada (16: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: Name the Shuji Kondo for MAZADA of hijikata (14:24) ### Context: CREATE TABLE table_name_61 (shuji_kondo VARCHAR, mazada VARCHAR) [/INST] ### Response: SELECT shuji_kondo FROM table_name_61 WHERE mazada = "hijikata (14: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: when was the building withdrawn when the builder was ac cars and was introduced before 1958? ### Context: CREATE TABLE table_name_78 (withdrawn INTEGER, builder VARCHAR, introduced VARCHAR) [/INST] ### Response: SELECT SUM(withdrawn) FROM table_name_78 WHERE builder = "ac cars" AND introduced < 1958 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 decision on october 5? ### Context: CREATE TABLE table_name_44 (decision VARCHAR, date VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_44 WHERE date = "october 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who played home team at Victoria Park? ### Context: CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_41 WHERE venue = "victoria park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Season has Goals greater than 0 and less than 33 Apps? ### Context: CREATE TABLE table_name_34 (season VARCHAR, goals VARCHAR, apps VARCHAR) [/INST] ### Response: SELECT season FROM table_name_34 WHERE goals > 0 AND apps < 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: How many carries for the RB averaging 4.7, and a long of over 30 yards? ### Context: CREATE TABLE table_name_65 (car INTEGER, avg VARCHAR, long VARCHAR) [/INST] ### Response: SELECT SUM(car) FROM table_name_65 WHERE avg = 4.7 AND long > 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: How many yards did kevin swayne average, with a long carry over 7? ### Context: CREATE TABLE table_name_43 (avg INTEGER, player VARCHAR, long VARCHAR) [/INST] ### Response: SELECT MIN(avg) FROM table_name_43 WHERE player = "kevin swayne" AND long > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the catalogue for Harbor Lights as a title? ### Context: CREATE TABLE table_name_59 (catalogue VARCHAR, song_title VARCHAR) [/INST] ### Response: SELECT catalogue FROM table_name_59 WHERE song_title = "harbor lights" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What cataglogue has 27 tracks? ### Context: CREATE TABLE table_name_51 (catalogue VARCHAR, track VARCHAR) [/INST] ### Response: SELECT catalogue FROM table_name_51 WHERE track = 27 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first played with Double W-L of 8–3? ### Context: CREATE TABLE table_name_12 (first_year_played VARCHAR, doubles_w_l VARCHAR) [/INST] ### Response: SELECT first_year_played FROM table_name_12 WHERE doubles_w_l = "8–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 height that has a year after 1983 and is named Phoenix Tower? ### Context: CREATE TABLE table_name_28 (height_ft___m VARCHAR, year VARCHAR, name VARCHAR) [/INST] ### Response: SELECT height_ft___m FROM table_name_28 WHERE year > 1983 AND name = "phoenix tower" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year listed with the 1500 Louisiana Street name? ### Context: CREATE TABLE table_name_87 (year INTEGER, name VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_87 WHERE name = "1500 louisiana street" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height of rank 11? ### Context: CREATE TABLE table_name_32 (height_ft___m VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT height_ft___m FROM table_name_32 WHERE rank = "11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest enrollment for anglican day schools founded after 1929? ### Context: CREATE TABLE table_name_82 (enrolment INTEGER, founded VARCHAR, denomination VARCHAR, day_boarding VARCHAR) [/INST] ### Response: SELECT MAX(enrolment) FROM table_name_82 WHERE denomination = "anglican" AND day_boarding = "day" AND founded > 1929 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of license is associated with call sign w244bk? ### Context: CREATE TABLE table_name_44 (city_of_license VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_44 WHERE call_sign = "w244bk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of license has a Frequency under 107.7, and a call sign of w247aq? ### Context: CREATE TABLE table_name_52 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_52 WHERE frequency_mhz < 107.7 AND call_sign = "w247aq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was played against on the game where Earl Watson (6) had the highest assists on January 19? ### Context: CREATE TABLE table_name_19 (team VARCHAR, high_assists VARCHAR, date VARCHAR) [/INST] ### Response: SELECT team FROM table_name_19 WHERE high_assists = "earl watson (6)" AND date = "january 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: A singular abbreviation of p. is used for what singular word? ### Context: CREATE TABLE table_name_18 (singular_word VARCHAR, singular_abbreviation VARCHAR) [/INST] ### Response: SELECT singular_word FROM table_name_18 WHERE singular_abbreviation = "p." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: A plural abbreviation of pp. is used for what singular word? ### Context: CREATE TABLE table_name_82 (singular_word VARCHAR, plural_abbreviation VARCHAR) [/INST] ### Response: SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = "pp." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plural word of hands uses what singular word? ### Context: CREATE TABLE table_name_24 (singular_word VARCHAR, plural_word VARCHAR) [/INST] ### Response: SELECT singular_word FROM table_name_24 WHERE plural_word = "hands" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plural word of following lines or pages has what plural abbreviation? ### Context: CREATE TABLE table_name_21 (plural_abbreviation VARCHAR, plural_word VARCHAR) [/INST] ### Response: SELECT plural_abbreviation FROM table_name_21 WHERE plural_word = "following lines or pages" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plural abbreviation of ll. uses what plural word? ### Context: CREATE TABLE table_name_94 (plural_word VARCHAR, plural_abbreviation VARCHAR) [/INST] ### Response: SELECT plural_word FROM table_name_94 WHERE plural_abbreviation = "ll." </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 singular word of hand uses what plural word? ### Context: CREATE TABLE table_name_20 (plural_word VARCHAR, singular_word VARCHAR) [/INST] ### Response: SELECT plural_word FROM table_name_20 WHERE singular_word = "hand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much did the home team st kilda score? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_76 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: When the crowd was larger than 7,500 what was the away teams score? ### Context: CREATE TABLE table_name_84 (away_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT away_team AS score FROM table_name_84 WHERE crowd > 7 OFFSET 500 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the total number of people to attend games at junction oval? ### Context: CREATE TABLE table_name_42 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_42 WHERE venue = "junction 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: How many people have attended victoria park? ### Context: CREATE TABLE table_name_62 (crowd VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_62 WHERE venue = "victoria park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people voted in the election of 1941? ### Context: CREATE TABLE table_name_79 (number_of_votes VARCHAR, election VARCHAR) [/INST] ### Response: SELECT number_of_votes FROM table_name_79 WHERE election = 1941 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidate lost the election that 770,046 people voted in? ### Context: CREATE TABLE table_name_99 (candidate VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR) [/INST] ### Response: SELECT candidate FROM table_name_99 WHERE outcome_of_election = "lost" AND number_of_votes = "770,046" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidate won 61.47% of the votes? ### Context: CREATE TABLE table_name_82 (candidate VARCHAR, share_of_votes VARCHAR) [/INST] ### Response: SELECT candidate FROM table_name_82 WHERE share_of_votes = "61.47%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What percentage of votes did the candidate win in the election of 1969? ### Context: CREATE TABLE table_name_26 (share_of_votes VARCHAR, election VARCHAR) [/INST] ### Response: SELECT share_of_votes FROM table_name_26 WHERE election = 1969 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GWR numbers had a quantity less than 2 when the M&SWJ number was 9? ### Context: CREATE TABLE table_name_79 (gwr_nos VARCHAR, quantity VARCHAR, m VARCHAR, swj_nos VARCHAR) [/INST] ### Response: SELECT gwr_nos FROM table_name_79 WHERE quantity < 2 AND m & swj_nos = "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 manucfaturer's type was 2-6-0? ### Context: CREATE TABLE table_name_68 (manufacturer VARCHAR, type VARCHAR) [/INST] ### Response: SELECT manufacturer FROM table_name_68 WHERE type = "2-6-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 was the score of the game when the Devils had a record of 14–10–2? ### Context: CREATE TABLE table_name_61 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_61 WHERE record = "14–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 the game when the Devils had a record of 21–14–3? ### Context: CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_49 WHERE record = "21–14–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 distance did the winning horse run in the Summer Doldrums. ### Context: CREATE TABLE table_name_7 (distance VARCHAR, winning_horse VARCHAR) [/INST] ### Response: SELECT distance FROM table_name_7 WHERE winning_horse = "summer doldrums" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jockey for the winning horse Rafael Bejarano? ### Context: CREATE TABLE table_name_81 (winning_horse VARCHAR, winning_jockey VARCHAR) [/INST] ### Response: SELECT winning_horse FROM table_name_81 WHERE winning_jockey = "rafael bejarano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race with the track distance of 6 furlongs and spectacular bid stakes? ### Context: CREATE TABLE table_name_29 (track VARCHAR, distance VARCHAR, race VARCHAR) [/INST] ### Response: SELECT track FROM table_name_29 WHERE distance = "6 furlongs" AND race = "spectacular bid stakes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what race did Dominican win with a distance of 1-1/16 miles? ### Context: CREATE TABLE table_name_57 (race VARCHAR, winning_horse VARCHAR, distance VARCHAR) [/INST] ### Response: SELECT race FROM table_name_57 WHERE winning_horse = "dominican" AND distance = "1-1/16 miles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament since 1973 has a result of 1st? ### Context: CREATE TABLE table_name_66 (tournament VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_66 WHERE result = "1st" AND year > 1973 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what tournament was there an extra of 400 m hurdles? ### Context: CREATE TABLE table_name_31 (tournament VARCHAR, extra VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_31 WHERE extra = "400 m hurdles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in Year 1973? ### Context: CREATE TABLE table_name_97 (result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_97 WHERE year = 1973 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which year was the Tournament of european indoor championships played where the Extra was 800 m and the Result was 2nd? ### Context: CREATE TABLE table_name_95 (year VARCHAR, result VARCHAR, extra VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT year FROM table_name_95 WHERE extra = "800 m" AND tournament = "european indoor championships" AND result = "2nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is from Chula Vista, Ca? ### Context: CREATE TABLE table_name_29 (player VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT player FROM table_name_29 WHERE hometown = "chula vista, ca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What MLB draft has Shaun Boyd? ### Context: CREATE TABLE table_name_80 (mlb_draft VARCHAR, player VARCHAR) [/INST] ### Response: SELECT mlb_draft FROM table_name_80 WHERE player = "shaun boyd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the college/junior/club team (league) when the round is more than 2 and the player is bert robertsson (d)? ### Context: CREATE TABLE table_name_96 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_96 WHERE round > 2 AND player = "bert robertsson (d)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the college/junior/club team (league) when the round is less than 7? ### Context: CREATE TABLE table_name_82 (college_junior_club_team__league_ VARCHAR, round INTEGER) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_82 WHERE round < 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the nhl team for round 10? ### Context: CREATE TABLE table_name_92 (nhl_team VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nhl_team FROM table_name_92 WHERE round = 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the highest round when the player is troy creurer (d)? ### Context: CREATE TABLE table_name_90 (round INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_90 WHERE player = "troy creurer (d)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent on week 3? ### Context: CREATE TABLE table_name_10 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_10 WHERE week = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What chapter is located in Normal, Illinois? ### Context: CREATE TABLE table_name_65 (chapter VARCHAR, location VARCHAR) [/INST] ### Response: SELECT chapter FROM table_name_65 WHERE location = "normal, illinois" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position for tb2l teams promoted champion? ### Context: CREATE TABLE table_name_79 (pos INTEGER, league VARCHAR, postseason VARCHAR) [/INST] ### Response: SELECT AVG(pos) FROM table_name_79 WHERE league = "tb2l" AND postseason = "promoted 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: How many teams were promoted in the postseason in a tier above 2? ### Context: CREATE TABLE table_name_51 (pos VARCHAR, postseason VARCHAR, tier VARCHAR) [/INST] ### Response: SELECT COUNT(pos) FROM table_name_51 WHERE postseason = "promoted" AND tier < 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 Home team score At Windy Hill? ### Context: CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_48 WHERE venue = "windy 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: Who is the partner in the final with a score of 2–6, 7–6, 7–6? ### Context: CREATE TABLE table_name_10 (partner VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_10 WHERE score_in_the_final = "2–6, 7–6, 7–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: On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7? ### Context: CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the highest crowd at the venue MCG? ### Context: CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_97 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score at the Windy Hill venue? ### Context: CREATE TABLE table_name_8 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_8 WHERE venue = "windy 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: Where was the game when Melbourne was the away team? ### Context: CREATE TABLE table_name_53 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_53 WHERE away_team = "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 was the away score when the game was at Brunswick Street Oval? ### Context: CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_70 WHERE venue = "brunswick street 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: How many rounds were run at Calder Park? ### Context: CREATE TABLE table_name_28 (round VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_28 WHERE circuit = "calder park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which state can you find the Sandown circuit? ### Context: CREATE TABLE table_name_74 (state VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT state FROM table_name_74 WHERE circuit = "sandown" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds were run in New South Wales? ### Context: CREATE TABLE table_name_84 (round VARCHAR, state VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_84 WHERE state = "new south wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver from 1969? ### Context: CREATE TABLE table_name_42 (driver VARCHAR, year VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_42 WHERE year = "1969" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver in 1964? ### Context: CREATE TABLE table_name_83 (driver VARCHAR, year VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_83 WHERE year = "1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 diff with drawn of 6 and play larger than 18? ### Context: CREATE TABLE table_name_68 (diff INTEGER, drawn VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many games were played when the loss is less than 5 and points greater than 41? ### Context: CREATE TABLE table_name_85 (played INTEGER, lost VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_85 WHERE lost < 5 AND points > 41 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 genes are in species burkholderia pseudomallei with 4,126,292 base pairs? ### Context: CREATE TABLE table_name_13 (genes VARCHAR, species VARCHAR, base_pairs VARCHAR) [/INST] ### Response: SELECT genes FROM table_name_13 WHERE species = "burkholderia pseudomallei" AND base_pairs = "4,126,292" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 strain has 1,312 genes? ### Context: CREATE TABLE table_name_50 (strain VARCHAR, genes VARCHAR) [/INST] ### Response: SELECT strain FROM table_name_50 WHERE genes = "1,312" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gene has 4,895,836 base pairs? ### Context: CREATE TABLE table_name_94 (genes VARCHAR, base_pairs VARCHAR) [/INST] ### Response: SELECT genes FROM table_name_94 WHERE base_pairs = "4,895,836" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 species has 3,441 genes? ### Context: CREATE TABLE table_name_58 (species VARCHAR, genes VARCHAR) [/INST] ### Response: SELECT species FROM table_name_58 WHERE genes = "3,441" </s>