text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?
### Context:
CREATE TABLE table_name_20 (opening INTEGER, stadium VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT AVG(opening) FROM table_name_20 WHERE stadium = "stadyum samsun" AND capacity < 34 OFFSET 658 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Years for Jazz Club at Oregon State?
### Context:
CREATE TABLE table_name_46 (years_for_jazz VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_46 WHERE school_club_team = "oregon state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Andre Owens in Year for Jazz?
### Context:
CREATE TABLE table_name_38 (years_for_jazz VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_38 WHERE player = "andre owens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Jazz club of Houston?
### Context:
CREATE TABLE table_name_54 (years_for_jazz VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_54 WHERE school_club_team = "houston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position does Dan O'Sullivan play?
### Context:
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_58 WHERE player = "dan o'sullivan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position in the club team of Kansas?
### Context:
CREATE TABLE table_name_21 (position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_21 WHERE school_club_team = "kansas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 center position of Years for Jazz, Greg Ostertag?
### Context:
CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years_for_jazz FROM table_name_43 WHERE position = "center" AND player = "greg ostertag" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date for the Away team University?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE away_team = "university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Home team score at junction oval?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_19 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Date did the Home team play in essendon?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE home_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:
What country has OF-1 Locotenent?
### Context:
CREATE TABLE table_name_1 (country VARCHAR, of_1 VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_1 WHERE of_1 = "locotenent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country has OF-1 Locotenent?
### Context:
CREATE TABLE table_name_40 (country VARCHAR, of_1 VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_40 WHERE of_1 = "locotenent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 OF-5 is in Ghana?
### Context:
CREATE TABLE table_name_48 (of_5 VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT of_5 FROM table_name_48 WHERE country = "ghana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 OF-4 of Albania?
### Context:
CREATE TABLE table_name_47 (of_4 VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT of_4 FROM table_name_47 WHERE country = "albania" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick numbers for the CFL team Edmonton Eskimos?
### Context:
CREATE TABLE table_name_79 (pick__number INTEGER, cfl_team VARCHAR) [/INST]
### Response:
SELECT SUM(pick__number) FROM table_name_79 WHERE cfl_team = "edmonton eskimos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What p;layer attended Concordia College?
### Context:
CREATE TABLE table_name_40 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_40 WHERE college = "concordia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of picks for the position of OL?
### Context:
CREATE TABLE table_name_87 (pick__number INTEGER, position VARCHAR) [/INST]
### Response:
SELECT SUM(pick__number) FROM table_name_87 WHERE position = "ol" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week for result of w 38-13
### Context:
CREATE TABLE table_name_7 (week INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_7 WHERE result = "w 38-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:
I want to know the date with attendance of 35,763
### Context:
CREATE TABLE table_name_88 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_88 WHERE attendance = "35,763" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series with a total of 27 albums did Dargaud edit?
### Context:
CREATE TABLE table_name_39 (series VARCHAR, editor VARCHAR, albums VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_39 WHERE editor = "dargaud" AND albums = "27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years did the magazine Vaillant and Pif run?
### Context:
CREATE TABLE table_name_78 (years VARCHAR, magazine VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_78 WHERE magazine = "vaillant and pif" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What state is susana martinez from?
### Context:
CREATE TABLE table_name_72 (state VARCHAR, current_governor VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_72 WHERE current_governor = "susana martinez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team is hawthorn?
### Context:
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_70 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 league is ordabasy-2 in?
### Context:
CREATE TABLE table_name_64 (league VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_64 WHERE team = "ordabasy-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:
On what date was Richmond hosted as the away team?
### Context:
CREATE TABLE table_name_50 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_50 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:
Tell me the Hindu with Jewish of source: uk 2001 census
### Context:
CREATE TABLE table_name_87 (hindu VARCHAR, jewish VARCHAR) [/INST]
### Response:
SELECT hindu FROM table_name_87 WHERE jewish = "source: uk 2001 census" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ethnic group for jewish of 0.47%
### Context:
CREATE TABLE table_name_77 (ethnic_group VARCHAR, jewish VARCHAR) [/INST]
### Response:
SELECT ethnic_group FROM table_name_77 WHERE jewish = "0.47%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the Hindu for ethnic group for white irish
### Context:
CREATE TABLE table_name_4 (hindu VARCHAR, ethnic_group VARCHAR) [/INST]
### Response:
SELECT hindu FROM table_name_4 WHERE ethnic_group = "white irish" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ethnic group with a buddhist of 0.19%
### Context:
CREATE TABLE table_name_94 (ethnic_group VARCHAR, buddhist VARCHAR) [/INST]
### Response:
SELECT ethnic_group FROM table_name_94 WHERE buddhist = "0.19%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance of week 8?
### Context:
CREATE TABLE table_name_24 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_24 WHERE week = 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 was the opponent of carlton at their home game?
### Context:
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_95 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:
Tell me the result for 3 goals
### Context:
CREATE TABLE table_name_46 (result VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_46 WHERE goal = 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:
Name the score for november 16
### Context:
CREATE TABLE table_name_8 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE date = "november 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Hawthorn Home Team?
### Context:
CREATE TABLE table_name_6 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_6 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Away Team Score of the Collingwood Home Team?
### Context:
CREATE TABLE table_name_26 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_26 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Away Team's venue is Arden Street Oval?
### Context:
CREATE TABLE table_name_45 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_45 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least Laps for accident and gird more than 13
### Context:
CREATE TABLE table_name_41 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_41 WHERE time_retired = "accident" AND 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:
Tell me the lowest Grid for engine and driver of emerson fittipaldi with more laps than 70
### Context:
CREATE TABLE table_name_83 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_83 WHERE time_retired = "engine" AND driver = "emerson fittipaldi" AND laps > 70 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue was the away team South Melbourne?
### Context:
CREATE TABLE table_name_62 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_62 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:
Where did the away team Carlton play?
### Context:
CREATE TABLE table_name_2 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_2 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What home team played against Richmond?
### Context:
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_73 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest crowd size for punt road oval?
### Context:
CREATE TABLE table_name_68 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_68 WHERE venue = "punt road 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 Number of people 1991 has a Percent of Slovenes 1991 of 14.4%?
### Context:
CREATE TABLE table_name_67 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR) [/INST]
### Response:
SELECT MAX(number_of_people_1991) FROM table_name_67 WHERE percent_of_slovenes_1991 = "14.4%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Percent of Slovenes 1951 has a Number of people 1991 larger than 8, and a Village (German) of plöschenberg?
### Context:
CREATE TABLE table_name_60 (percent_of_slovenes_1951 VARCHAR, number_of_people_1991 VARCHAR, village__german_ VARCHAR) [/INST]
### Response:
SELECT percent_of_slovenes_1951 FROM table_name_60 WHERE number_of_people_1991 > 8 AND village__german_ = "plöschenberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was Collingwood's away game played?
### Context:
CREATE TABLE table_name_3 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_3 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the away team's score at Western Oval?
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_74 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:
When did Collingwood play an away game?
### Context:
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_53 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team is based at junction oval?
### Context:
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_66 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the team set at junction oval?
### Context:
CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_68 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver has a grid under 12 with a Time/Retired of + 3 laps?
### Context:
CREATE TABLE table_name_87 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_87 WHERE grid < 12 AND time_retired = "+ 3 laps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the high grid for osella - alfa romeo, and a Laps larger than 61?
### Context:
CREATE TABLE table_name_56 (grid INTEGER, constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_56 WHERE constructor = "osella - alfa romeo" AND laps > 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 picks does Matt Moran have altogether after round 6?
### Context:
CREATE TABLE table_name_72 (pick VARCHAR, name VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_72 WHERE name = "matt moran" AND round > 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 position after round 8 has a pick less than 270?
### Context:
CREATE TABLE table_name_67 (position VARCHAR, round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_67 WHERE round > 8 AND pick < 270 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of rounds that UCLA has?
### Context:
CREATE TABLE table_name_41 (round VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_41 WHERE school = "ucla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for Georgia Tech?
### Context:
CREATE TABLE table_name_2 (round INTEGER, school VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for Georgia Tech with a pick greater than 103?
### Context:
CREATE TABLE table_name_81 (round INTEGER, school VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_81 WHERE school = "georgia tech" AND pick > 103 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is featured for 2001-2002?
### Context:
CREATE TABLE table_name_28 (player VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_28 WHERE year = "2001-2002" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is from Queens, NY?
### Context:
CREATE TABLE table_name_77 (player VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_77 WHERE hometown = "queens, ny" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Maya Moore attend school?
### Context:
CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_6 WHERE player = "maya moore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 difference with a loss smaller than 5 and points lower than 32?
### Context:
CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 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:
Which loss had a player lower than 18?
### Context:
CREATE TABLE table_name_63 (lost INTEGER, played INTEGER) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_63 WHERE played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won the 2012 game that had a score of 15–0?
### Context:
CREATE TABLE table_name_88 (winner VARCHAR, year VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_88 WHERE year = 2012 AND result = "15–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:
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865
### Context:
CREATE TABLE table_name_99 (week INTEGER, result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_99 WHERE result = "l 31-27" AND attendance < 85 OFFSET 865 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes of Prizzi's Honor?
### Context:
CREATE TABLE table_name_72 (director VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_72 WHERE notes = "prizzi's honor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Superlative had a record set of 12 nominations?
### Context:
CREATE TABLE table_name_23 (superlative VARCHAR, record_set VARCHAR) [/INST]
### Response:
SELECT superlative FROM table_name_23 WHERE record_set = "12 nominations" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 completed by driver Joe Nemechek?
### Context:
CREATE TABLE table_name_3 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_3 WHERE driver = "joe nemechek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 they played at Victoria Park?
### Context:
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the venue when the home team was Fitzroy?
### Context:
CREATE TABLE table_name_76 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_76 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:
What is the date for proposed for revere textile prints corporation
### Context:
CREATE TABLE table_name_40 (proposed VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT proposed FROM table_name_40 WHERE name = "revere textile prints corporation" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 deleted for tolland?
### Context:
CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT deleted FROM table_name_71 WHERE county = "tolland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 side score when hawthorn is the home side?
### Context:
CREATE TABLE table_name_93 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_93 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average lap total for grids under 19 and a Time/Retired of +4 laps?
### Context:
CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_63 WHERE time_retired = "+4 laps" AND grid < 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who drive over 43 laps in grid 5?
### Context:
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_66 WHERE laps > 43 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:
Which Away team score has a Venue of princes park?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Away team score has a Home team of melbourne?
### Context:
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_17 WHERE home_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What genre is revolving doors of vengeance 酒店風雲?
### Context:
CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = "revolving doors of vengeance 酒店風雲" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
### Context:
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR) [/INST]
### Response:
SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = "modern drama" AND number_of_episodes = 20 AND airing_date = "26 sep- 21 oct" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 D48 when the D 50 O is d 31?
### Context:
CREATE TABLE table_name_67 (d_48_√ VARCHAR, d_50_o VARCHAR) [/INST]
### Response:
SELECT d_48_√ FROM table_name_67 WHERE d_50_o = "d 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was Catalogue tojp 60121-22's Date?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_67 WHERE catalogue = "tojp 60121-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 was the Date of Country of United States?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE country = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Catalogue is Dated 14 november 2003, with the Format compact disc?
### Context:
CREATE TABLE table_name_47 (catalogue VARCHAR, date VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT catalogue FROM table_name_47 WHERE date = "14 november 2003" AND format = "compact disc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Label for Date of 14 November 2003, and Catalogue tojp 60121-22?
### Context:
CREATE TABLE table_name_70 (label VARCHAR, date VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_70 WHERE date = "14 november 2003" AND catalogue = "tojp 60121-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 Label was Catalogued tojp 60121-22?
### Context:
CREATE TABLE table_name_83 (label VARCHAR, catalogue VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_83 WHERE catalogue = "tojp 60121-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 record for Norway on 23 august 1981?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, nationality VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_56 WHERE nationality = "norway" AND date = "23 august 1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 20000 m walk?
### Context:
CREATE TABLE table_name_12 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_12 WHERE event = "20000 m walk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bye week?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE result = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Open 2nd VIII had a U15 6th Quad of BGS and a U16 1st VII of TSS?
### Context:
CREATE TABLE table_name_5 (open_2nd_viii VARCHAR, u15_6th_quad VARCHAR, u16_1st_viii VARCHAR) [/INST]
### Response:
SELECT open_2nd_viii FROM table_name_5 WHERE u15_6th_quad = "bgs" AND u16_1st_viii = "tss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What U15 3rd Quad has a U15 2nd Quad of ACGS?
### Context:
CREATE TABLE table_name_89 (u15_3rd_quad VARCHAR, u15_2nd_quad VARCHAR) [/INST]
### Response:
SELECT u15_3rd_quad FROM table_name_89 WHERE u15_2nd_quad = "acgs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 U15 4th Quad had a U15 3rd Quad of BBC and U15 6th Quad of GT?
### Context:
CREATE TABLE table_name_68 (u15_4th_quad VARCHAR, u15_3rd_quad VARCHAR, u15_6th_quad VARCHAR) [/INST]
### Response:
SELECT u15_4th_quad FROM table_name_68 WHERE u15_3rd_quad = "bbc" AND u15_6th_quad = "gt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 U15 1st Quad had an Open 3rd VIII of BBC and U16 3rd VIII of BBC?
### Context:
CREATE TABLE table_name_37 (u15_1st_quad VARCHAR, open_3rd_viii VARCHAR, u16_3rd_viii VARCHAR) [/INST]
### Response:
SELECT u15_1st_quad FROM table_name_37 WHERE open_3rd_viii = "bbc" AND u16_3rd_viii = "bbc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the athlete with a final result of 4.50?
### Context:
CREATE TABLE table_name_92 (nationality VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_92 WHERE result = "4.50" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athlete with a final result of 4.30?
### Context:
CREATE TABLE table_name_48 (athlete VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_48 WHERE result = "4.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:
Which country has the Highest mountain of rettlkirchspitze?
### Context:
CREATE TABLE table_name_68 (country VARCHAR, highest_mountain VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_68 WHERE highest_mountain = "rettlkirchspitze" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height with the Highest mountain of hochgall?
### Context:
CREATE TABLE table_name_54 (height__m_ INTEGER, highest_mountain VARCHAR) [/INST]
### Response:
SELECT AVG(height__m_) FROM table_name_54 WHERE highest_mountain = "hochgall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What US Country released an album of singles only in 1967?
### Context:
CREATE TABLE table_name_30 (us_country VARCHAR, album VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT us_country FROM table_name_30 WHERE album = "singles only" AND year = 1967 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best album in 1965?
### Context:
CREATE TABLE table_name_13 (us VARCHAR, album VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT us AS AC FROM table_name_13 WHERE album = "the best" AND year = 1965 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the fight that had a tko (low kicks)?
### Context:
CREATE TABLE table_name_98 (result VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_98 WHERE method = "tko (low kicks)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event went under 3 rounds and was no contest (punch after knockdown)?
### Context:
CREATE TABLE table_name_74 (event VARCHAR, round VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_74 WHERE round < 3 AND method = "no contest (punch after knockdown)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event was in hong kong and went less than 2 rounds?
### Context:
CREATE TABLE table_name_66 (event VARCHAR, round VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_66 WHERE round < 2 AND location = "hong kong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many rounds was the fight against carter williams?
### Context:
CREATE TABLE table_name_2 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_2 WHERE opponent = "carter williams" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.