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 code has a C.R of 16.7:1?
### Context:
CREATE TABLE table_name_97 (code VARCHAR, cr VARCHAR) [/INST]
### Response:
SELECT code FROM table_name_97 WHERE cr = "16.7: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 Outcome happened on a Date that was 20 november 2011?
### Context:
CREATE TABLE table_name_61 (outcome VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_61 WHERE date = "20 november 2011" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Score of 0β3?
### Context:
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_4 WHERE score = "0β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:
Which Attendance has a Tie number of 5?
### Context:
CREATE TABLE table_name_63 (attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_63 WHERE tie_no = "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 Score has an Attendance of 23 january 1999, and a Tie # of 6?
### Context:
CREATE TABLE table_name_74 (score VARCHAR, attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_74 WHERE attendance = "23 january 1999" AND tie_no = "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:
Which Tie #has an Attendance of 54,591?
### Context:
CREATE TABLE table_name_16 (tie_no VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_16 WHERE attendance = "54,591" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score of 1β1, and an Away team of tottenham hotspur?
### Context:
CREATE TABLE table_name_68 (home_team VARCHAR, score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_68 WHERE score = "1β1" AND away_team = "tottenham hotspur" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Tie # of 15?
### Context:
CREATE TABLE table_name_25 (attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_25 WHERE tie_no = "15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Year was the Position 11th?
### Context:
CREATE TABLE table_name_80 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_80 WHERE position = "11th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the Competition in Rome, Italy?
### Context:
CREATE TABLE table_name_46 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_46 WHERE venue = "rome, italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Notes after 1983 have a Position of 18th?
### Context:
CREATE TABLE table_name_64 (notes VARCHAR, year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_64 WHERE year > 1983 AND position = "18th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
After 1983, what was the Position in Seoul, South Korea?
### Context:
CREATE TABLE table_name_92 (position VARCHAR, year VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_92 WHERE year > 1983 AND venue = "seoul, south korea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gold medals for the country with a Rank of 1 and less than 2 Total medals?
### Context:
CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" 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:
How many Gold medals does the country with 2 Silver and more than 2 Bronze have?
### Context:
CREATE TABLE table_name_11 (gold VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_11 WHERE silver = 2 AND bronze > 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 Age of dorothy Peel as of 1 February 2014 ?
### Context:
CREATE TABLE table_name_18 (age_as_of_1_february_2014 VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT age_as_of_1_february_2014 FROM table_name_18 WHERE name = "dorothy peel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 111years, 358days Age as of 1 February 2014?
### Context:
CREATE TABLE table_name_86 (name VARCHAR, age_as_of_1_february_2014 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_86 WHERE age_as_of_1_february_2014 = "111years, 358days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Capacity has a City of london, and a Stadium of queen's club?
### Context:
CREATE TABLE table_name_85 (capacity INTEGER, city VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT AVG(capacity) FROM table_name_85 WHERE city = "london" AND stadium = "queen's club" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank has a Name of thomas morgenstern, and Points larger than 368.9?
### Context:
CREATE TABLE table_name_38 (rank INTEGER, name VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_38 WHERE name = "thomas morgenstern" AND points > 368.9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?
### Context:
CREATE TABLE table_name_64 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_64 WHERE bronze > 1 AND gold > 8 AND silver < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of silvers for ranks over 7?
### Context:
CREATE TABLE table_name_88 (silver INTEGER, rank INTEGER) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_88 WHERE rank > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the record recorded was 64-78?
### Context:
CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_51 WHERE record = "64-78" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the record was 67-82, what was the final score recorded?
### Context:
CREATE TABLE table_name_55 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_55 WHERE record = "67-82" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the game played with 54,136 people in attendance?
### Context:
CREATE TABLE table_name_38 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_38 WHERE attendance = "54,136" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position does bert coan play?
### Context:
CREATE TABLE table_name_19 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_19 WHERE player = "bert coan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round 1's position?
### Context:
CREATE TABLE table_name_13 (position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_13 WHERE round = 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:
Which Round is the highest one that has a Position of running back?
### Context:
CREATE TABLE table_name_14 (round INTEGER, position VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_14 WHERE position = "running back" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position has a Pick smaller than 29, and a School/Club Team of arizona?
### Context:
CREATE TABLE table_name_85 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_85 WHERE pick < 29 AND school_club_team = "arizona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round is the lowest one that has a School/Club Team of alabama, and a Pick larger than 43?
### Context:
CREATE TABLE table_name_87 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_87 WHERE school_club_team = "alabama" AND pick > 43 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue of belshina
### Context:
CREATE TABLE table_name_94 (venue VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_94 WHERE team = "belshina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue of neman
### Context:
CREATE TABLE table_name_23 (venue VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_23 WHERE team = "neman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue of neman
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE team = "neman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of pick with round less than 6 and overall of 102
### Context:
CREATE TABLE table_name_46 (pick__number VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_46 WHERE round < 6 AND overall = 102 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome has a Score of 4β6 3β6?
### Context:
CREATE TABLE table_name_30 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_30 WHERE score = "4β6 3β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:
Which Tournament has a Score of 3β6 6β4 4β6?
### Context:
CREATE TABLE table_name_43 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_43 WHERE score = "3β6 6β4 4β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:
Which Date has a Score of 6β1 7β6 (8β6)?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_11 WHERE score = "6β1 7β6 (8β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:
Which Score has a Date of 26 september 2004?
### Context:
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_71 WHERE date = "26 september 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Outcome has a Score of 3β6 2β6?
### Context:
CREATE TABLE table_name_90 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_90 WHERE score = "3β6 2β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:
Which Surface has an Opponent in the final of daniella dominikovic?
### Context:
CREATE TABLE table_name_5 (surface VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_5 WHERE opponent_in_the_final = "daniella dominikovic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of time (sum) at 40Β° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?
### Context:
CREATE TABLE table_name_80 (time_to_ft__m__at_40 VARCHAR, shell__lb_ VARCHAR, max_height__ft_ VARCHAR) [/INST]
### Response:
SELECT COUNT(time_to_ft__m__at_40) AS Β°__seconds_ FROM table_name_80 WHERE shell__lb_ = 16 AND max_height__ft_ < 22 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average maximum height of a shell that travels for more than 16.3 seconds at 55Β° and has a maximum velocity of 2200 ft/s?
### Context:
CREATE TABLE table_name_19 (max_height__ft_ INTEGER, time_to_ft__m__at_55Β°__seconds_ VARCHAR, m_v_ft_s VARCHAR) [/INST]
### Response:
SELECT AVG(max_height__ft_) FROM table_name_19 WHERE time_to_ft__m__at_55Β°__seconds_ > 16.3 AND m_v_ft_s = 2200 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum amount of time a shell travels at 55Β° when it traveled less than 9.6 seconds at 40Β°?
### Context:
CREATE TABLE table_name_47 (time_to_ft__m__at_55 INTEGER, time_to_ft__m__at_40Β°__seconds_ INTEGER) [/INST]
### Response:
SELECT MAX(time_to_ft__m__at_55) AS Β°__seconds_ FROM table_name_47 WHERE time_to_ft__m__at_40Β°__seconds_ < 9.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 weight of the shell that reached its maximum height at 40Β° in 12.6 seconds?
### Context:
CREATE TABLE table_name_6 (shell__lb_ VARCHAR, time_to_ft__m__at_40Β°__seconds_ VARCHAR) [/INST]
### Response:
SELECT shell__lb_ FROM table_name_6 WHERE time_to_ft__m__at_40Β°__seconds_ = 12.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 average maximum height of the shell smaller than 12.5 lb that reached its maximum height at 25Β° in 10.1 seconds?
### Context:
CREATE TABLE table_name_24 (max_height__ft_ INTEGER, time_to_ft__m__at_25Β°__seconds_ VARCHAR, shell__lb_ VARCHAR) [/INST]
### Response:
SELECT AVG(max_height__ft_) FROM table_name_24 WHERE time_to_ft__m__at_25Β°__seconds_ = "10.1" AND shell__lb_ < 12.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 highest attendance for the game that was before week 6 on October 22, 1967?
### Context:
CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_74 WHERE date = "october 22, 1967" AND week < 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 state having a contestant with a talent of classical piano and a hometown from Lancaster, NY?
### Context:
CREATE TABLE table_name_63 (state VARCHAR, talent VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_63 WHERE talent = "classical piano" AND hometown = "lancaster, 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:
Whose talent was ballet en pointe?
### Context:
CREATE TABLE table_name_56 (name VARCHAR, talent VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_56 WHERE talent = "ballet en pointe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state represented by the contestant from Mesa, AZ?
### Context:
CREATE TABLE table_name_43 (state VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_43 WHERE hometown = "mesa, az" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 talent of the contestant from Lexington, SC?
### Context:
CREATE TABLE table_name_82 (talent VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT talent FROM table_name_82 WHERE hometown = "lexington, sc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 age of the contestant from Reno, NV?
### Context:
CREATE TABLE table_name_55 (age_1 VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT age_1 FROM table_name_55 WHERE hometown = "reno, nv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 writer wrote episode 18-09 (652)?
### Context:
CREATE TABLE table_name_29 (writer_s_ VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT writer_s_ FROM table_name_29 WHERE episode = "18-09 (652)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What episode was written by jonathan lewis?
### Context:
CREATE TABLE table_name_97 (episode VARCHAR, writer_s_ VARCHAR) [/INST]
### Response:
SELECT episode FROM table_name_97 WHERE writer_s_ = "jonathan lewis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Maryland have a player for Round 3?
### Context:
CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_81 WHERE school_club_team = "maryland" AND round = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many picks are there for defensive back for rounds larger than 11?
### Context:
CREATE TABLE table_name_23 (pick VARCHAR, position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_23 WHERE position = "defensive back" AND round > 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 highest game that has april 21 as the date?
### Context:
CREATE TABLE table_name_64 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_64 WHERE date = "april 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has a game less than 4, and april 19 as the date?
### Context:
CREATE TABLE table_name_2 (score VARCHAR, game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_2 WHERE game < 4 AND date = "april 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 opponent has a game less than 6, and april 17 as the date?
### Context:
CREATE TABLE table_name_4 (opponent VARCHAR, game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_4 WHERE game < 6 AND date = "april 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team that played Derby County as the away team?
### Context:
CREATE TABLE table_name_18 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_18 WHERE away_team = "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:
Which home team is ranked no. 7 by tie no.?
### Context:
CREATE TABLE table_name_87 (home_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_87 WHERE tie_no = "7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score for the game in which Manchester United was the home team?
### Context:
CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_85 WHERE home_team = "manchester united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golds does the nation having a rank of 8, fewer than 5 bronzes and more than 1 silver have?
### Context:
CREATE TABLE table_name_62 (gold VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_62 WHERE bronze < 5 AND silver > 1 AND rank > 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 nation was the film from that was in english and had a Literary tradition of canadian literature?
### Context:
CREATE TABLE table_name_99 (country VARCHAR, language_s_ VARCHAR, literary_tradition VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_99 WHERE language_s_ = "english" AND literary_tradition = "canadian literature" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 literary traidtion for the film in english in 2011?
### Context:
CREATE TABLE table_name_74 (literary_tradition VARCHAR, language_s_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT literary_tradition FROM table_name_74 WHERE language_s_ = "english" AND year = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the film made in that was made after 2011?
### Context:
CREATE TABLE table_name_10 (country VARCHAR, year INTEGER) [/INST]
### Response:
SELECT country FROM table_name_10 WHERE year > 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 48 rebounds?
### Context:
CREATE TABLE table_name_62 (team VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_62 WHERE rebounds = 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the lowest amount of 12 games and less than 48 rebounds?
### Context:
CREATE TABLE table_name_1 (rank INTEGER, games VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_1 WHERE games = 12 AND rebounds < 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rebounds does Fedor likholitov have with a rank greater than 8?
### Context:
CREATE TABLE table_name_21 (rebounds INTEGER, name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(rebounds) FROM table_name_21 WHERE name = "fedor likholitov" AND rank > 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:
Which game has more than 112 rebounds and a rank greater than 3?
### Context:
CREATE TABLE table_name_76 (games INTEGER, rank VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT MAX(games) FROM table_name_76 WHERE rank > 3 AND rebounds = 112 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in a place of t5 in the United States?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, place VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_25 WHERE place = "t5" AND nation = "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 was the score for a match where Sophie Gustafson played?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_44 WHERE player = "sophie gustafson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
with games more than 22 what is the rebound total?
### Context:
CREATE TABLE table_name_12 (rebounds INTEGER, games INTEGER) [/INST]
### Response:
SELECT SUM(rebounds) FROM table_name_12 WHERE games > 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 location of the b.c. open?
### Context:
CREATE TABLE table_name_81 (location VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_81 WHERE tournament = "b.c. open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the tallahassee open, with a Score of 269 (β19)?
### Context:
CREATE TABLE table_name_83 (location VARCHAR, score VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_83 WHERE score = "269 (β19)" AND tournament = "tallahassee open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lanny Wadkins (6) win?
### Context:
CREATE TABLE table_name_12 (date VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_12 WHERE winner = "lanny wadkins (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 Location for the buick-goodwrench open?
### Context:
CREATE TABLE table_name_40 (location VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_40 WHERE tournament = "buick-goodwrench open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Netflix episode that has a series episode of 6-02?
### Context:
CREATE TABLE table_name_98 (netflix VARCHAR, series_ep VARCHAR) [/INST]
### Response:
SELECT netflix FROM table_name_98 WHERE series_ep = "6-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:
Which segment A item that has a Segment D of wigs?
### Context:
CREATE TABLE table_name_80 (segment_a VARCHAR, segment_d VARCHAR) [/INST]
### Response:
SELECT segment_a FROM table_name_80 WHERE segment_d = "wigs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode has a Netflix episode of S03E16?
### Context:
CREATE TABLE table_name_55 (series_ep VARCHAR, netflix VARCHAR) [/INST]
### Response:
SELECT series_ep FROM table_name_55 WHERE netflix = "s03e16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Netflix episode has an overall episode number under 69 and a Segment D of S Trombone?
### Context:
CREATE TABLE table_name_92 (netflix VARCHAR, episode VARCHAR, segment_d VARCHAR) [/INST]
### Response:
SELECT netflix FROM table_name_92 WHERE episode < 69 AND segment_d = "s trombone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Species Specific has a Comparative of no, and an Intra-molecular structure of no, and a Link of sourcecode?
### Context:
CREATE TABLE table_name_29 (species_specific VARCHAR, link VARCHAR, comparative VARCHAR, intra_molecular_structure VARCHAR) [/INST]
### Response:
SELECT species_specific FROM table_name_29 WHERE comparative = "no" AND intra_molecular_structure = "no" AND link = "sourcecode" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Intra-molecular structure has a Comparative of no, and a Name of mitarget?
### Context:
CREATE TABLE table_name_76 (intra_molecular_structure VARCHAR, comparative VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT intra_molecular_structure FROM table_name_76 WHERE comparative = "no" AND name = "mitarget" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Comparative has a Name of pictar?
### Context:
CREATE TABLE table_name_71 (comparative VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT comparative FROM table_name_71 WHERE name = "pictar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name has an Intra-molecular structure of no, and a Link of webserver, and a Comparative of no?
### Context:
CREATE TABLE table_name_63 (name VARCHAR, comparative VARCHAR, intra_molecular_structure VARCHAR, link VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_63 WHERE intra_molecular_structure = "no" AND link = "webserver" AND comparative = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Comparative has a Link of sourcecode webserver?
### Context:
CREATE TABLE table_name_43 (comparative VARCHAR, link VARCHAR) [/INST]
### Response:
SELECT comparative FROM table_name_43 WHERE link = "sourcecode webserver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Species Specific has a Link of server/sourcecode?
### Context:
CREATE TABLE table_name_53 (species_specific VARCHAR, link VARCHAR) [/INST]
### Response:
SELECT species_specific FROM table_name_53 WHERE link = "server/sourcecode" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg for Instituto?
### Context:
CREATE TABLE table_name_45 (home__2nd_leg_ VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_45 WHERE home__2nd_leg_ = "instituto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of aggregate's 3-4?
### Context:
CREATE TABLE table_name_87 (home__2nd_leg_ VARCHAR, aggregate VARCHAR) [/INST]
### Response:
SELECT home__2nd_leg_ FROM table_name_87 WHERE aggregate = "3-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round did the fight against Sofia Bagherdai go to?
### Context:
CREATE TABLE table_name_74 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_74 WHERE opponent = "sofia bagherdai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method of fight completion for the Mars: Attack 1 event?
### Context:
CREATE TABLE table_name_4 (method VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_4 WHERE event = "mars: attack 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 had a score of 70-71-68-72=281?
### Context:
CREATE TABLE table_name_88 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what had a score like roberto devicenzo
### Context:
CREATE TABLE table_name_97 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_97 WHERE player = "roberto devicenzo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number who attended during week 11?
### Context:
CREATE TABLE table_name_98 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_98 WHERE week = 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 was the total number of weeks with a result of l 31-21?
### Context:
CREATE TABLE table_name_33 (week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_33 WHERE result = "l 31-21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 has a 2012 of 1β4?
### Context:
CREATE TABLE table_name_24 (Id VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_24 WHERE 2012 = "1β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 2007 has a 2008 of 0 / 4?
### Context:
CREATE TABLE table_name_90 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_90 WHERE 2008 = "0 / 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 2007 has a 2003 of 2r, and a 2004 of 1r?
### Context:
CREATE TABLE table_name_7 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_7 WHERE 2003 = "2r" AND 2004 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2010 has a 2009 of 0 / 4?
### Context:
CREATE TABLE table_name_86 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_86 WHERE 2009 = "0 / 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 2011 has a 1999 of A, and a 2004 of 2r, and a Career SR of 0 / 10?
### Context:
CREATE TABLE table_name_96 (career_sr VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_96 WHERE 1999 = "a" AND 2004 = "2r" AND career_sr = "0 / 10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which 2005 has a 1999 of 0β0?
### Context:
CREATE TABLE table_name_37 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_37 WHERE 1999 = "0β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 date of week 7
### Context:
CREATE TABLE table_name_92 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE week = 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the visitor in the game that led to a 39-20-6 record?
### Context:
CREATE TABLE table_name_96 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_96 WHERE record = "39-20-6" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.