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 category is for tom shankland, director?
### Context:
CREATE TABLE table_name_56 (category VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_56 WHERE director_s_ = "tom shankland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer fees did Afonso Alves have after 2008?
### Context:
CREATE TABLE table_name_13 (transfer_fee___ VARCHAR, player VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(transfer_fee___) AS €_million_ FROM table_name_13 WHERE player = "afonso alves" AND year > 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the film about the garden of the finzi-continis made?
### Context:
CREATE TABLE table_name_30 (country VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_30 WHERE film_title_used_in_nomination = "the garden of the finzi-continis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film was translated from portuguese?
### Context:
CREATE TABLE table_name_44 (original_name VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_44 WHERE language = "portuguese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film originated in France?
### Context:
CREATE TABLE table_name_27 (original_name VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_27 WHERE country = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 real name of the movie about love?
### Context:
CREATE TABLE table_name_26 (original_name VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_26 WHERE film_title_used_in_nomination = "love" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 real name of the movie directed by gert fredholm?
### Context:
CREATE TABLE table_name_22 (original_name VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_22 WHERE director = "gert fredholm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 movie originated in Bulgaria?
### Context:
CREATE TABLE table_name_9 (film_title_used_in_nomination VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_9 WHERE country = "bulgaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at the game that had a loss of Stieb (5-7)?
### Context:
CREATE TABLE table_name_64 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_64 WHERE loss = "stieb (5-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 was the loss of the game against the Angels with a 26-30 record?
### Context:
CREATE TABLE table_name_9 (loss VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_9 WHERE opponent = "angels" AND record = "26-30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most points earlier than 1953 with a Ferrari 375/50 chassis?
### Context:
CREATE TABLE table_name_22 (points INTEGER, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_22 WHERE year < 1953 AND chassis = "ferrari 375/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 is the latest year with more than 0 points?
### Context:
CREATE TABLE table_name_13 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(year) FROM table_name_13 WHERE points > 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 year were there less than 1.5 points and an Entrant of escuderia bandeirantes, and a maserati straight-4 engine?
### Context:
CREATE TABLE table_name_90 (year VARCHAR, engine VARCHAR, points VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_90 WHERE points < 1.5 AND entrant = "escuderia bandeirantes" AND engine = "maserati straight-4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of points for the Entrant of escuderia bandeirantes earlier than 1952?
### Context:
CREATE TABLE table_name_65 (points INTEGER, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_65 WHERE entrant = "escuderia bandeirantes" AND year < 1952 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 double's performance data from the Canada Masters tournament in 2008?
### Context:
CREATE TABLE table_name_5 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_5 WHERE tournament = "canada masters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 double's performance data from the Monte Carlo Masters tournament in 2007?
### Context:
CREATE TABLE table_name_54 (tournament VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_54 WHERE tournament = "monte carlo masters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2004 population when there were 5158 households?
### Context:
CREATE TABLE table_name_8 (population__2004_ INTEGER, households VARCHAR) [/INST]
### Response:
SELECT MIN(population__2004_) FROM table_name_8 WHERE households = 5158 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number for the Moroccan population when the name is Sebt Saiss and the 2004 population is more than 11212?
### Context:
CREATE TABLE table_name_30 (moroccan_population VARCHAR, name VARCHAR, population__2004_ VARCHAR) [/INST]
### Response:
SELECT COUNT(moroccan_population) FROM table_name_30 WHERE name = "sebt saiss" AND population__2004_ > 11212 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest foreign population when the 2004 population is 7641?
### Context:
CREATE TABLE table_name_83 (foreign_population INTEGER, population__2004_ VARCHAR) [/INST]
### Response:
SELECT MAX(foreign_population) FROM table_name_83 WHERE population__2004_ = 7641 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year that has no more than 0 points?
### Context:
CREATE TABLE table_name_85 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(year) FROM table_name_85 WHERE points < 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:
Which of the chassis had a total of 7 points?
### Context:
CREATE TABLE table_name_60 (chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_60 WHERE points = 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 was the latest year that a Bardahl entrant had a Kurtis Kraft 500c chassis with no more than 0 points?
### Context:
CREATE TABLE table_name_35 (year INTEGER, points VARCHAR, chassis VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_35 WHERE chassis = "kurtis kraft 500c" AND entrant = "bardahl" AND points < 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 was the average points for Hopkins before 1956?
### Context:
CREATE TABLE table_name_75 (points INTEGER, entrant VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_75 WHERE entrant = "hopkins" AND year < 1956 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the least amount of points the entrant Simoniz received before 1960?
### Context:
CREATE TABLE table_name_19 (points INTEGER, year VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_19 WHERE year < 1960 AND entrant = "simoniz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?
### Context:
CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language of the film directed by Federico Fellini?
### Context:
CREATE TABLE table_name_27 (language VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_27 WHERE director = "federico fellini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film title used in nomination for the film from South Korea?
### Context:
CREATE TABLE table_name_26 (film_title_used_in_nomination VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_26 WHERE country = "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:
What was the film title used in nomination for the film directed by Gheorghe Vitanidis?
### Context:
CREATE TABLE table_name_89 (film_title_used_in_nomination VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_89 WHERE director = "gheorghe vitanidis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the film 'Monsters' come out?
### Context:
CREATE TABLE table_name_96 (date VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_96 WHERE film = "monsters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What movie won with a date of 12/11/03
### Context:
CREATE TABLE table_name_78 (recipient VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT recipient FROM table_name_78 WHERE date = "12/11/03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the producer for the film 'Strange Little Girls'?
### Context:
CREATE TABLE table_name_20 (producer_s_ VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT producer_s_ FROM table_name_20 WHERE film = "strange little girls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 worked for Intrepido LTD for a film on 17/03/04?
### Context:
CREATE TABLE table_name_35 (writer_s_ VARCHAR, recipient VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT writer_s_ FROM table_name_35 WHERE recipient = "intrepido ltd" AND date = "17/03/04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 producer worked for Animus Films LTD?
### Context:
CREATE TABLE table_name_42 (producer_s_ VARCHAR, recipient VARCHAR) [/INST]
### Response:
SELECT producer_s_ FROM table_name_42 WHERE recipient = "animus films ltd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended the game against the Mariners with a score of 9-6?
### Context:
CREATE TABLE table_name_94 (attendance VARCHAR, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_94 WHERE opponent = "mariners" AND score = "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 loss for the record of 42-36?
### Context:
CREATE TABLE table_name_82 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_82 WHERE record = "42-36" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the score 5-2 with a loss of sele (3-2)?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_17 WHERE score = "5-2" AND loss = "sele (3-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 loss when the record is 38-33?
### Context:
CREATE TABLE table_name_67 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_67 WHERE record = "38-33" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number of Conor Jackson?
### Context:
CREATE TABLE table_name_72 (pick INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_72 WHERE player = "conor jackson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school had the draft pick of 29?
### Context:
CREATE TABLE table_name_36 (school VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_36 WHERE pick = 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school did Conor Jackson attend?
### Context:
CREATE TABLE table_name_75 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_75 WHERE player = "conor jackson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for 2007 when 2008 is Q1?
### Context:
CREATE TABLE table_name_68 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_68 WHERE 2008 = "q1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 win-loss when 2008 has a value of Q1 at Australian Open?
### Context:
CREATE TABLE table_name_65 (career_win_loss VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT career_win_loss FROM table_name_65 WHERE 2008 = "q1" AND tournament = "australian 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 value in 2009 at the French Open?
### Context:
CREATE TABLE table_name_86 (tournament VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_86 WHERE tournament = "french 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 value in 2008 for the US Open?
### Context:
CREATE TABLE table_name_31 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_31 WHERE tournament = "us 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 value in 2009 when 1R is in 2007?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_19 WHERE 2007 = "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:
What is the record of the game on May 6?
### Context:
CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_4 WHERE date = "may 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 tournament when in 2012 the performance was 2r?
### Context:
CREATE TABLE table_name_38 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_38 WHERE 2012 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament with the performance in 2010 and 2011 is 1r?
### Context:
CREATE TABLE table_name_12 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_12 WHERE 2010 = "1r" AND 2011 = "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:
what is the 2012 performance when in 2011 is qf and 2010 is 3r?
### Context:
CREATE TABLE table_name_28 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_28 WHERE 2011 = "qf" AND 2010 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament when 2011 is qf and 2012 is sf?
### Context:
CREATE TABLE table_name_42 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_42 WHERE 2011 = "qf" AND 2012 = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament when the performance in 2012 is 3r and 2011 is qf?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_77 WHERE 2012 = "3r" AND 2011 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 performance for the US open?
### Context:
CREATE TABLE table_name_2 (tournament VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_2 WHERE tournament = "us 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 year when Spirit Tom's Racing had more than 3 points?
### Context:
CREATE TABLE table_name_70 (year INTEGER, entrant VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_70 WHERE entrant = "spirit tom's racing" AND points > 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 average week for attendance of 75,111
### Context:
CREATE TABLE table_name_17 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_17 WHERE attendance = 75 OFFSET 111 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of week with attendance of 62,233
### Context:
CREATE TABLE table_name_49 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_49 WHERE attendance = 62 OFFSET 233 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the smallest points in 3rd place but had a position greater than 8?
### Context:
CREATE TABLE table_name_9 (points INTEGER, place VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_9 WHERE place = "3rd" AND position > 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the place with 90 point total but a position less than 5?
### Context:
CREATE TABLE table_name_12 (place VARCHAR, position VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_12 WHERE position < 5 AND points = 90 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the song by afro-dite that had a points total greater than 100?
### Context:
CREATE TABLE table_name_31 (song VARCHAR, points VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_31 WHERE points > 100 AND artist = "afro-dite" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much money was requested on the show which aired on 4 september 2011?
### Context:
CREATE TABLE table_name_87 (money_requested__ INTEGER, first_aired VARCHAR) [/INST]
### Response:
SELECT SUM(money_requested__) AS £_ FROM table_name_87 WHERE first_aired = "4 september 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 investing dragons aired on episode 10?
### Context:
CREATE TABLE table_name_31 (investing_dragon_s_ VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT investing_dragon_s_ FROM table_name_31 WHERE episode = "episode 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:
For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993.
### Context:
CREATE TABLE table_name_53 (points INTEGER, year VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = "sasol jordan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Give the most points that features jordan 194 in the Chassis column.
### Context:
CREATE TABLE table_name_64 (points INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_64 WHERE chassis = "jordan 194" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What car was awarded sub 1 litre in 2000?
### Context:
CREATE TABLE table_name_18 (category VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_18 WHERE category = "sub 1 litre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What car was awarded sub 1 litre in 2000 (won by toyota 1sz-fe 1.0l yaris in 1999)?
### Context:
CREATE TABLE table_name_35 (category VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_35 WHERE 1999 = "toyota 1sz-fe 1.0l yaris" AND category = "sub 1 litre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 car won the same award in 2001 that the toyota 1nz-fxe hybrid prius won in 1999?
### Context:
CREATE TABLE table_name_76 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_76 WHERE 1999 = "toyota 1nz-fxe hybrid prius" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 car won the same award in 2000 that the ferrari f133 5.5l v12 456 / 550 won in 2001?
### Context:
CREATE TABLE table_name_13 (Id VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_13 WHERE 2001 = "ferrari f133 5.5l v12 456 / 550" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 car won the same award in 2001 that the bmw m67d39 3.9l v8 e38 740d won in 1999?
### Context:
CREATE TABLE table_name_26 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_26 WHERE 1999 = "bmw m67d39 3.9l v8 e38 740d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 car won the 1.4litre to 1.8litre award in 2001?
### Context:
CREATE TABLE table_name_17 (category VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_17 WHERE category = "1.4litre to 1.8litre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface of the mountain range that contains the Elk Garden Mountain?
### Context:
CREATE TABLE table_name_38 (surface VARCHAR, mountain VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_38 WHERE mountain = "elk garden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 value at the Grand Slam Tournaments?
### Context:
CREATE TABLE table_name_70 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_70 WHERE tournament = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament with A in 2011?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_77 WHERE 2011 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 value with A in 2009 and A in 2008 in the Australian Open?
### Context:
CREATE TABLE table_name_43 (tournament VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_43 WHERE 2009 = "a" AND 2008 = "a" AND tournament = "australian 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 2012 value with A in 2010 at the Tournament of Wimbledon?
### Context:
CREATE TABLE table_name_13 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_13 WHERE 2010 = "a" AND tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009 value with q1 in 2010?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_60 WHERE 2010 = "q1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record of the game that went 0-7?
### Context:
CREATE TABLE table_name_20 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_20 WHERE score = "0-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 day did the Diamondbacks go 2-7?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE opponent = "diamondbacks" AND score = "2-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 was the record of the game that went 3-5?
### Context:
CREATE TABLE table_name_88 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_88 WHERE score = "3-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:
Type of stratovolcano, and a Name of goat rocks, and a Elevation (m) larger than 2,494 has what highest elevation in feet?
### Context:
CREATE TABLE table_name_40 (elevation__ft_ INTEGER, elevation__m_ VARCHAR, type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MAX(elevation__ft_) FROM table_name_40 WHERE type = "stratovolcano" AND name = "goat rocks" AND elevation__m_ > 2 OFFSET 494 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points of British Racing after 1963?
### Context:
CREATE TABLE table_name_90 (points INTEGER, year INTEGER) [/INST]
### Response:
SELECT MIN(points) FROM table_name_90 WHERE year > 1963 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis was used when over 6 points were earned?
### Context:
CREATE TABLE table_name_47 (chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_47 WHERE points = 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 points of the drivers before 1964?
### Context:
CREATE TABLE table_name_73 (points INTEGER, year INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_73 WHERE year < 1964 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what time period were 578 built?
### Context:
CREATE TABLE table_name_93 (period VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT period FROM table_name_93 WHERE built = "578" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time period was the Cessna 208 built?
### Context:
CREATE TABLE table_name_2 (period VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT period FROM table_name_2 WHERE model = "cessna 208" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time period were 354 built?
### Context:
CREATE TABLE table_name_13 (period VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT period FROM table_name_13 WHERE built = "354" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 silver metals are possessed by countries with 2 gold medals?
### Context:
CREATE TABLE table_name_97 (silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_97 WHERE gold = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total sum of silver metals for all countries with more than 2 Bronze medals?
### Context:
CREATE TABLE table_name_76 (silver INTEGER, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_76 WHERE total > 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 lowest number of bronze medals for a country with less than 1 gold and 0 silver?
### Context:
CREATE TABLE table_name_70 (bronze INTEGER, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_70 WHERE gold = 1 AND silver < 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 was the score of the game for April 16?
### Context:
CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_62 WHERE date = "april 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 year was the No. 7 charts?
### Context:
CREATE TABLE table_name_32 (year INTEGER, charts VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_32 WHERE charts = "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:
Name the date for game site of riverfront stadium
### Context:
CREATE TABLE table_name_31 (date VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE game_site = "riverfront stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record with attendance of 73,996
### Context:
CREATE TABLE table_name_67 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_67 WHERE attendance = "73,996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game site with result of w 20-14
### Context:
CREATE TABLE table_name_88 (game_site VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_88 WHERE result = "w 20-14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the result with week of 16
### Context:
CREATE TABLE table_name_72 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_72 WHERE week = "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:
Name the record with result of w 13-11
### Context:
CREATE TABLE table_name_51 (record VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_51 WHERE result = "w 13-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:
Name the result for opponent of chicago bears
### Context:
CREATE TABLE table_name_14 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_14 WHERE opponent = "chicago bears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The length of 30 minutes aired on what date?
### Context:
CREATE TABLE table_name_54 (airdate VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT airdate FROM table_name_54 WHERE length = "30 minutes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the length of 60 minutes air?
### Context:
CREATE TABLE table_name_46 (airdate VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT airdate FROM table_name_46 WHERE length = "60 minutes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Division II of Portsmouth, what is the Division IV?
### Context:
CREATE TABLE table_name_35 (division_iV VARCHAR, division_iII VARCHAR, portsmouth VARCHAR) [/INST]
### Response:
SELECT division_iV FROM table_name_35 WHERE division_iII = portsmouth </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Division III has Bishop Brady in Division V and Hanover in Division IV?
### Context:
CREATE TABLE table_name_97 (division_iII VARCHAR, division_v VARCHAR, division_iV VARCHAR, hanover VARCHAR) [/INST]
### Response:
SELECT division_iII FROM table_name_97 WHERE division_v = "bishop brady" AND division_iV = hanover </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of points of entrants with a reynard 92d chassis?
### Context:
CREATE TABLE table_name_88 (points INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_88 WHERE chassis = "reynard 92d" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.