text
stringlengths 380
1.33k
|
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Oriol Servia's average Grid on races with more than 43 laps?
### Context:
CREATE TABLE table_name_10 (grid INTEGER, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_10 WHERE laps > 43 AND driver = "oriol servia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were there in the race that netted the winner 19 points?
### Context:
CREATE TABLE table_name_96 (laps VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_96 WHERE points = 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:
In what Season is Necaxa an Opponent?
### Context:
CREATE TABLE table_name_96 (season VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_96 WHERE opponent = "necaxa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season is Victoria the Opponent?
### Context:
CREATE TABLE table_name_97 (season VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_97 WHERE opponent = "victoria" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 authority when the decile is 6 for pongaroa school
### Context:
CREATE TABLE table_name_32 (authority VARCHAR, decile VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT authority FROM table_name_32 WHERE decile = 6 AND name = "pongaroa school" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years for dannevirke south school
### Context:
CREATE TABLE table_name_48 (years VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_48 WHERE name = "dannevirke south school" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 decile for state authority and area of eketahuna with roll more than 44
### Context:
CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT MIN(decile) FROM table_name_78 WHERE authority = "state" AND area = "eketahuna" AND roll > 44 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the name with area of eketahuna
### Context:
CREATE TABLE table_name_16 (name VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_16 WHERE area = "eketahuna" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what was completed on 12 april 1934
### Context:
CREATE TABLE table_name_28 (completed VARCHAR, launched VARCHAR) [/INST]
### Response:
SELECT completed FROM table_name_28 WHERE launched = "12 april 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 launched for 13 september 1934 completion
### Context:
CREATE TABLE table_name_91 (launched VARCHAR, completed VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_91 WHERE completed = "13 september 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ship launched 29 may 1934
### Context:
CREATE TABLE table_name_22 (ship VARCHAR, launched VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_22 WHERE launched = "29 may 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laid down for launched being 16 february 1934
### Context:
CREATE TABLE table_name_39 (laid_down VARCHAR, launched VARCHAR) [/INST]
### Response:
SELECT laid_down FROM table_name_39 WHERE launched = "16 february 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pennant number for completion of 30 october 1934 and launched 29 march 1934
### Context:
CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR) [/INST]
### Response:
SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laid down for completed of 22 october 1934
### Context:
CREATE TABLE table_name_67 (laid_down VARCHAR, completed VARCHAR) [/INST]
### Response:
SELECT laid_down FROM table_name_67 WHERE completed = "22 october 1934" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 votes of the candidate ranked 5th and riding in victoria?
### Context:
CREATE TABLE table_name_94 (votes INTEGER, rank VARCHAR, riding VARCHAR) [/INST]
### Response:
SELECT MIN(votes) FROM table_name_94 WHERE rank = "5th" AND riding = "victoria" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which home captian has aus by 295 runs as the result?
### Context:
CREATE TABLE table_name_21 (home_captain VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT home_captain FROM table_name_21 WHERE result = "aus by 295 runs" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result has adelaide oval as the venue?
### Context:
CREATE TABLE table_name_11 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_11 WHERE venue = "adelaide oval" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Born in 1982, this guard has what listed as a height?
### Context:
CREATE TABLE table_name_44 (height VARCHAR, position VARCHAR, year_born VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_44 WHERE position = "guard" AND year_born = 1982 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown
### Context:
CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR) [/INST]
### Response:
SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = "graeme brown" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Intermediate Sprints Classification Red Jersey that has a Green Jersey of Murilo Antonio Fischer, and Jose Joaquin Rojas Gil?
### Context:
CREATE TABLE table_name_34 (intermediate_sprints_classification_red_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, points_classification_navy_blue_jersey VARCHAR) [/INST]
### Response:
SELECT intermediate_sprints_classification_red_jersey FROM table_name_34 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND points_classification_navy_blue_jersey = "jose joaquin rojas gil" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 General Classification Yellow Jersey that has a Murilo Antonio Fischer, and Lampre-Fondital?
### Context:
CREATE TABLE table_name_74 (general_classification_yellow_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) [/INST]
### Response:
SELECT general_classification_yellow_jersey FROM table_name_74 WHERE mountains_classification_green_jersey = "murilo antonio fischer" AND team_classification = "lampre-fondital" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner?
### Context:
CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) [/INST]
### Response:
SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on April 7?
### Context:
CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_75 WHERE date = "april 7" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won the Northumberland Senior Benevolent Bowl, when the Northumberland Minor Cup was won by Whitley Bay 'a'?
### Context:
CREATE TABLE table_name_25 (northumberland_senior_benevolent_bowl VARCHAR, northumberland_minor_cup VARCHAR) [/INST]
### Response:
SELECT northumberland_senior_benevolent_bowl FROM table_name_25 WHERE northumberland_minor_cup = "whitley bay '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 was the film nomination in the Netherlands?
### Context:
CREATE TABLE table_name_6 (film_title_used_in_nomination VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_6 WHERE country = "netherlands" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed Turks Fruit?
### Context:
CREATE TABLE table_name_6 (director VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_6 WHERE original_title = "turks fruit" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What director is from Poland?
### Context:
CREATE TABLE table_name_65 (director VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_65 WHERE country = "poland" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the Romanian film?
### Context:
CREATE TABLE table_name_60 (director VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_60 WHERE language = "romanian" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What placement gets more than $400?
### Context:
CREATE TABLE table_name_18 (place VARCHAR, money___$__ INTEGER) [/INST]
### Response:
SELECT place FROM table_name_18 WHERE money___$__ > 400 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 payout of toney penna with a +2 par?
### Context:
CREATE TABLE table_name_85 (money___ INTEGER, to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(money___) AS $__ FROM table_name_85 WHERE to_par = "+2" AND player = "toney penna" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance number of the game on April 16?
### Context:
CREATE TABLE table_name_91 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_91 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 was the average pick of northwestern state college under round 3?
### Context:
CREATE TABLE table_name_81 (pick INTEGER, round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_81 WHERE round < 3 AND college = "northwestern state" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Rutgers college holds what position?
### Context:
CREATE TABLE table_name_32 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_32 WHERE college = "rutgers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round smaller than 10, was the center les studdard picked in?
### Context:
CREATE TABLE table_name_97 (pick INTEGER, round VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_97 WHERE position = "center" AND name = "les studdard" AND round < 10 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which college had rounds smaller than 2?
### Context:
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER) [/INST]
### Response:
SELECT college FROM table_name_80 WHERE round < 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 record was reached with a score of 7 - 2?
### Context:
CREATE TABLE table_name_8 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_8 WHERE score = "7 - 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 name of the club with a rank of 5?
### Context:
CREATE TABLE table_name_78 (club VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_78 WHERE rank = "5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank that shows 276 games?
### Context:
CREATE TABLE table_name_25 (rank VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_25 WHERE games = "276" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank that shows 426 games?
### Context:
CREATE TABLE table_name_64 (rank VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_64 WHERE games = "426" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Roger Merrett?
### Context:
CREATE TABLE table_name_39 (games VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_39 WHERE player = "roger merrett" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Engine had a Finish of 27?
### Context:
CREATE TABLE table_name_98 (engine VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_98 WHERE finish = "27" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Engine had a chassis of March 85c?
### Context:
CREATE TABLE table_name_72 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_72 WHERE chassis = "march 85c" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Engine has a Finish of 21?
### Context:
CREATE TABLE table_name_68 (engine VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_68 WHERE finish = "21" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what platform does Mindark publish?
### Context:
CREATE TABLE table_name_84 (platform VARCHAR, publisher VARCHAR) [/INST]
### Response:
SELECT platform FROM table_name_84 WHERE publisher = "mindark" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Avatar Reality release a game?
### Context:
CREATE TABLE table_name_14 (year VARCHAR, developer VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_14 WHERE developer = "avatar reality" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What publisher created Crysis Warhead?
### Context:
CREATE TABLE table_name_35 (publisher VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT publisher FROM table_name_35 WHERE title = "crysis warhead" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what platform does Mindark publish?
### Context:
CREATE TABLE table_name_37 (platform VARCHAR, publisher VARCHAR) [/INST]
### Response:
SELECT platform FROM table_name_37 WHERE publisher = "mindark" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What publisher does Paleo Entertainment develop for?
### Context:
CREATE TABLE table_name_14 (publisher VARCHAR, developer VARCHAR) [/INST]
### Response:
SELECT publisher FROM table_name_14 WHERE developer = "paleo entertainment" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 developer for Vigilance?
### Context:
CREATE TABLE table_name_71 (developer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT developer FROM table_name_71 WHERE title = "vigilance" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's home town is Swift Current, AB?
### Context:
CREATE TABLE table_name_17 (player VARCHAR, home_town VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_17 WHERE home_town = "swift current, ab" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position does number 23 play?
### Context:
CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_13 WHERE number = "23" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which number plays the skaters position?
### Context:
CREATE TABLE table_name_22 (number VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_22 WHERE position = "skaters" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does number 26 weigh?
### Context:
CREATE TABLE table_name_31 (weight VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT weight FROM table_name_31 WHERE number = "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:
Which family has a Name of humpback whale?
### Context:
CREATE TABLE table_name_40 (family VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT family FROM table_name_40 WHERE name = "humpback whale" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which name has a Red List larger than 0, and a Species/Authority of balaenoptera acutorostrata lacépède, 1804?
### Context:
CREATE TABLE table_name_20 (name VARCHAR, red_list VARCHAR, species_authority VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_20 WHERE red_list > 0 AND species_authority = "balaenoptera acutorostrata lacépède, 1804" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Species/Authority has a Name of true's beaked whale?
### Context:
CREATE TABLE table_name_44 (species_authority VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT species_authority FROM table_name_44 WHERE name = "true's beaked whale" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine has 2 points?
### Context:
CREATE TABLE table_name_41 (engine_s_ VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT engine_s_ FROM table_name_41 WHERE points = "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 tyres are associated with a year after 1974 and 5 points?
### Context:
CREATE TABLE table_name_37 (tyres VARCHAR, year VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_37 WHERE year > 1974 AND points = "5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the engine(s) on the car before 1978 with ensign n177 chassis?
### Context:
CREATE TABLE table_name_71 (engine_s_ VARCHAR, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine_s_ FROM table_name_71 WHERE chassis = "ensign n177" AND year < 1978 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tyres have 1 point and an ensign n177 chassis?
### Context:
CREATE TABLE table_name_15 (tyres VARCHAR, points VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_15 WHERE points = "1" AND chassis = "ensign n177" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts?
### Context:
CREATE TABLE table_name_12 (entrant VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_12 WHERE year < 1987 AND engine = "bmw straight-4 (t/c)" AND pts > 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 did Ku Hyo-Jin rank?
### Context:
CREATE TABLE table_name_46 (rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_46 WHERE name = "ku hyo-jin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of the person who swam in Lane 7 with a time of 2:25.86?
### Context:
CREATE TABLE table_name_55 (rank INTEGER, time VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_55 WHERE time = "2:25.86" AND lane < 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:
Which Laid down has a Ship of fearless?
### Context:
CREATE TABLE table_name_57 (laid_down VARCHAR, ship VARCHAR) [/INST]
### Response:
SELECT laid_down FROM table_name_57 WHERE ship = "fearless" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ship has a Pennant number of h.69?
### Context:
CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR) [/INST]
### Response:
SELECT ship FROM table_name_43 WHERE pennant_number = "h.69" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Launched has Commissioned 6 june 1935?
### Context:
CREATE TABLE table_name_36 (launched VARCHAR, commissioned VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_36 WHERE commissioned = "6 june 1935" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What launch has a Ship of fearless?
### Context:
CREATE TABLE table_name_64 (launched VARCHAR, ship VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_64 WHERE ship = "fearless" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 commission was launched 28 june 1934, and has a Pennant number of h.78?
### Context:
CREATE TABLE table_name_40 (commissioned VARCHAR, launched VARCHAR, pennant_number VARCHAR) [/INST]
### Response:
SELECT commissioned FROM table_name_40 WHERE launched = "28 june 1934" AND pennant_number = "h.78" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year has a Round of 17?
### Context:
CREATE TABLE table_name_2 (year VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_2 WHERE round = "17" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a Club of essendon, and a Score of 13.4.82?
### Context:
CREATE TABLE table_name_73 (opponent VARCHAR, club VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_73 WHERE club = "essendon" AND score = "13.4.82" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a Score of 15.4.94?
### Context:
CREATE TABLE table_name_89 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_89 WHERE score = "15.4.94" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent has a Round of 12?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_34 WHERE round = "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:
Which Quarter has a Round of 17?
### Context:
CREATE TABLE table_name_7 (quarter VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT quarter FROM table_name_7 WHERE round = "17" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was moray firth built?
### Context:
CREATE TABLE table_name_32 (whenbuilt VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT whenbuilt FROM table_name_32 WHERE name = "moray firth" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 withdrawn for charles dickens
### Context:
CREATE TABLE table_name_93 (withdrawn VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT withdrawn FROM table_name_93 WHERE name = "charles dickens" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent has a Date of july 27?
### Context:
CREATE TABLE table_name_24 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_24 WHERE date = "july 27" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Venue held the World Race Walking Cup tourney before 2008?
### Context:
CREATE TABLE table_name_69 (venue VARCHAR, year VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_69 WHERE year < 2008 AND tournament = "world race walking cup" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournement was held in Helsinki, Finland in 2005?
### Context:
CREATE TABLE table_name_8 (event VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_8 WHERE venue = "helsinki, finland" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Venue held the Olympic games in 2012?
### Context:
CREATE TABLE table_name_12 (venue VARCHAR, tournament VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_12 WHERE tournament = "olympic games" AND year = 2012 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 website for the yamagata international documentary film festival?
### Context:
CREATE TABLE table_name_27 (website VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Johnnie Parsons finish when his qualifying time was 135.328?
### Context:
CREATE TABLE table_name_51 (rank VARCHAR, qual VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_51 WHERE qual = "135.328" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Johnnie Parsons rank when he completed over 200 laps?
### Context:
CREATE TABLE table_name_67 (rank VARCHAR, laps INTEGER) [/INST]
### Response:
SELECT rank FROM table_name_67 WHERE laps > 200 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Podiums when the value for Wins is 2, and when the Season is 2008?
### Context:
CREATE TABLE table_name_62 (podiums VARCHAR, wins VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT podiums FROM table_name_62 WHERE wins = "2" AND season = 2008 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value for Position, when the Series is the Macau Grand Prix, and when the Season is before 2007?
### Context:
CREATE TABLE table_name_98 (position VARCHAR, series VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_98 WHERE series = "macau grand prix" AND season < 2007 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value for Wins when the Position is 7th?
### Context:
CREATE TABLE table_name_67 (wins VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_67 WHERE position = "7th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Series, when the Season is after 2008, when the value for Podiums is 3, and when the Position is 8th?
### Context:
CREATE TABLE table_name_28 (series VARCHAR, position VARCHAR, season VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_28 WHERE season > 2008 AND podiums = "3" AND position = "8th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Podiums, when the Season is after 2008, and when the Series is GP2 Asia Series?
### Context:
CREATE TABLE table_name_65 (podiums VARCHAR, season VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT podiums FROM table_name_65 WHERE season > 2008 AND series = "gp2 asia series" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wins, when the Series is GP2 Series, and when the Season is before 2009?
### Context:
CREATE TABLE table_name_41 (wins VARCHAR, series VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_41 WHERE series = "gp2 series" AND season < 2009 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Indians when the record was 15-15?
### Context:
CREATE TABLE table_name_68 (loss VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_68 WHERE opponent = "indians" AND record = "15-15" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total attendance for games when the record was 23-23?
### Context:
CREATE TABLE table_name_61 (attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_61 WHERE record = "23-23" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13?
### Context:
CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the drawn result with a league position of 15th and a lost result that is more than 17?
### Context:
CREATE TABLE table_name_36 (drawn INTEGER, league_pos VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_36 WHERE league_pos = "15th" AND lost > 17 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the competition of 2010 of dnp
### Context:
CREATE TABLE table_name_6 (competition VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_6 WHERE 2010 = "dnp" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for columbus visitor
### Context:
CREATE TABLE table_name_73 (score VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_73 WHERE visitor = "columbus" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance with visitor of edmonton
### Context:
CREATE TABLE table_name_98 (attendance INTEGER, visitor VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_98 WHERE visitor = "edmonton" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbered lane of Sue Rolph with a rank under 5?
### Context:
CREATE TABLE table_name_17 (lane INTEGER, name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(lane) FROM table_name_17 WHERE name = "sue rolph" AND rank < 5 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lane number of the swimmer with a time of 55.69?
### Context:
CREATE TABLE table_name_21 (lane VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT lane FROM table_name_21 WHERE time = 55.69 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league cups with 4 championships?
### Context:
CREATE TABLE table_name_9 (league_cup INTEGER, championship VARCHAR) [/INST]
### Response:
SELECT MIN(league_cup) FROM table_name_9 WHERE championship = 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 highest value for FA cups, that has a total of 0 4, with less than 4 championships?
### Context:
CREATE TABLE table_name_43 (fa_cup INTEGER, total VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT MAX(fa_cup) FROM table_name_43 WHERE total = "0 4" AND championship < 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:
How many FA cups were there without any league cups, but a total of 0 2?
### Context:
CREATE TABLE table_name_3 (fa_cup INTEGER, total VARCHAR, league_cup VARCHAR) [/INST]
### Response:
SELECT MIN(fa_cup) FROM table_name_3 WHERE total = "0 2" AND league_cup < 0 </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.