text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Representative has a Presentation of Credentials on september 8, 2005?
### Context:
CREATE TABLE table_name_93 (representative VARCHAR, presentation_of_credentials VARCHAR) [/INST]
### Response:
SELECT representative FROM table_name_93 WHERE presentation_of_credentials = "september 8, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Termination of Mission has a Presentation of Credentials on October 29, 1981
### Context:
CREATE TABLE table_name_5 (termination_of_mission VARCHAR, presentation_of_credentials VARCHAR) [/INST]
### Response:
SELECT termination_of_mission FROM table_name_5 WHERE presentation_of_credentials = "october 29, 1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total for danny allsopp?
### Context:
CREATE TABLE table_name_98 (total VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_98 WHERE name = "danny allsopp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the area of operation that had drilling during the year 1999?
### Context:
CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR) [/INST]
### Response:
SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the client Agiba-agip work in?
### Context:
CREATE TABLE table_name_5 (country VARCHAR, client VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_5 WHERE client = "agiba-agip" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years was soc a client?
### Context:
CREATE TABLE table_name_88 (years_of_operation VARCHAR, client VARCHAR) [/INST]
### Response:
SELECT years_of_operation FROM table_name_88 WHERE client = "soc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years was El Mabrouk the area of operation?
### Context:
CREATE TABLE table_name_42 (years_of_operation VARCHAR, area_of_operation VARCHAR) [/INST]
### Response:
SELECT years_of_operation FROM table_name_42 WHERE area_of_operation = "el mabrouk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What services were in the area of operation Wadi Borjuj?
### Context:
CREATE TABLE table_name_2 (services VARCHAR, area_of_operation VARCHAR) [/INST]
### Response:
SELECT services FROM table_name_2 WHERE area_of_operation = "wadi borjuj" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points did the Cosworth v8 engine get in 1972?
### Context:
CREATE TABLE table_name_42 (points VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_42 WHERE year = 1972 AND engine = "cosworth v8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gold Coast has a Melbourne of yes, a Perth of yes, an Auckland of no, and a Sydney of no?
### Context:
CREATE TABLE table_name_36 (gold_coast VARCHAR, sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, perth VARCHAR) [/INST]
### Response:
SELECT gold_coast FROM table_name_36 WHERE melbourne = "yes" AND perth = "yes" AND auckland = "no" AND sydney = "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 Adelaide has an Auckland of no and a Melbourne of no?
### Context:
CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR) [/INST]
### Response:
SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "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 Sydney has a Gold Coast of yes, an Adelaide of no, and an Auckland of yes?
### Context:
CREATE TABLE table_name_13 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR) [/INST]
### Response:
SELECT sydney FROM table_name_13 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "yes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Sydney has a Perth of no, an Adelaide of yes, and a Gold Coast of no?
### Context:
CREATE TABLE table_name_84 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, adelaide VARCHAR) [/INST]
### Response:
SELECT sydney FROM table_name_84 WHERE perth = "no" AND adelaide = "yes" AND gold_coast = "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 Adelaide has a Sydney of yes, a Perth of no, a Melbourne of yes, and an Auckland of no?
### Context:
CREATE TABLE table_name_30 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR, sydney VARCHAR, perth VARCHAR) [/INST]
### Response:
SELECT adelaide FROM table_name_30 WHERE sydney = "yes" AND perth = "no" AND melbourne = "yes" AND auckland = "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 Melbourne has a Perth of yes, and an Auckland of yes?
### Context:
CREATE TABLE table_name_35 (melbourne VARCHAR, perth VARCHAR, auckland VARCHAR) [/INST]
### Response:
SELECT melbourne FROM table_name_35 WHERE perth = "yes" AND auckland = "yes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 analog type for wxmi?
### Context:
CREATE TABLE table_name_9 (analog VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT analog FROM table_name_9 WHERE callsign = "wxmi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 callsign for independent affiliation?
### Context:
CREATE TABLE table_name_69 (callsign VARCHAR, affiliation VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_69 WHERE affiliation = "independent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 analog type for cw on digital 26?
### Context:
CREATE TABLE table_name_45 (analog VARCHAR, affiliation VARCHAR, digital VARCHAR) [/INST]
### Response:
SELECT analog FROM table_name_45 WHERE affiliation = "cw" AND digital = "26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the callsign for analog 19?
### Context:
CREATE TABLE table_name_42 (callsign VARCHAR, analog VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_42 WHERE analog = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the winner of the European Poker Tour Grand Final?
### Context:
CREATE TABLE table_name_11 (winner VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_11 WHERE event = "european poker tour grand final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the event that had a prize of zł 1,226,711?
### Context:
CREATE TABLE table_name_22 (event VARCHAR, prize VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_22 WHERE prize = "zł 1,226,711" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner of the prize zł 1,226,711?
### Context:
CREATE TABLE table_name_39 (winner VARCHAR, prize VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_39 WHERE prize = "zł 1,226,711" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of Goal For which has a Ties larger 0?
### Context:
CREATE TABLE table_name_98 (goals_for INTEGER, ties INTEGER) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_98 WHERE ties > 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:
Name the sum of goals conceded when lost is more than 7 and points less than 26
### Context:
CREATE TABLE table_name_60 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(goals_conceded) FROM table_name_60 WHERE lost > 7 AND points < 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most place for goals scored more than 28 and played less than 18
### Context:
CREATE TABLE table_name_23 (place INTEGER, goals_scored VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MAX(place) FROM table_name_23 WHERE goals_scored > 28 AND played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D46 when it has D 44 of ← majority
### Context:
CREATE TABLE table_name_50 (d_46 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT d_46 FROM table_name_50 WHERE d_44 = "← majority" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 45 which has D 44 of d 53
### Context:
CREATE TABLE table_name_40 (d_45 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT d_45 FROM table_name_40 WHERE d_44 = "d 53" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 43 when it has D 45 of d 25
### Context:
CREATE TABLE table_name_45 (d_43 VARCHAR, d_45 VARCHAR) [/INST]
### Response:
SELECT d_43 FROM table_name_45 WHERE d_45 = "d 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 43 when it has D 41 of d 56
### Context:
CREATE TABLE table_name_35 (d_43 VARCHAR, d_41 VARCHAR) [/INST]
### Response:
SELECT d_43 FROM table_name_35 WHERE d_41 = "d 56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 46 which has D 42 of r 14
### Context:
CREATE TABLE table_name_36 (d_46 VARCHAR, d_42 VARCHAR) [/INST]
### Response:
SELECT d_46 FROM table_name_36 WHERE d_42 = "r 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:
Which nominating festival did Russia enter?
### Context:
CREATE TABLE table_name_12 (nominating_festival VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_12 WHERE country = "russia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominating festival did Olga Baillif enter?
### Context:
CREATE TABLE table_name_72 (nominating_festival VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_72 WHERE director_s_ = "olga baillif" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominating festival did Bosnia and Herzegovina enter?
### Context:
CREATE TABLE table_name_62 (nominating_festival VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_62 WHERE country = "bosnia and herzegovina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director made Mi-temps?
### Context:
CREATE TABLE table_name_13 (director_s_ VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_13 WHERE film = "mi-temps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominating festival did United Kingdom enter?
### Context:
CREATE TABLE table_name_72 (nominating_festival VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_72 WHERE country = "united kingdom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years was Audi Sport Team Joest in 3rd position?
### Context:
CREATE TABLE table_name_8 (year VARCHAR, team VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_8 WHERE team = "audi sport team joest" AND pos = "3rd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the co-drivers with more than 377 laps in 1st position?
### Context:
CREATE TABLE table_name_62 (co_drivers VARCHAR, laps VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT co_drivers FROM table_name_62 WHERE laps > 377 AND pos = "1st" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals were scored when they had over 28 points and played over 18 games?
### Context:
CREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What place is associated with under 28 points, under 11 games lost, and under 18 games played?
### Context:
CREATE TABLE table_name_71 (place INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT SUM(place) FROM table_name_71 WHERE points < 28 AND lost < 11 AND played < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points are there when they have under 27 goals scored, conceded 24 goals, and lost less than 6 times?
### Context:
CREATE TABLE table_name_40 (points INTEGER, lost VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_40 WHERE goals_scored < 27 AND goals_conceded = 24 AND lost < 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 year did Bryant Heating enter?
### Context:
CREATE TABLE table_name_48 (year INTEGER, entrant VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_48 WHERE entrant = "bryant heating" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Russia has films in which category?
### Context:
CREATE TABLE table_name_45 (category VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_45 WHERE country = "russia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Prix UIP Vilo Do Conde festival nominated which film?
### Context:
CREATE TABLE table_name_7 (film VARCHAR, nominating_festival VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_7 WHERE nominating_festival = "prix uip vilo do conde" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country made Le Portefeuille?
### Context:
CREATE TABLE table_name_98 (country VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_98 WHERE film = "le portefeuille" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nominating festival nominated Iao Lethem's film?
### Context:
CREATE TABLE table_name_80 (nominating_festival VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_80 WHERE director_s_ = "iao lethem" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Julio Robledo represents which country?
### Context:
CREATE TABLE table_name_55 (country VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_55 WHERE director_s_ = "julio robledo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
(A) Torzija was nominated in which category?
### Context:
CREATE TABLE table_name_60 (category VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_60 WHERE film = "(a) torzija" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losses altogether were had by teams that won 12 times, had 40-4 points, and more than 57 goals?
### Context:
CREATE TABLE table_name_11 (losses INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(losses) FROM table_name_11 WHERE wins = 12 AND points = "40-4" AND goals_for > 57 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average number of played games from Rayo Vallecano with less than 12 wins?
### Context:
CREATE TABLE table_name_81 (played INTEGER, club VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_81 WHERE club = "rayo vallecano" AND wins < 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has canidae as family and canis rufus audubon & bachman, 1851 as species/authority?
### Context:
CREATE TABLE table_name_24 (name VARCHAR, family VARCHAR, species_authority VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_24 WHERE family = "canidae" AND species_authority = "canis rufus audubon & bachman, 1851" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest league for play-offs more than 0 and total of 25
### Context:
CREATE TABLE table_name_88 (league INTEGER, play_offs VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(league) FROM table_name_88 WHERE play_offs > 0 AND total = 25 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the earliest year with games played fewer than 2?
### Context:
CREATE TABLE table_name_96 (first_game INTEGER, played INTEGER) [/INST]
### Response:
SELECT MIN(first_game) FROM table_name_96 WHERE played < 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 number of games played in the season before 2005?
### Context:
CREATE TABLE table_name_18 (played INTEGER, first_game INTEGER) [/INST]
### Response:
SELECT SUM(played) FROM table_name_18 WHERE first_game < 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least selection for ron barnett
### Context:
CREATE TABLE table_name_39 (selection INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(selection) FROM table_name_39 WHERE player = "ron barnett" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player that went to notre dame
### Context:
CREATE TABLE table_name_88 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_88 WHERE college = "notre dame" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par that has bill collins as the player?
### Context:
CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_72 WHERE player = "bill collins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has 76-70-68-73=287 as a score?
### Context:
CREATE TABLE table_name_86 (money___ INTEGER, score VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS $__ FROM table_name_86 WHERE score = 76 - 70 - 68 - 73 = 287 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 commissioned for Vietnam?
### Context:
CREATE TABLE table_name_29 (commissioned VARCHAR, operator VARCHAR) [/INST]
### Response:
SELECT commissioned FROM table_name_29 WHERE operator = "vietnam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 commissioned with a 636.3 project, and ordered status?
### Context:
CREATE TABLE table_name_24 (commissioned VARCHAR, project VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT commissioned FROM table_name_24 WHERE project = "636.3" AND status = "ordered" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the date that had a Loss of Shirley (0-1)?
### Context:
CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE loss = "shirley (0-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:
Where was the game on Thursday, April 29, and they played the Chicago Cubs?
### Context:
CREATE TABLE table_name_84 (site VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_84 WHERE opponent = "chicago cubs" AND date = "thursday, april 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:
Who were they playing when Bird (1-4) had a loss?
### Context:
CREATE TABLE table_name_42 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_42 WHERE loss = "bird (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:
What was the score of the game when there was a loss of Kern (0-2)?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_44 WHERE loss = "kern (0-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 camera has the highest Mpix with an aspect ratio of 2:1, a height less than 1536, and a width smaller than 2048?
### Context:
CREATE TABLE table_name_51 (mpix INTEGER, width VARCHAR, aspect_ratio VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT MAX(mpix) FROM table_name_51 WHERE aspect_ratio = "2:1" AND height < 1536 AND width < 2048 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 max fps of a camera with mpix larger than 8.4 and frame size of 4k 16:9?
### Context:
CREATE TABLE table_name_5 (max_fps VARCHAR, mpix VARCHAR, frame_size VARCHAR) [/INST]
### Response:
SELECT COUNT(max_fps) FROM table_name_5 WHERE mpix > 8.4 AND frame_size = "4k 16: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 frame size corresponds the selection with a max fps of 120, a width of 2048, and height of 1024?
### Context:
CREATE TABLE table_name_74 (frame_size VARCHAR, height VARCHAR, max_fps VARCHAR, width VARCHAR) [/INST]
### Response:
SELECT frame_size FROM table_name_74 WHERE max_fps = 120 AND width = 2048 AND height = 1024 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall record of the Ravens?
### Context:
CREATE TABLE table_name_16 (overall_record VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT overall_record FROM table_name_16 WHERE team = "ravens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division record of Sussex Central?
### Context:
CREATE TABLE table_name_41 (division_record VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT division_record FROM table_name_41 WHERE school = "sussex central" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Engine has Points of 3?
### Context:
CREATE TABLE table_name_30 (engine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_30 WHERE 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:
What are the highest points with a Chassis of gordini t16, and a Year smaller than 1954?
### Context:
CREATE TABLE table_name_41 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_41 WHERE chassis = "gordini t16" AND year < 1954 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest grid that Paul Tracy had when he had over 4 points?
### Context:
CREATE TABLE table_name_67 (grid INTEGER, name VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_67 WHERE name = "paul tracy" AND points > 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 Date, when the Winner is Aaron Gustavson?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_79 WHERE winner = "aaron gustavson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, when the City is Warsaw?
### Context:
CREATE TABLE table_name_39 (date VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_39 WHERE city = "warsaw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Prize, when the Winner is Aaron Gustavson?
### Context:
CREATE TABLE table_name_90 (prize VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT prize FROM table_name_90 WHERE winner = "aaron gustavson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the Winner, when the City is Berlin?
### Context:
CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_19 WHERE city = "berlin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the party called name?
### Context:
CREATE TABLE table_name_45 (party VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_45 WHERE "name" = "name" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Left Office of cabinet secretary for culture and external affairs named?
### Context:
CREATE TABLE table_name_16 (name VARCHAR, left_office VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_16 WHERE left_office = "cabinet secretary for culture and external affairs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What left office does the First Minister of henry mcleish belong to?
### Context:
CREATE TABLE table_name_49 (left_office VARCHAR, first_minister VARCHAR) [/INST]
### Response:
SELECT left_office FROM table_name_49 WHERE first_minister = "henry mcleish" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum total of the region after 1976 when Mareeba had population was more than 18,212?
### Context:
CREATE TABLE table_name_1 (population__region_total_ INTEGER, year VARCHAR, population__mareeba_ VARCHAR) [/INST]
### Response:
SELECT SUM(population__region_total_) FROM table_name_1 WHERE year > 1976 AND population__mareeba_ > 18 OFFSET 212 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most games for standing of 5th, lebel and goals against larger than 220 with lost more than 52
### Context:
CREATE TABLE table_name_2 (games INTEGER, lost VARCHAR, standing VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT MAX(games) FROM table_name_2 WHERE standing = "5th, lebel" AND goals_against > 220 AND lost > 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least tied with games more than 70 and goals for less than 310 with points of 98
### Context:
CREATE TABLE table_name_94 (tied INTEGER, points VARCHAR, games VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT MIN(tied) FROM table_name_94 WHERE games > 70 AND goals_for < 310 AND points = 98 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player had a place of T4?
### Context:
CREATE TABLE table_name_62 (player VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_62 WHERE place = "t4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 less than 0 points?
### Context:
CREATE TABLE table_name_54 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(year) FROM table_name_54 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 entrant has a year earlier than 1960 and a veritas straight-6 engine?
### Context:
CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-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 Year with a Veritas rs chassis and more than 0 points?
### Context:
CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" 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 is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?
### Context:
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a Emeryson 1006 chassis with more than 0 points?
### Context:
CREATE TABLE table_name_37 (year INTEGER, chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_37 WHERE chassis = "emeryson 1006" 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 score of the second leg with an agg of 4-6?
### Context:
CREATE TABLE table_name_50 (agg VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_50 WHERE agg = "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:
What is the second team that has first team of Africa sports?
### Context:
CREATE TABLE table_name_25 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_25 WHERE team_1 = "africa sports" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team one that has tp englebert for team 2?
### Context:
CREATE TABLE table_name_32 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_32 WHERE team_2 = "tp englebert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 far rabat as the team 1?
### Context:
CREATE TABLE table_name_64 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_64 WHERE team_1 = "far rabat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time/Retired of +47.376 what is the lap sum?
### Context:
CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_67 WHERE time_retired = "+47.376" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
### Context:
CREATE TABLE table_name_85 (laps INTEGER, rider VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_85 WHERE rider = "marco melandri" AND grid < 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:
with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
### Context:
CREATE TABLE table_name_15 (grid INTEGER, rider VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who came in 2nd place when Ding Junhui won in 2010?
### Context:
CREATE TABLE table_name_53 (runner_up VARCHAR, year VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_53 WHERE year > 2010 AND winner = "ding junhui" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ethnic group is 65,104 in 1931?
### Context:
CREATE TABLE table_name_43 (malay_ethnic_group VARCHAR) [/INST]
### Response:
SELECT malay_ethnic_group FROM table_name_43 WHERE 1931 = "65,104" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Vegas Verdicts week, what was the result?
### Context:
CREATE TABLE table_name_21 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_21 WHERE week = "vegas verdicts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week had a theme of Heroes?
### Context:
CREATE TABLE table_name_47 (week VARCHAR, theme VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_47 WHERE theme = "heroes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 theme for Vegas Verdicts week with a result of Advanced?
### Context:
CREATE TABLE table_name_30 (theme VARCHAR, result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT theme FROM table_name_30 WHERE result = "advanced" AND week = "vegas verdicts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Placement when the Votes are fewer than 208, and when the Candidate is Jordan Turner?
### Context:
CREATE TABLE table_name_58 (placement VARCHAR, votes VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT placement FROM table_name_58 WHERE votes < 208 AND candidate = "jordan turner" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.