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:
Who had a 32-29-8 record at home?
### Context:
CREATE TABLE table_name_55 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_55 WHERE record = "32-29-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:
Who had a 33-30-8 record at home?
### Context:
CREATE TABLE table_name_99 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_99 WHERE record = "33-30-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:
What was the home teams score when North Melbourne played as the away team?
### Context:
CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_15 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 at Windy Hill?
### Context:
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_11 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did Fitzroy play as the home team?
### Context:
CREATE TABLE table_name_22 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_22 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:
Who was away team at the home game of south melbourne?
### Context:
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_99 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the away team score when they visited south melbourne?
### Context:
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_26 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest crowd with north melbourne as away team?
### Context:
CREATE TABLE table_name_10 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_10 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:
Which venue has a Home team of south melbourne?
### Context:
CREATE TABLE table_name_88 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_88 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What home score has an Away team of fitzroy?
### Context:
CREATE TABLE table_name_82 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_82 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:
Which home team has a Venue of corio oval?
### Context:
CREATE TABLE table_name_61 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_61 WHERE venue = "corio 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:
Which team has an Away team of carlton?
### Context:
CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_58 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:
Which date has an Away team of richmond?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 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:
How many regions have a capital of matanzas and a 2005 population under 670427?
### Context:
CREATE TABLE table_name_85 (area__km²_ VARCHAR, capital VARCHAR, population__2005_ VARCHAR) [/INST]
### Response:
SELECT COUNT(area__km²_) FROM table_name_85 WHERE capital = "matanzas" AND population__2005_ < 670427 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area that has a Capital of camagüey, with a Population (%) larger than 7.02?
### Context:
CREATE TABLE table_name_25 (area__km²_ INTEGER, capital VARCHAR, population___percentage_ VARCHAR) [/INST]
### Response:
SELECT AVG(area__km²_) FROM table_name_25 WHERE capital = "camagüey" AND population___percentage_ > 7.02 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the Kings game attended by more than 18,630 people?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE attendance > 18 OFFSET 630 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average attendance for a Kings game when they had a record of 1–5–0?
### Context:
CREATE TABLE table_name_92 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_92 WHERE record = "1–5–0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team has over 1 tournament title, 0 in the regular season, and 2 total?
### Context:
CREATE TABLE table_name_47 (team VARCHAR, total VARCHAR, tournament VARCHAR, regular_season VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_47 WHERE tournament > 1 AND regular_season = "0" AND total = 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 total on average for teams with 3 tournaments?
### Context:
CREATE TABLE table_name_8 (total INTEGER, tournament VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_8 WHERE tournament = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello?
### Context:
CREATE TABLE table_name_21 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_21 WHERE laps > 7 AND driver = "rubens barrichello" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid when the laps is more than 0, the time/retired is engine and the driver is pedro de la rosa?
### Context:
CREATE TABLE table_name_5 (grid VARCHAR, driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_5 WHERE laps > 0 AND time_retired = "engine" AND driver = "pedro de la rosa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who is the driver with the grid of 13?
### Context:
CREATE TABLE table_name_84 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_84 WHERE grid = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 championships did the team or teams established in 1976 win?
### Context:
CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR) [/INST]
### Response:
SELECT SUM(championships) FROM table_name_92 WHERE established = 1976 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 WNBA team that won at least 2 championships was established most recently?
### Context:
CREATE TABLE table_name_54 (established INTEGER, league VARCHAR, championships VARCHAR) [/INST]
### Response:
SELECT MAX(established) FROM table_name_54 WHERE league = "wnba" AND championships > 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 are the venues that host WNBA games?
### Context:
CREATE TABLE table_name_39 (venue VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_39 WHERE league = "wnba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bowling style of the player born 16 march 1974
### Context:
CREATE TABLE table_name_10 (bowling_style VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT bowling_style FROM table_name_10 WHERE date_of_birth = "16 march 1974" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 batting style for heath streak
### Context:
CREATE TABLE table_name_57 (batting_style VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT batting_style FROM table_name_57 WHERE player = "heath streak" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a building that has 52 floors?
### Context:
CREATE TABLE table_name_87 (name VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_87 WHERE floors = 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 floors does the Custom House Tower have?
### Context:
CREATE TABLE table_name_95 (floors VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(floors) FROM table_name_95 WHERE name = "custom house 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:
How many floors does the building on 800 Boylston Street have?
### Context:
CREATE TABLE table_name_52 (floors INTEGER, street_address VARCHAR) [/INST]
### Response:
SELECT MAX(floors) FROM table_name_52 WHERE street_address = "800 boylston street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the street address for the Prudential Tower building?
### Context:
CREATE TABLE table_name_17 (street_address VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT street_address FROM table_name_17 WHERE name = "prudential 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:
There is a building at 800 Boylston Street, how many floors does it have?
### Context:
CREATE TABLE table_name_81 (floors INTEGER, street_address VARCHAR) [/INST]
### Response:
SELECT SUM(floors) FROM table_name_81 WHERE street_address = "800 boylston street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?
### Context:
CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR) [/INST]
### Response:
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 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:
What was the number of WJC Jews with a WJC rank of 6?
### Context:
CREATE TABLE table_name_96 (number_of_jews__wjc_ VARCHAR, rank___wjc__ VARCHAR) [/INST]
### Response:
SELECT number_of_jews__wjc_ FROM table_name_96 WHERE rank___wjc__ = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many number of WJC Jews in the Los Angeles Metro Area has a ARDA rank of more than 2?
### Context:
CREATE TABLE table_name_73 (number_of_jews__wjc_ INTEGER, metro_area VARCHAR, rank__arda_ VARCHAR) [/INST]
### Response:
SELECT SUM(number_of_jews__wjc_) FROM table_name_73 WHERE metro_area = "los angeles" AND rank__arda_ > 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 drove during the race with less than 19 laps and a time listed as ignition?
### Context:
CREATE TABLE table_name_55 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_55 WHERE laps < 19 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 his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?
### Context:
CREATE TABLE table_name_90 (record VARCHAR, round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_90 WHERE round > 2 AND event = "raging wolf 6: mayhem in the mist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 people that attended a game at Moorabbin Oval?
### Context:
CREATE TABLE table_name_54 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_54 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 least amount of people that attended a game when Essendon was the away team?
### Context:
CREATE TABLE table_name_83 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_83 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:
Which date did South Melbourne play as the away team?
### Context:
CREATE TABLE table_name_74 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_74 WHERE away_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the constructor for Jackie Stewart's car?
### Context:
CREATE TABLE table_name_3 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_3 WHERE 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 is the location where Denny Hulme was the driver?
### Context:
CREATE TABLE table_name_54 (location VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_54 WHERE driver = "denny hulme" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of the train that originated in Secunderabad Junction?
### Context:
CREATE TABLE table_name_87 (train_no VARCHAR, origin VARCHAR) [/INST]
### Response:
SELECT train_no FROM table_name_87 WHERE origin = "secunderabad junction" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From where did the train that arrived in the Anand Vihar Terminal originate?
### Context:
CREATE TABLE table_name_29 (origin VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT origin FROM table_name_29 WHERE destination = "anand vihar terminal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From where did Train No. 15929/30 originate?
### Context:
CREATE TABLE table_name_15 (origin VARCHAR, train_no VARCHAR) [/INST]
### Response:
SELECT origin FROM table_name_15 WHERE train_no = "15929/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:
What is the frequency of the train to Bangalore?
### Context:
CREATE TABLE table_name_82 (frequency VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_82 WHERE destination = "bangalore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Norwegian Americans have Norwegian Americans (2000) of 109,744?
### Context:
CREATE TABLE table_name_72 (norwegian_americans__2009_ VARCHAR, norwegian_americans__2000_ VARCHAR) [/INST]
### Response:
SELECT COUNT(norwegian_americans__2009_) FROM table_name_72 WHERE norwegian_americans__2000_ = 109 OFFSET 744 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state has a Percent (2009) of 6.2%?
### Context:
CREATE TABLE table_name_95 (state VARCHAR, percent__2009_ VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_95 WHERE percent__2009_ = "6.2%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the holding of the customers?
### Context:
CREATE TABLE table_name_56 (holding VARCHAR, component VARCHAR) [/INST]
### Response:
SELECT holding FROM table_name_56 WHERE component = "customers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Allied-Unrelated is labeled as "common"?
### Context:
CREATE TABLE table_name_61 (allied_unrelated VARCHAR, allied_related VARCHAR) [/INST]
### Response:
SELECT allied_unrelated FROM table_name_61 WHERE allied_related = "common" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 integrated has an allied-related of some shared?
### Context:
CREATE TABLE table_name_40 (integrated VARCHAR, allied_related VARCHAR) [/INST]
### Response:
SELECT integrated FROM table_name_40 WHERE allied_related = "some shared" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What integrated has an allied-related of centralized?
### Context:
CREATE TABLE table_name_11 (integrated VARCHAR, allied_related VARCHAR) [/INST]
### Response:
SELECT integrated FROM table_name_11 WHERE allied_related = "centralized" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What component has an integrated of one?
### Context:
CREATE TABLE table_name_21 (component VARCHAR, integrated VARCHAR) [/INST]
### Response:
SELECT component FROM table_name_21 WHERE integrated = "one" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidates had 0 percent of the vote in 1999?
### Context:
CREATE TABLE table_name_71 (candidates VARCHAR, seats_won VARCHAR, _percentage_of_vote VARCHAR, election VARCHAR) [/INST]
### Response:
SELECT COUNT(candidates) FROM table_name_71 WHERE _percentage_of_vote = 0 AND election = 1999 AND seats_won > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game with Manu ginóbili (44) as the leading scorer?
### Context:
CREATE TABLE table_name_27 (score VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_27 WHERE leading_scorer = "manu ginóbili (44)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game on February 21, 2008?
### Context:
CREATE TABLE table_name_60 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_60 WHERE date = "february 21, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the game with manu ginóbili (34) as the leading scorer?
### Context:
CREATE TABLE table_name_74 (home VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_74 WHERE leading_scorer = "manu ginóbili (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 is the record of the game on February 25, 2008?
### Context:
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_59 WHERE date = "february 25, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What type is shown with a moving to of valenciennes?
### Context:
CREATE TABLE table_name_7 (type VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_7 WHERE moving_to = "valenciennes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 transfer window with n/a as the Transfer fee, free agent for the Moving to, and Joe Sagar as the name?
### Context:
CREATE TABLE table_name_63 (transfer_window VARCHAR, name VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_63 WHERE transfer_fee = "n/a" AND moving_to = "free agent" AND name = "joe sagar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person with a type of end of contract, nat of sco, and the Moving to is cardiff city?
### Context:
CREATE TABLE table_name_81 (name VARCHAR, moving_to VARCHAR, type VARCHAR, nat VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_81 WHERE type = "end of contract" AND nat = "sco" AND moving_to = "cardiff city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Transfer window that has a Transfer fee of free, with a Moving to of derby county?
### Context:
CREATE TABLE table_name_54 (transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_54 WHERE transfer_fee = "free" AND moving_to = "derby county" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first game number that had attendance of 56,505?
### Context:
CREATE TABLE table_name_98 (game INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_98 WHERE attendance = 56 OFFSET 505 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 size for the away team footscray?
### Context:
CREATE TABLE table_name_59 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_59 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Race Name has Goodwood in the Curcuit?
### Context:
CREATE TABLE table_name_4 (race_name VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_4 WHERE circuit = "goodwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor has the Winning Driver, Jim Clark and the Circuit, Syracuse?
### Context:
CREATE TABLE table_name_6 (constructor VARCHAR, winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_6 WHERE winning_driver = "jim clark" AND circuit = "syracuse" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Constructor has the Winning Driver, Jo Siffert?
### Context:
CREATE TABLE table_name_72 (constructor VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_72 WHERE winning_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:
Which Constructor has Pergusa in the Circuit?
### Context:
CREATE TABLE table_name_49 (constructor VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_49 WHERE circuit = "pergusa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a game played at MCG?
### Context:
CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_89 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average total medals of the team with 2 gold and less than 1 silver?
### Context:
CREATE TABLE table_name_93 (total INTEGER, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_93 WHERE gold = 2 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 lowest amount of silver medals Iceland, who has less than 87 medals, has?
### Context:
CREATE TABLE table_name_95 (silver INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_95 WHERE nation = "iceland" AND total < 87 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least amount of bronze Andorra, who has more than 6 total medals, has?
### Context:
CREATE TABLE table_name_86 (bronze INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_86 WHERE nation = "andorra" AND total > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest amount of bronze Liechtenstein, who has more than 11 gold, has?
### Context:
CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_75 WHERE nation = "liechtenstein" AND gold > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average amount of silver medals Montenegro, who has less than 15 bronze and more than 11 total medals, has?
### Context:
CREATE TABLE table_name_87 (silver INTEGER, total VARCHAR, bronze VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_87 WHERE bronze < 15 AND nation = "montenegro" AND total > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lower turnout that has a byut of 50.7 and an ou psd smaller than 36.8?
### Context:
CREATE TABLE table_name_62 (voter_turnout INTEGER, byut VARCHAR, ou_psd VARCHAR) [/INST]
### Response:
SELECT MIN(voter_turnout) FROM table_name_62 WHERE byut = 50.7 AND ou_psd < 36.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:
What is the voter registration that has a BYut of 48.2?
### Context:
CREATE TABLE table_name_78 (voter_registration VARCHAR, byut VARCHAR) [/INST]
### Response:
SELECT COUNT(voter_registration) FROM table_name_78 WHERE byut = 48.2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team at VFL Park?
### Context:
CREATE TABLE table_name_22 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_22 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:
Who was the home team at Kardinia Park?
### Context:
CREATE TABLE table_name_78 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_78 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 type of paper is the 1 cent denominations made on?
### Context:
CREATE TABLE table_name_3 (paper_type VARCHAR, denomination VARCHAR) [/INST]
### Response:
SELECT paper_type FROM table_name_3 WHERE denomination = "1 cent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 paper type that the one that was issued on 26 july 2007 done on?
### Context:
CREATE TABLE table_name_7 (paper_type VARCHAR, date_of_issue VARCHAR) [/INST]
### Response:
SELECT paper_type FROM table_name_7 WHERE date_of_issue = "26 july 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 did the home team footscray score?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_65 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total crowd size for the him team footscray?
### Context:
CREATE TABLE table_name_95 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_95 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 corio oval?
### Context:
CREATE TABLE table_name_57 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_57 WHERE venue = "corio 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 livery was worn on the date before 1936, with the description of Gresley RF?
### Context:
CREATE TABLE table_name_82 (livery VARCHAR, date VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT livery FROM table_name_82 WHERE date < 1936 AND description = "gresley rf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number and name has the description Gresley RB and a date before 1937?
### Context:
CREATE TABLE table_name_16 (number_ VARCHAR, _name VARCHAR, description VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT number_ & _name FROM table_name_16 WHERE description = "gresley rb" AND date < 1937 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the owner before 1940, who had a number and name of no. 1222?
### Context:
CREATE TABLE table_name_60 (owner_s_ VARCHAR, date VARCHAR, number_ VARCHAR, _name VARCHAR) [/INST]
### Response:
SELECT owner_s_ FROM table_name_60 WHERE date < 1940 AND number_ & _name = "no. 1222" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What type has a scratch of 750 GB?
### Context:
CREATE TABLE table_name_2 (type VARCHAR, scratch VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_2 WHERE scratch = "750 gb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cache for a Number 64 with a Memory of 24 gb qpi 5.86 gt/s?
### Context:
CREATE TABLE table_name_13 (cache VARCHAR, memory VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT cache FROM table_name_13 WHERE memory = "24 gb qpi 5.86 gt/s" AND number = 64 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Memory for a Number 32 with a Clock of 2.26ghz?
### Context:
CREATE TABLE table_name_68 (memory VARCHAR, clock VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT memory FROM table_name_68 WHERE clock = "2.26ghz" AND number = 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:
Of those acquired in 2008, where were they born?
### Context:
CREATE TABLE table_name_62 (place_of_birth VARCHAR, acquired VARCHAR) [/INST]
### Response:
SELECT place_of_birth FROM table_name_62 WHERE acquired = 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shooting preference of Matthew Myers, acquired in 2010?
### Context:
CREATE TABLE table_name_99 (shoots VARCHAR, acquired VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT shoots FROM table_name_99 WHERE acquired = 2010 AND player = "matthew myers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was player Bruce Graham acquired?
### Context:
CREATE TABLE table_name_18 (acquired VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT acquired FROM table_name_18 WHERE player = "bruce graham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 42 √ when it has D 44 √ of r 36 √
### Context:
CREATE TABLE table_name_67 (d_42_√ VARCHAR, d_44_√ VARCHAR) [/INST]
### Response:
SELECT d_42_√ FROM table_name_67 WHERE d_44_√ = "r 36 √" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 45 O that has D 46 O of d 26
### Context:
CREATE TABLE table_name_30 (d_45_o VARCHAR, d_46_o VARCHAR) [/INST]
### Response:
SELECT d_45_o FROM table_name_30 WHERE d_46_o = "d 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least goals for goal difference of 7 and losses more than 13
### Context:
CREATE TABLE table_name_29 (goals_against INTEGER, goal_difference VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MIN(goals_against) FROM table_name_29 WHERE goal_difference = 7 AND losses > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of positions with goal difference more than -17 and played less than 38
### Context:
CREATE TABLE table_name_12 (position VARCHAR, goal_difference VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_12 WHERE goal_difference > -17 AND played < 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 was the attendance when South Melbourne played as the home team?
### Context:
CREATE TABLE table_name_21 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_21 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance when Footscray played as the away team?
### Context:
CREATE TABLE table_name_80 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_80 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons?
### Context:
CREATE TABLE table_name_72 (quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR) [/INST]
### Response:
SELECT MIN(quantity) FROM table_name_72 WHERE manufacturer = "peckett and sons" AND gwr_nos = "696, 779, 93 5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest capacity with an opening larger than 2015 in Trabzon?
### Context:
CREATE TABLE table_name_95 (capacity INTEGER, opening VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT MIN(capacity) FROM table_name_95 WHERE opening > 2015 AND city = "trabzon" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.