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:
Which league has 12 goals?
### Context:
CREATE TABLE table_name_66 (league VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_66 WHERE goals = 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 league has less than 15 apps and 0 goals with sparta prague?
### Context:
CREATE TABLE table_name_41 (league VARCHAR, club VARCHAR, apps VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_41 WHERE apps < 15 AND goals = 0 AND club = "sparta prague" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runners up for the team that won in 1993?
### Context:
CREATE TABLE table_name_66 (runners_up INTEGER, years_won VARCHAR) [/INST]
### Response:
SELECT MIN(runners_up) FROM table_name_66 WHERE years_won = "1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many runners up for the team with under 1 win and a Years runner-up of 1985 , 1996?
### Context:
CREATE TABLE table_name_9 (runners_up VARCHAR, winners VARCHAR, years_runner_up VARCHAR) [/INST]
### Response:
SELECT runners_up FROM table_name_9 WHERE winners < 1 AND years_runner_up = "1985 , 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what circuit was the iii Reims Grand Prix held?
### Context:
CREATE TABLE table_name_43 (circuit VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_43 WHERE race_name = "iii reims grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what circuit was the i mexican grand prix held?
### Context:
CREATE TABLE table_name_5 (circuit VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_5 WHERE race_name = "i mexican grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?
### Context:
CREATE TABLE table_name_29 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of tries for a player with conv smaller than 45, 19 starts and pens fewer than 22?
### Context:
CREATE TABLE table_name_83 (tries VARCHAR, pens VARCHAR, conv VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT COUNT(tries) FROM table_name_83 WHERE conv < 45 AND start = 19 AND pens < 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:
When the united states has 22 wins and a rank greater than 2, what is the total earnings?
### Context:
CREATE TABLE table_name_82 (earnings__ INTEGER, rank VARCHAR, country VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(earnings__) AS $__ FROM table_name_82 WHERE country = "united states" AND wins = 22 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:
What is the smallest rank for new zealand?
### Context:
CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Richmond's away team score versus Geelong?
### Context:
CREATE TABLE table_name_96 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_96 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:
When the share of votes equals 21.8%, what's the sum of the total amount of seats?
### Context:
CREATE TABLE table_name_61 (total_seats INTEGER, share_of_votes VARCHAR) [/INST]
### Response:
SELECT SUM(total_seats) FROM table_name_61 WHERE share_of_votes = "21.8%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of seats is under 144, and the seats won is 32, which election is this?
### Context:
CREATE TABLE table_name_37 (election VARCHAR, total_seats VARCHAR, seats VARCHAR) [/INST]
### Response:
SELECT election FROM table_name_37 WHERE total_seats < 144 AND seats = 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the share of votes is 33.9%, what's the highest total amount of seats?
### Context:
CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR) [/INST]
### Response:
SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.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 was the home team's score when North Melbourne was the away team?
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_39 WHERE away_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:
Who was the away team when Geelong was the home team?
### Context:
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_41 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:
What is the score of away team, North Melbourne?
### Context:
CREATE TABLE table_name_37 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_37 WHERE away_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:
What is the fewest number of attendees at Kardinia Park?
### Context:
CREATE TABLE table_name_36 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_36 WHERE venue = "kardinia park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team score when the away team was fitzroy?
### Context:
CREATE TABLE table_name_93 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_93 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:
Who was the home team at the game with a decision of Mason and a visiting team of Dallas?
### Context:
CREATE TABLE table_name_96 (home VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_96 WHERE decision = "mason" AND visitor = "dallas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest laps for time/retired of engine and grid of 5
### Context:
CREATE TABLE table_name_37 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_37 WHERE time_retired = "engine" AND grid = 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:
Name the highest laps for maserati and +6 laps for grid more than 11
### Context:
CREATE TABLE table_name_33 (laps INTEGER, grid VARCHAR, constructor VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_33 WHERE constructor = "maserati" AND time_retired = "+6 laps" AND grid > 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:
Tell me the time/retired for grid 4
### Context:
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_41 WHERE grid = 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:
Tell me the driver for 58 laps
### Context:
CREATE TABLE table_name_18 (driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_18 WHERE laps = 58 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the home team aginst Essendon?
### Context:
CREATE TABLE table_name_89 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_89 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:
When is the Geelong game?
### Context:
CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_26 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:
Which Original Broadway production has a First US National Tour of roger bart?
### Context:
CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR) [/INST]
### Response:
SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Original Broadway production has a Role of dr. victor von frankenstein?
### Context:
CREATE TABLE table_name_1 (original_broadway_production VARCHAR, role VARCHAR) [/INST]
### Response:
SELECT original_broadway_production FROM table_name_1 WHERE role = "dr. victor von frankenstein" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Role has a First US National Tour of roger bart?
### Context:
CREATE TABLE table_name_19 (role VARCHAR, first_us_national_tour VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_19 WHERE first_us_national_tour = "roger bart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Original Italian production has a First US National Tour of joanna glushak?
### Context:
CREATE TABLE table_name_4 (original_italian_production VARCHAR, first_us_national_tour VARCHAR) [/INST]
### Response:
SELECT original_italian_production FROM table_name_4 WHERE first_us_national_tour = "joanna glushak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At what venue was the game played where the away team was South Melbourne
### Context:
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_49 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who directed the eula goodnight movie after 1949?
### Context:
CREATE TABLE table_name_97 (director VARCHAR, year VARCHAR, role VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_97 WHERE year > 1949 AND role = "eula goodnight" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What role does she play before 1942 with dorothy arzner directing?
### Context:
CREATE TABLE table_name_97 (role VARCHAR, year VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_97 WHERE year < 1942 AND director = "dorothy arzner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What drama role does she play in 1973?
### Context:
CREATE TABLE table_name_57 (role VARCHAR, genre VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_57 WHERE genre = "drama" AND year = 1973 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the 1986 FIFA World Cup?
### Context:
CREATE TABLE table_name_19 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_19 WHERE competition = "1986 fifa world cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45
### Context:
CREATE TABLE table_name_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR) [/INST]
### Response:
SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of pommel horses for vault of 9.475 and rank more than 16
### Context:
CREATE TABLE table_name_65 (pommel_horse VARCHAR, rank VARCHAR, vault VARCHAR) [/INST]
### Response:
SELECT COUNT(pommel_horse) FROM table_name_65 WHERE rank > 16 AND vault = 9.475 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lake oval is the venue, what's the score of the home team?
### Context:
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_4 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:
Who did the cubs play on june 3?
### Context:
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_60 WHERE date = "june 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:
Tell me the place of action for sergeant rank and 5th company, 2nd marines unit
### Context:
CREATE TABLE table_name_80 (place_of_action VARCHAR, rank VARCHAR, unit VARCHAR) [/INST]
### Response:
SELECT place_of_action FROM table_name_80 WHERE rank = "sergeant" AND unit = "5th company, 2nd marines" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 service for 7th marines rank of sergeant
### Context:
CREATE TABLE table_name_20 (service VARCHAR, unit VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT service FROM table_name_20 WHERE unit = "7th marines" AND rank = "sergeant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 far is the olbia to sassari route?
### Context:
CREATE TABLE table_name_99 (distance VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_99 WHERE course = "olbia to sassari" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day is miami the venue with 38 goals?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, venue VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_67 WHERE venue = "miami" AND goal = 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What competition has 41 goals?
### Context:
CREATE TABLE table_name_63 (competition VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_63 WHERE goal = 41 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day has 34 goals?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE goal = 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had under 22 laps and a Time/Retired of ignition?
### Context:
CREATE TABLE table_name_93 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_93 WHERE laps < 22 AND time_retired = "ignition" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of laps for chris amon?
### Context:
CREATE TABLE table_name_51 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_51 WHERE driver = "chris amon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd with Away team of hawthorn?
### Context:
CREATE TABLE table_name_94 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_94 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:
What away team score has carlton home team?
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the away team score at vfl park?
### Context:
CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_19 WHERE venue = "vfl 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 St Kilda play a home game?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the game played at Moorabbin Oval?
### Context:
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_59 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:
Tell me the name for kelston with roll less than 322
### Context:
CREATE TABLE table_name_27 (name VARCHAR, area VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_27 WHERE area = "kelston" AND roll < 322 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on September 8?
### Context:
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_24 WHERE date = "september 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grand Final Date for season 1988
### Context:
CREATE TABLE table_name_40 (grand_finaldate VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT grand_finaldate FROM table_name_40 WHERE season = 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Gaelic Athletic Association stadium is located in Carrick-on-Shannon?
### Context:
CREATE TABLE table_name_72 (stadium VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_72 WHERE location = "carrick-on-shannon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gaelic Football Stadium at McHale Park's ranking in total capacity?
### Context:
CREATE TABLE table_name_30 (rank VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_30 WHERE stadium = "mchale 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:
Which Away team score has a Crowd larger than 6,000?
### Context:
CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team AS score FROM table_name_21 WHERE crowd > 6 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which average Crowd has a Home team of south melbourne?
### Context:
CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_72 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:
On what date was the Record of 43–35?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE record = "43–35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What record occurred on April 3?
### Context:
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_17 WHERE date = "april 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:
Who led the score on April 9?
### Context:
CREATE TABLE table_name_54 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_54 WHERE date = "april 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 record for the game that shows the Rose Garden 20,126 as attendance?
### Context:
CREATE TABLE table_name_96 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_96 WHERE attendance = "rose garden 20,126" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for the game when the Dallas Mavericks was the home team?
### Context:
CREATE TABLE table_name_24 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_24 WHERE home = "dallas mavericks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record that has the Rose Garden 20,126 as the attendance?
### Context:
CREATE TABLE table_name_44 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_44 WHERE attendance = "rose garden 20,126" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 43,746 attended?
### Context:
CREATE TABLE table_name_50 (score VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_50 WHERE attendance = "43,746" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 56-46 was met?
### Context:
CREATE TABLE table_name_7 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE record = "56-46" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Richmond score as the home team?
### Context:
CREATE TABLE table_name_43 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_43 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:
Which model has a 2521 cm displacement and b5254 t2 engine?
### Context:
CREATE TABLE table_name_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR) [/INST]
### Response:
SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = 2521 AND engine_code = "b5254 t2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2435 cm displacement and is named 2.4 (2001-2007)?
### Context:
CREATE TABLE table_name_84 (engine_code VARCHAR, displacement__cm³_ VARCHAR, model_name VARCHAR) [/INST]
### Response:
SELECT engine_code FROM table_name_84 WHERE displacement__cm³_ = 2435 AND model_name = "2.4 (2001-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 was the venue for the game on 10-09-2012?
### Context:
CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_71 WHERE date = "10-09-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition was played on 13-11-2012?
### Context:
CREATE TABLE table_name_22 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_22 WHERE date = "13-11-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent is friendly and played on 15-08-2012?
### Context:
CREATE TABLE table_name_38 (opponent VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_38 WHERE competition = "friendly" AND date = "15-08-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of game played on 10-05-2012?
### Context:
CREATE TABLE table_name_23 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_23 WHERE date = "10-05-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What opponent played on 07-09-2012?
### Context:
CREATE TABLE table_name_26 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_26 WHERE date = "07-09-2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game that was friendly and resulted in 2-3?
### Context:
CREATE TABLE table_name_6 (venue VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_6 WHERE competition = "friendly" AND result = "2-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the home team score for the game played at Western Oval?
### Context:
CREATE TABLE table_name_75 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_75 WHERE venue = "western 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 crowd number when the home team was Carlton?
### Context:
CREATE TABLE table_name_23 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_23 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest capacity for the stadium for Treviso club?
### Context:
CREATE TABLE table_name_44 (capacity INTEGER, club VARCHAR) [/INST]
### Response:
SELECT MAX(capacity) FROM table_name_44 WHERE club = "treviso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Is there Loci in the Cinderella software?
### Context:
CREATE TABLE table_name_77 (loci VARCHAR, software VARCHAR) [/INST]
### Response:
SELECT loci FROM table_name_77 WHERE software = "cinderella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Are the there macros in the Tabula software?
### Context:
CREATE TABLE table_name_65 (macros VARCHAR, software VARCHAR) [/INST]
### Response:
SELECT macros FROM table_name_65 WHERE software = "tabula" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Are there proofs in the Tabulae software?
### Context:
CREATE TABLE table_name_88 (proofs VARCHAR, software VARCHAR) [/INST]
### Response:
SELECT proofs FROM table_name_88 WHERE software = "tabulae" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year total for teams with under 37 games tied, over 33 games, and 15 losses?
### Context:
CREATE TABLE table_name_7 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR) [/INST]
### Response:
SELECT SUM(years) FROM table_name_7 WHERE tied < 37 AND total_games > 33 AND lost = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the low loss total for teams with under 3 years and a less than 0.625% winning percentage?
### Context:
CREATE TABLE table_name_44 (lost INTEGER, pct VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_44 WHERE pct < 0.625 AND years < 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 CLASS P14 trains were made?
### Context:
CREATE TABLE table_name_2 (quantity_made VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT quantity_made FROM table_name_2 WHERE class = "p14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what year(s) were the CLASS T14 trains withdrawn from service?
### Context:
CREATE TABLE table_name_86 (year_s__withdrawn VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT year_s__withdrawn FROM table_name_86 WHERE class = "t14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 4-6-0 Wheel model train from 1908 withdrawn?
### Context:
CREATE TABLE table_name_61 (year_s__withdrawn VARCHAR, wheel_arrangement VARCHAR, year_made VARCHAR) [/INST]
### Response:
SELECT year_s__withdrawn FROM table_name_61 WHERE wheel_arrangement = "4-6-0" AND year_made = "1908" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away team at collingwood?
### Context:
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_95 WHERE home_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:
What is the home team at windy hill?
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_39 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the greatest capacity when the largest number in attendance is 6,192?
### Context:
CREATE TABLE table_name_91 (capacity INTEGER, highest INTEGER) [/INST]
### Response:
SELECT MAX(capacity) FROM table_name_91 WHERE highest > 6 OFFSET 192 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average number in attendance when the most in attendance is 5,078?
### Context:
CREATE TABLE table_name_87 (average INTEGER, highest VARCHAR) [/INST]
### Response:
SELECT MAX(average) FROM table_name_87 WHERE highest = 5 OFFSET 078 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 route that has a rank higher than 63, and Separation Summit as its mountain pass?
### Context:
CREATE TABLE table_name_33 (route INTEGER, rank VARCHAR, mountain_pass VARCHAR) [/INST]
### Response:
SELECT SUM(route) FROM table_name_33 WHERE rank > 63 AND mountain_pass = "separation summit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 plays for Illinois?
### Context:
CREATE TABLE table_name_1 (player VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_1 WHERE school_club_team_country = "illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player played for the Rockets in 2002-03?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE years_for_rockets = "2002-03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the height in feet of number 10?
### Context:
CREATE TABLE table_name_77 (height_in_ft VARCHAR, no_s_ VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_77 WHERE no_s_ = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the height in feet of the Illinois player?
### Context:
CREATE TABLE table_name_11 (height_in_ft VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_11 WHERE school_club_team_country = "illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the time/retired for Laps larger than 63 and has a grid of 20
### Context:
CREATE TABLE table_name_97 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 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:
I want the sum of Laps for wolfgang von trips, and a grid larger than 5
### Context:
CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_5 WHERE driver = "wolfgang von trips" AND grid > 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:
When fitzroy what was the home team score?
### Context:
CREATE TABLE table_name_85 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_85 WHERE home_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:
When st kilda played as the Away team which date was that?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE away_team = "st kilda" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.