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 round saw the ground of telstra dome and shaun burgoyne as nominees? ### Context: CREATE TABLE table_name_79 (round INTEGER, ground VARCHAR, nominees VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What has the lowest number of wins with GA smaller than 39, more than 2 losses, and ties greater than 0? ### Context: CREATE TABLE table_name_17 (wins INTEGER, ties VARCHAR, goals_against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_17 WHERE goals_against < 39 AND losses > 2 AND ties > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has the most ties with fewer than 4 losses and GA smaller than 20? ### Context: CREATE TABLE table_name_56 (ties INTEGER, losses VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MAX(ties) FROM table_name_56 WHERE losses < 4 AND goals_against < 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: How many games did the team lose that played 7 games and has a GA of less than 27? ### Context: CREATE TABLE table_name_1 (losses VARCHAR, games_played VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT COUNT(losses) FROM table_name_1 WHERE games_played = 7 AND goals_against < 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: what date saw the chicago bears lose in green bay earlier than 1931? ### Context: CREATE TABLE table_name_12 (date VARCHAR, year VARCHAR, loser VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_12 WHERE loser = "chicago bears" AND location = "green bay" AND year < 1931 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Away team Melbourne? ### Context: CREATE TABLE table_name_89 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_89 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 is the years for the displacement 4.0l (242cid)? ### Context: CREATE TABLE table_name_35 (years VARCHAR, displacement VARCHAR) [/INST] ### Response: SELECT years FROM table_name_35 WHERE displacement = "4.0l (242cid)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine has a torgue of lb·ft (n·m)? ### Context: CREATE TABLE table_name_67 (engine VARCHAR, torque VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_67 WHERE torque = "lb·ft (n·m)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years for the team with under 31 ties and a percentage of 0.5451? ### Context: CREATE TABLE table_name_15 (years VARCHAR, tied VARCHAR, pct VARCHAR) [/INST] ### Response: SELECT years FROM table_name_15 WHERE tied < 31 AND pct = 0.5451 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tied for the air force with over 57 years participating? ### Context: CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR) [/INST] ### Response: SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the description where the date is 1911? ### Context: CREATE TABLE table_name_58 (description VARCHAR, date VARCHAR) [/INST] ### Response: SELECT description FROM table_name_58 WHERE date = 1911 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number and name where the date is earlier than 1905? ### Context: CREATE TABLE table_name_37 (number_ VARCHAR, _name VARCHAR, date INTEGER) [/INST] ### Response: SELECT number_ & _name FROM table_name_37 WHERE date < 1905 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was the name mount roskill grammar school? ### Context: CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR) [/INST] ### Response: SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 melbourne played as the home team, who did they play? ### Context: CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_41 WHERE home_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: When the home team was geelong, who played as the away team? ### Context: CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_80 WHERE home_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: If north melbourne played as the home team, who was the away team they played? ### Context: CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_93 WHERE home_team = "north 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: When st kilda was playing at home what was the away teams score? ### Context: CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_23 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 is the production code of the episode before season 8, with a series number less than 31, and aired on September 21, 1995? ### Context: CREATE TABLE table_name_1 (production_code VARCHAR, original_air_date VARCHAR, season__number VARCHAR, series__number VARCHAR) [/INST] ### Response: SELECT production_code FROM table_name_1 WHERE season__number < 8 AND series__number < 31 AND original_air_date = "september 21, 1995" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest amount of spectators when the away team was Hawthorn? ### Context: CREATE TABLE table_name_93 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_93 WHERE away_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: How many people attended when the away team was Richmond? ### Context: CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_54 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score when the record was 18–14–4 with a toivonen decision? ### Context: CREATE TABLE table_name_11 (score VARCHAR, decision VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_11 WHERE decision = "toivonen" AND record = "18–14–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's the sum of the attendance for the calgary home team? ### Context: CREATE TABLE table_name_23 (attendance INTEGER, home VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_23 WHERE home = "calgary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when chicago was the visiting team? ### Context: CREATE TABLE table_name_98 (record VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT record FROM table_name_98 WHERE visitor = "chicago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record of the series was 0–1? ### Context: CREATE TABLE table_name_10 (date VARCHAR, series VARCHAR) [/INST] ### Response: SELECT date FROM table_name_10 WHERE series = "0–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 score for the away team when South Melbourne was the home team? ### Context: CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_58 WHERE home_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 was the score of the 2001 game held at Network Associates Coliseum? ### Context: CREATE TABLE table_name_66 (result VARCHAR, year VARCHAR, location VARCHAR) [/INST] ### Response: SELECT result FROM table_name_66 WHERE year = 2001 AND location = "network associates coliseum" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has giuseppe sivori as a home venue? ### Context: CREATE TABLE table_name_52 (region VARCHAR, home_venue VARCHAR) [/INST] ### Response: SELECT region FROM table_name_52 WHERE home_venue = "giuseppe sivori" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has the nickname of pontisola? ### Context: CREATE TABLE table_name_67 (city VARCHAR, short_name VARCHAR) [/INST] ### Response: SELECT city FROM table_name_67 WHERE short_name = "pontisola" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What squad plays at comunale in darfo boario terme? ### Context: CREATE TABLE table_name_40 (name VARCHAR, home_venue VARCHAR, city VARCHAR) [/INST] ### Response: SELECT name FROM table_name_40 WHERE home_venue = "comunale" AND city = "darfo boario terme" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What pick was Scott Glennie from the Western hockey league ### Context: CREATE TABLE table_name_62 (pick__number VARCHAR, league_from VARCHAR, player VARCHAR) [/INST] ### Response: SELECT pick__number FROM table_name_62 WHERE league_from = "western hockey league" AND player = "scott glennie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from the United States played in the western collegiate hockey association? ### Context: CREATE TABLE table_name_40 (player VARCHAR, nationality VARCHAR, league_from VARCHAR) [/INST] ### Response: SELECT player FROM table_name_40 WHERE nationality = "united states" AND league_from = "western collegiate hockey association" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded? ### Context: CREATE TABLE table_name_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_25 WHERE time_retired = "+1 lap" AND constructor = "brm" 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: When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values? ### Context: CREATE TABLE table_name_69 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_69 WHERE laps < 9 AND time_retired = "engine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver has a grid of 3? ### Context: CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_59 WHERE grid = 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: When the laps are 31 and the constructor was honda, what's the sum of all grid values? ### Context: CREATE TABLE table_name_58 (grid INTEGER, constructor VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_58 WHERE constructor = "honda" AND laps = 31 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis for all rounds on the entrant Benson and Hedges Jordan driven by Damon Hill? ### Context: CREATE TABLE table_name_69 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_69 WHERE rounds = "all" AND entrant = "benson and hedges jordan" AND driver = "damon hill" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the constructor of driver Alexander Wurz? ### Context: CREATE TABLE table_name_84 (constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_84 WHERE driver = "alexander wurz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that had all rounds and a f399 chassis? ### Context: CREATE TABLE table_name_53 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_53 WHERE rounds = "all" AND chassis = "f399" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the rounds on the Engine † of the Ferrari 048? ### Context: CREATE TABLE table_name_33 (rounds VARCHAR, engine_† VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_33 WHERE engine_† = "ferrari 048" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Semifinal has an Event of team? ### Context: CREATE TABLE table_name_47 (semifinal VARCHAR, event VARCHAR) [/INST] ### Response: SELECT semifinal FROM table_name_47 WHERE event = "team" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Quarterfinal has a Rank larger than 9? ### Context: CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER) [/INST] ### Response: SELECT quarterfinal FROM table_name_28 WHERE rank > 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the pick number of the DB? ### Context: CREATE TABLE table_name_46 (pick__number VARCHAR, position VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_46 WHERE position = "db" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college did the T who was pick after 13 go to? ### Context: CREATE TABLE t (Id VARCHAR) [/INST] ### Response: SELECT college FROM "t" AS able_name_20 WHERE pick__number > 13 AND position = "t" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CFL team drafted a pick from Boston College? ### Context: CREATE TABLE table_name_5 (cfl_team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT cfl_team FROM table_name_5 WHERE college = "boston college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Saskatchewan player get drafted as? ### Context: CREATE TABLE table_name_51 (position VARCHAR, college VARCHAR) [/INST] ### Response: SELECT position FROM table_name_51 WHERE college = "saskatchewan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps are over 53, what's the average grid? ### Context: CREATE TABLE table_name_32 (grid INTEGER, laps INTEGER) [/INST] ### Response: SELECT AVG(grid) FROM table_name_32 WHERE laps > 53 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the average laps driven by david coulthard? ### Context: CREATE TABLE table_name_75 (laps INTEGER, driver VARCHAR) [/INST] ### Response: SELECT AVG(laps) FROM table_name_75 WHERE driver = "david coulthard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the final when the year is before 1883? ### Context: CREATE TABLE table_name_8 (opponent_in_the_final VARCHAR, year INTEGER) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_8 WHERE year < 1883 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome for the 1887? ### Context: CREATE TABLE table_name_4 (outcome VARCHAR, year VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_4 WHERE year = 1887 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome when the opponent in the final is william renshaw after year 1882? ### Context: CREATE TABLE table_name_24 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_24 WHERE year > 1882 AND opponent_in_the_final = "william renshaw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the outcome is runner-up, the opponent in the final is herbert lawford and the year is after 1882? ### Context: CREATE TABLE table_name_39 (score VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR, outcome VARCHAR) [/INST] ### Response: SELECT score FROM table_name_39 WHERE year > 1882 AND outcome = "runner-up" AND opponent_in_the_final = "herbert lawford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What artist has a mintage of greater than 34,135? ### Context: CREATE TABLE table_name_29 (artist VARCHAR, mintage INTEGER) [/INST] ### Response: SELECT artist FROM table_name_29 WHERE mintage > 34 OFFSET 135 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What artist was released in 2005? ### Context: CREATE TABLE table_name_71 (artist VARCHAR, year VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_71 WHERE year = 2005 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 melbourne's average year? ### Context: CREATE TABLE table_name_35 (year INTEGER, team VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_35 WHERE 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: Who was ashley sampi's opponent? ### Context: CREATE TABLE table_name_71 (opponent VARCHAR, player VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_71 WHERE player = "ashley sampi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did daniel bradshaw play for after 1935? ### Context: CREATE TABLE table_name_59 (team VARCHAR, year VARCHAR, player VARCHAR) [/INST] ### Response: SELECT team FROM table_name_59 WHERE year > 1935 AND player = "daniel bradshaw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in 1992? ### Context: CREATE TABLE table_name_25 (player VARCHAR, year VARCHAR) [/INST] ### Response: SELECT player FROM table_name_25 WHERE year = 1992 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fitzroy the away team? ### Context: CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_65 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: Name the surface when the partner is carlos berlocq ### Context: CREATE TABLE table_name_13 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_13 WHERE partner = "carlos berlocq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for clay surface and score of 0–6, 0–6 ### Context: CREATE TABLE table_name_75 (date VARCHAR, surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_75 WHERE surface = "clay" AND score = "0–6, 0–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: Name the partner with score of 6–3, 6–2 ### Context: CREATE TABLE table_name_80 (partner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_80 WHERE score = "6–3, 6–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: Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2 ### Context: CREATE TABLE table_name_99 (tournament VARCHAR, score VARCHAR, surface VARCHAR, outcome VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_99 WHERE surface = "clay" AND outcome = "winner" AND score = "6–3, 6–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: Name the outcome on 6 october 2013 ### Context: CREATE TABLE table_name_70 (outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_70 WHERE date = "6 october 2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the song with more than 9 points and 44 (11) jury (points)? ### Context: CREATE TABLE table_name_55 (song VARCHAR, total_points VARCHAR, jury__points_ VARCHAR) [/INST] ### Response: SELECT song FROM table_name_55 WHERE total_points > 9 AND jury__points_ = "44 (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: Who is the artist with 2153 (5) televotes (points)? ### Context: CREATE TABLE table_name_11 (artist VARCHAR, televotes__points_ VARCHAR) [/INST] ### Response: SELECT artist FROM table_name_11 WHERE televotes__points_ = "2153 (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 lowest total points Karine Trécy has with less than 4 draws? ### Context: CREATE TABLE table_name_8 (total_points INTEGER, draw VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT MIN(total_points) FROM table_name_8 WHERE draw < 4 AND artist = "karine trécy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total points Karine Trécy has with a less than 12 place? ### Context: CREATE TABLE table_name_84 (total_points INTEGER, artist VARCHAR, place VARCHAR) [/INST] ### Response: SELECT MIN(total_points) FROM table_name_84 WHERE artist = "karine trécy" AND place < 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 average rating of viewers 18 to 49 where the total viewer count is 3.93 million and share less than 4? ### Context: CREATE TABLE table_name_96 (viewers__m_ VARCHAR, share VARCHAR) [/INST] ### Response: SELECT AVG(18 AS _49) FROM table_name_96 WHERE viewers__m_ = 3.93 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 total number of ratings among the 18 to 49 group that was aired on January 7, 2009? ### Context: CREATE TABLE table_name_47 (air_date VARCHAR) [/INST] ### Response: SELECT COUNT(18 AS _49) FROM table_name_47 WHERE air_date = "january 7, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was Mike Hailwood's highest laps when he had a grid more than 7? ### Context: CREATE TABLE table_name_16 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_16 WHERE driver = "mike hailwood" AND grid > 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 name of the site with a CERCLIS ID of prd980512362? ### Context: CREATE TABLE table_name_77 (name VARCHAR, cerclis_id VARCHAR) [/INST] ### Response: SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 site for Florida? ### Context: CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR) [/INST] ### Response: SELECT listed FROM table_name_22 WHERE municipality = "florida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What site in the RCA Del Caribe was deleted? ### Context: CREATE TABLE table_name_8 (deleted VARCHAR, name VARCHAR) [/INST] ### Response: SELECT deleted FROM table_name_8 WHERE name = "rca del caribe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the partially deleted site of fibers public supply wells located? ### Context: CREATE TABLE table_name_65 (partially_deleted VARCHAR, name VARCHAR) [/INST] ### Response: SELECT partially_deleted FROM table_name_65 WHERE name = "fibers public supply wells" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 proposed 03/08/2004 site is in what municipality? ### Context: CREATE TABLE table_name_35 (municipality VARCHAR, proposed VARCHAR) [/INST] ### Response: SELECT municipality FROM table_name_35 WHERE proposed = "03/08/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 release format for titles after 1983? ### Context: CREATE TABLE table_name_55 (release_format VARCHAR, release_date INTEGER) [/INST] ### Response: SELECT release_format FROM table_name_55 WHERE release_date > 1983 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the home of the Carlton team? ### Context: CREATE TABLE table_name_39 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_39 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: Which driver had a grid of 18 with 68 laps? ### Context: CREATE TABLE table_name_88 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_88 WHERE laps = "68" AND grid = "18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which driver had a grid of 18? ### Context: CREATE TABLE table_name_58 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_58 WHERE grid = "18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which driver had a grid of 22? ### Context: CREATE TABLE table_name_43 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_43 WHERE grid = "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 season is the wicket 2nd partnership in? ### Context: CREATE TABLE table_name_41 (season VARCHAR, wicket_partnership VARCHAR) [/INST] ### Response: SELECT season FROM table_name_41 WHERE wicket_partnership = "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: Where did v kent play? ### Context: CREATE TABLE table_name_4 (venue VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_4 WHERE opponents = "v kent" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runs had james bryant graeme welch as Batsmen? ### Context: CREATE TABLE table_name_28 (runs VARCHAR, batsmen VARCHAR) [/INST] ### Response: SELECT runs FROM table_name_28 WHERE batsmen = "james bryant graeme welch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clay has a Record of 2–0, and a Hard 1–0? ### Context: CREATE TABLE table_name_36 (clay VARCHAR, record VARCHAR, hard VARCHAR) [/INST] ### Response: SELECT clay FROM table_name_36 WHERE record = "2–0" AND hard = "1–0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which hard has a Clay of 0–0, Grass of 0–0, Carpet of 0–0, and a Record of 1–0? ### Context: CREATE TABLE table_name_10 (hard VARCHAR, record VARCHAR, carpet VARCHAR, clay VARCHAR, grass VARCHAR) [/INST] ### Response: SELECT hard FROM table_name_10 WHERE clay = "0–0" AND grass = "0–0" AND carpet = "0–0" AND record = "1–0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which carpet has a Clay of 1–0 and a Hard 1–1? ### Context: CREATE TABLE table_name_1 (carpet VARCHAR, clay VARCHAR, hard VARCHAR) [/INST] ### Response: SELECT carpet FROM table_name_1 WHERE clay = "1–0" AND hard = "1–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: Name the most rank for population more than 93,378 ### Context: CREATE TABLE table_name_5 (rank INTEGER, population INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What award is featured in 1992? ### Context: CREATE TABLE table_name_18 (award VARCHAR, year VARCHAR) [/INST] ### Response: SELECT award FROM table_name_18 WHERE year = 1992 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What award was won in the best sound category for the exorcist before 1998? ### Context: CREATE TABLE table_name_85 (award VARCHAR, title VARCHAR, category VARCHAR, year VARCHAR, type VARCHAR) [/INST] ### Response: SELECT award FROM table_name_85 WHERE year < 1998 AND type = "won" AND category = "best sound" AND title = "the exorcist" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidate that got 1,019 votes for staten island? ### Context: CREATE TABLE table_name_25 (richmond_ VARCHAR, staten_is VARCHAR) [/INST] ### Response: SELECT 1953 FROM table_name_25 WHERE richmond_[staten_is] = "1,019" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opposing team for the game on August 29? ### Context: CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_28 WHERE date = "august 29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which player has 11 tries? ### Context: CREATE TABLE table_name_68 (player VARCHAR, tries VARCHAR) [/INST] ### Response: SELECT player FROM table_name_68 WHERE tries = "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: which player has a conv of 14? ### Context: CREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR) [/INST] ### Response: SELECT player FROM table_name_45 WHERE conv = "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: on the span of 1992-2000, what was the conv ? ### Context: CREATE TABLE table_name_19 (conv VARCHAR, span VARCHAR) [/INST] ### Response: SELECT conv FROM table_name_19 WHERE span = "1992-2000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 point toal for martine foubert placing below 2? ### Context: CREATE TABLE table_name_32 (points INTEGER, artist VARCHAR, place VARCHAR) [/INST] ### Response: SELECT MAX(points) FROM table_name_32 WHERE artist = "martine foubert" AND place > 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: How much did the away team Melbourne score? ### Context: CREATE TABLE table_name_64 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_64 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 is the highest crowd number for the home team Richmond? ### Context: CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What home team played at Glenferrie Oval? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_76 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: How much did the away team St Kilda score? ### Context: CREATE TABLE table_name_51 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_51 WHERE away_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: Which Crowd has an Away team of st kilda? ### Context: CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_28 WHERE away_team = "st kilda" </s>