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:
If the Venue was princes park, which Date did the game take place on?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE venue = "princes 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 is the average rank of one who is at 76 laps?
### Context:
CREATE TABLE table_name_98 (rank INTEGER, laps VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_98 WHERE laps = 76 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid number for cars that retired due to engine failure before 18 laps?
### Context:
CREATE TABLE table_name_69 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_69 WHERE time_retired = "engine" AND laps < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time/retired for jo siffert with a grid under 11?
### Context:
CREATE TABLE table_name_45 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_45 WHERE grid < 11 AND driver = "jo siffert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver has under 19 laps and a grid under 10?
### Context:
CREATE TABLE table_name_89 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_89 WHERE laps < 19 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:
Where was the game that the attendance was 24,694?
### Context:
CREATE TABLE table_name_99 (game INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_99 WHERE attendance = 24 OFFSET 694 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on September 11?
### Context:
CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_10 WHERE date = "september 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 had more than 3 wins?
### Context:
CREATE TABLE table_name_47 (winner VARCHAR, win__number INTEGER) [/INST]
### Response:
SELECT winner FROM table_name_47 WHERE win__number > 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:
How many league cup goals for tyrone thompson with 0 FLT goals?
### Context:
CREATE TABLE table_name_46 (league_cup_goals INTEGER, name VARCHAR, flt_goals VARCHAR) [/INST]
### Response:
SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = "tyrone thompson" AND flt_goals > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many goals for the FW with 0 FA cup appearances and over 0 playoff goals?
### Context:
CREATE TABLE table_name_14 (league_goals INTEGER, playoff_goals VARCHAR, position VARCHAR, fa_cup_apps VARCHAR) [/INST]
### Response:
SELECT MIN(league_goals) FROM table_name_14 WHERE position = "fw" AND fa_cup_apps = "0" AND playoff_goals > 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:
I want to know the third with runner of paris saint-germain and edition less than 5
### Context:
CREATE TABLE table_name_40 (third VARCHAR, runner_up VARCHAR, edition VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_40 WHERE runner_up = "paris saint-germain" AND edition < 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:
I want the sum of year for edition more than 4 and winners of new york red bulls
### Context:
CREATE TABLE table_name_93 (year INTEGER, edition VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_93 WHERE edition > 4 AND winner = "new york red bulls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest edition for winner of arsenal and third of celtic
### Context:
CREATE TABLE table_name_13 (edition INTEGER, winner VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT MIN(edition) FROM table_name_13 WHERE winner = "arsenal" AND third = "celtic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total orders for goals of 239?
### Context:
CREATE TABLE table_name_77 (order VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT COUNT(order) FROM table_name_77 WHERE goals = 239 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had an order of 907 and more than 1 game?
### Context:
CREATE TABLE table_name_67 (name VARCHAR, games VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_67 WHERE games > 1 AND order = 907 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What seasons had 288 games and more than 100 goals?
### Context:
CREATE TABLE table_name_88 (seasons VARCHAR, goals VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goal for orders more than 939 during Seasons of 1996 – 2001?
### Context:
CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game on October 30?
### Context:
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_8 WHERE date = "october 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:
When was the game played against a visiting team from Philadelphia?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE visitor = "philadelphia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when the home team, Toronto, played against New Jersey?
### Context:
CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_62 WHERE visitor = "new jersey" AND home = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home game for the NY Islanders?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE home = "ny islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team for the game played on November 2, 2007?
### Context:
CREATE TABLE table_name_69 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_69 WHERE date = "november 2, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is silver when gold is 1 and the rank is less than 3 for japan?
### Context:
CREATE TABLE table_name_77 (silver VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT silver FROM table_name_77 WHERE gold = 1 AND rank < 3 AND nation = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank for the total less than 1?
### Context:
CREATE TABLE table_name_34 (rank INTEGER, total INTEGER) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_34 WHERE total < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?
### Context:
CREATE TABLE table_name_29 (gold VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue?
### Context:
CREATE TABLE table_name_6 (floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building that has more than 31 floors and built prior to 1964?
### Context:
CREATE TABLE table_name_91 (name VARCHAR, floors VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_91 WHERE floors > 31 AND 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:
Who was the away team at the game played at Lake Oval?
### Context:
CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_67 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home team score for the game played against Collingwood?
### Context:
CREATE TABLE table_name_24 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_24 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team with the smallest crowd at the Princes Park venue?
### Context:
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_73 WHERE venue = "princes 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 is the size km² when the density hab/km is 8,321?
### Context:
CREATE TABLE table_name_52 (size_km² INTEGER, density_hab_km VARCHAR) [/INST]
### Response:
SELECT SUM(size_km²) FROM table_name_52 WHERE density_hab_km = 8 OFFSET 321 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Victoria Park?
### Context:
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_24 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:
When did Carlton play as the home team?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 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 was the original air date when ed horowitz wrote it?
### Context:
CREATE TABLE table_name_89 (original_airdate VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_name_89 WHERE written_by = "ed horowitz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode number that aired on july 23, 2000
### Context:
CREATE TABLE table_name_34 (episode__number VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 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:
How many draws for avia band with over 22 points?
### Context:
CREATE TABLE table_name_87 (draw VARCHAR, points VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT COUNT(draw) FROM table_name_87 WHERE points > 22 AND artist = "avia band" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earnings ($) with more than two wins and a rank less than 2?
### Context:
CREATE TABLE table_name_1 (earnings___ VARCHAR, wins VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(earnings___) AS $__ FROM table_name_1 WHERE wins > 2 AND rank < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who's ranked less than 2?
### Context:
CREATE TABLE table_name_32 (player VARCHAR, rank INTEGER) [/INST]
### Response:
SELECT player FROM table_name_32 WHERE rank < 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 did the away team score at Moorabbin oval?
### Context:
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_38 WHERE venue = "moorabbin oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance at the game played at Moorabbin Oval?
### Context:
CREATE TABLE table_name_78 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_78 WHERE venue = "moorabbin oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the wheel arrangement of the locomotive with number 6 or 4?
### Context:
CREATE TABLE table_name_95 (wheel_arrangement VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT wheel_arrangement FROM table_name_95 WHERE number = "6 or 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 boiler pressure for the Hesperus model?
### Context:
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the driving wheels of the model built in 1883?
### Context:
CREATE TABLE table_name_51 (driving_wheels VARCHAR, date_built VARCHAR) [/INST]
### Response:
SELECT driving_wheels FROM table_name_51 WHERE date_built = "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 year was the wheel arrangement 0-6-0 and a class 302?
### Context:
CREATE TABLE table_name_76 (year_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT year_made FROM table_name_76 WHERE wheel_arrangement = "0-6-0" AND class = "302" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a class of 330?
### Context:
CREATE TABLE table_name_97 (quantity_made VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT quantity_made FROM table_name_97 WHERE class = "330" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What comments are made in 1875?
### Context:
CREATE TABLE table_name_64 (comments VARCHAR, year_made VARCHAR) [/INST]
### Response:
SELECT comments FROM table_name_64 WHERE year_made = "1875" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist's work is the butterfly Tiger Swallowtail?
### Context:
CREATE TABLE table_name_16 (artist VARCHAR, butterfly VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_16 WHERE butterfly = "tiger swallowtail" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist uses a finish of selective gold plating?
### Context:
CREATE TABLE table_name_29 (artist VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_29 WHERE finish = "selective gold plating" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What mintage earlier than the year 2006 has the butterfly great spangled fritillary.
### Context:
CREATE TABLE table_name_15 (mintage VARCHAR, year VARCHAR, butterfly VARCHAR) [/INST]
### Response:
SELECT mintage FROM table_name_15 WHERE year < 2006 AND butterfly = "great spangled fritillary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Europe?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE region = "europe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played away at Victoria park?
### Context:
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_78 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:
When the record was 4-4, how many people attended?
### Context:
CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_64 WHERE record = "4-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:
When they were playing the detroit lions at tampa stadium, what was the score?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE game_site = "tampa stadium" AND opponent = "detroit lions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date did 64,443 people attend a game?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_47 WHERE attendance = "64,443" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the highest rank with a total less than 1?
### Context:
CREATE TABLE table_name_68 (rank INTEGER, total INTEGER) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_68 WHERE total < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the average bronze when gold is 1, the nation is hungary and the rank is less than 3?
### Context:
CREATE TABLE table_name_96 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_96 WHERE gold = 1 AND nation = "hungary" AND rank < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many times was the total more than 1, the nation was east germany and silver was more than 1?
### Context:
CREATE TABLE table_name_25 (bronze VARCHAR, silver VARCHAR, total VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_25 WHERE total > 1 AND nation = "east germany" AND silver > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the average rank when the nation is east germany and silver is more than 1?
### Context:
CREATE TABLE table_name_27 (rank INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_27 WHERE nation = "east germany" AND silver > 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:
Where did carlton play while away?
### Context:
CREATE TABLE table_name_98 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_98 WHERE away_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 was the top crowd when essendon played away?
### Context:
CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_75 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the date of appointment for manner of departure being sacked
### Context:
CREATE TABLE table_name_91 (date_of_appointment VARCHAR, manner_of_departure VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_91 WHERE manner_of_departure = "sacked" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the manner of departure for 1 june 2007
### Context:
CREATE TABLE table_name_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT manner_of_departure FROM table_name_2 WHERE date_of_appointment = "1 june 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the outgoing manager for craig brewster
### Context:
CREATE TABLE table_name_40 (outgoing_manager VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT outgoing_manager FROM table_name_40 WHERE replaced_by = "craig brewster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the team for replaced by mark mcghee
### Context:
CREATE TABLE table_name_95 (team VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_95 WHERE replaced_by = "mark mcghee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the outgoing manager for 19 february
### Context:
CREATE TABLE table_name_57 (outgoing_manager VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT outgoing_manager FROM table_name_57 WHERE date_of_appointment = "19 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the team with replaced by being csaba lászló
### Context:
CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With which association did estribillo ii run as Horse 1?
### Context:
CREATE TABLE table_name_30 (association VARCHAR, horse_1 VARCHAR) [/INST]
### Response:
SELECT association FROM table_name_30 WHERE horse_1 = "estribillo ii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 horse was Horse 1 when rené guzmán raced with the mulchén association?
### Context:
CREATE TABLE table_name_32 (horse_1 VARCHAR, rider_1 VARCHAR, association VARCHAR) [/INST]
### Response:
SELECT horse_1 FROM table_name_32 WHERE rider_1 = "rené guzmán" AND association = "mulchén" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second rider when papayero raced as Horse 1 in the city of rancagua?
### Context:
CREATE TABLE table_name_2 (rider_2 VARCHAR, city VARCHAR, horse_1 VARCHAR) [/INST]
### Response:
SELECT rider_2 FROM table_name_2 WHERE city = "rancagua" AND horse_1 = "papayero" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 period for 1896?
### Context:
CREATE TABLE table_name_67 (period VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT period FROM table_name_67 WHERE year = 1896 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height which has a surpassed by of book tower
### Context:
CREATE TABLE table_name_2 (height_feet_m VARCHAR, surpassed_by VARCHAR) [/INST]
### Response:
SELECT height_feet_m FROM table_name_2 WHERE surpassed_by = "book 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:
I need the surpassed for years before 1925 and period of 6 years
### Context:
CREATE TABLE table_name_57 (surpassed_by VARCHAR, year VARCHAR, period VARCHAR) [/INST]
### Response:
SELECT surpassed_by FROM table_name_57 WHERE year < 1925 AND period = "6 years" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Hawthorn played as an Away team in which venue?
### Context:
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_56 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:
Who was the nominee having a Tony award?
### Context:
CREATE TABLE table_name_16 (nominee VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT nominee FROM table_name_16 WHERE award = "tony award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year Bernadette Peters was a nominee for the Tony award?
### Context:
CREATE TABLE table_name_67 (year INTEGER, award VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_67 WHERE award = "tony award" AND nominee = "bernadette peters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was Michael Stewart a nominee in?
### Context:
CREATE TABLE table_name_4 (category VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_4 WHERE nominee = "michael stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank in the 2009 Hanoi Games?
### Context:
CREATE TABLE table_name_75 (rank VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_75 WHERE games = "2009 hanoi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label of the album titled 與你相逢 and released in 1994?
### Context:
CREATE TABLE table_name_63 (label_s_ VARCHAR, year_of_release VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT label_s_ FROM table_name_63 WHERE year_of_release = 1994 AND title = "與你相逢" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest year of release for the album labelled 艺能动音?
### Context:
CREATE TABLE table_name_93 (year_of_release INTEGER, label_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(year_of_release) FROM table_name_93 WHERE label_s_ = "艺能动音" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name in polish for radom seat
### Context:
CREATE TABLE table_name_36 (name_in_polish VARCHAR, seat VARCHAR) [/INST]
### Response:
SELECT name_in_polish FROM table_name_36 WHERE seat = "radom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population for gubernia łomżyńska
### Context:
CREATE TABLE table_name_79 (population VARCHAR, _in_thousands VARCHAR, __1905__ VARCHAR, name_in_polish VARCHAR) [/INST]
### Response:
SELECT population, _in_thousands, __1905__ FROM table_name_79 WHERE name_in_polish = "gubernia łomżyńska" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 promotion when the arena was the venue and the event of legends of the arena?
### Context:
CREATE TABLE table_name_4 (promotion VARCHAR, venue VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT promotion FROM table_name_4 WHERE venue = "the arena" AND event = "legends of the arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 inductee for the ecw arena?
### Context:
CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 promotion when the event was Acid-fest?
### Context:
CREATE TABLE table_name_7 (promotion VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT promotion FROM table_name_7 WHERE event = "acid-fest" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location when the event was November reign?
### Context:
CREATE TABLE table_name_84 (location VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_84 WHERE event = "november reign" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What even was Jerry Lynn the inductee?
### Context:
CREATE TABLE table_name_16 (event VARCHAR, inductee_s_ VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_16 WHERE inductee_s_ = "jerry lynn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 namesake of Ayashe at a longitude less than 270.7, latitude more than -47.1, and a diameter less than 7.2?
### Context:
CREATE TABLE table_name_87 (named VARCHAR, name VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR, latitude VARCHAR) [/INST]
### Response:
SELECT named AS after FROM table_name_87 WHERE longitude < 270.7 AND latitude > -47.1 AND diameter__km_ < 7.2 AND name = "ayashe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent that had a result of l 27-20
### Context:
CREATE TABLE table_name_84 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_84 WHERE result = "l 27-20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the game site for week 14?
### Context:
CREATE TABLE table_name_87 (game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_87 WHERE week = "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:
Name the week when the result was l 38-17
### Context:
CREATE TABLE table_name_61 (week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_61 WHERE result = "l 38-17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date when 33,307 attended
### Context:
CREATE TABLE table_name_20 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE attendance = "33,307" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire?
### Context:
CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was in all rounds as an entrant of Motor Racing Developments?
### Context:
CREATE TABLE table_name_6 (driver VARCHAR, rounds VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_6 WHERE rounds = "all" AND entrant = "motor racing developments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Motor Racing Developments used which tire in rounds 3-12?
### Context:
CREATE TABLE table_name_58 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_58 WHERE entrant = "motor racing developments" AND rounds = "3-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:
Which engine was on a car with G tires, a chassis model of 003 002 004 005 006, driven by Jackie Stewart?
### Context:
CREATE TABLE table_name_98 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_98 WHERE tyre = "g" AND chassis = "003 002 004 005 006" AND driver = "jackie stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the wild card?
### Context:
CREATE TABLE table_name_74 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_74 WHERE week = "wild card" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the week 17 game played on?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE week = "17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on week 12?
### Context:
CREATE TABLE table_name_8 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_8 WHERE week = "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 was the result on December 31, 2005?
### Context:
CREATE TABLE table_name_68 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_68 WHERE date = "december 31, 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 was the date of the game at Lake Oval?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_17 WHERE venue = "lake oval" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.