text
stringlengths 380
1.33k
|
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of the TV series with a character of Sheyda/Ashraf?
### Context:
CREATE TABLE table_name_54 (title VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_54 WHERE character = "sheyda/ashraf" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year of the TV series that has a character of Leiloon Bala Barareh?
### Context:
CREATE TABLE table_name_88 (year VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_88 WHERE character = "leiloon bala barareh" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the TV series in 2012?
### Context:
CREATE TABLE table_name_70 (title VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_70 WHERE 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:
Who published Star Citizen in 2014?
### Context:
CREATE TABLE table_name_17 (publisher VARCHAR, year VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT publisher FROM table_name_17 WHERE year = "2014" AND title = "star citizen" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title was developed by Battlecry Studios?
### Context:
CREATE TABLE table_name_96 (title VARCHAR, developer VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_96 WHERE developer = "battlecry studios" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were at the match on July 13/
### Context:
CREATE TABLE table_name_66 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_66 WHERE date = "july 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:
Who was the opponent on July 27?
### Context:
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_44 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:
For Ynysybwl RFC, what was the losing bonus for 416 points?
### Context:
CREATE TABLE table_name_48 (losing_bonus VARCHAR, points_for VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_48 WHERE points_for = "416" AND club = "ynysybwl rfc" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
### Context:
CREATE TABLE table_name_94 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_94 WHERE played = "22" AND points_against = "453" AND losing_bonus = "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:
For the club that had tries of 50 and drawn of 0, what were the points?
### Context:
CREATE TABLE table_name_51 (points_against VARCHAR, drawn VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The club that had 546 points against, what was the losing bonus?
### Context:
CREATE TABLE table_name_71 (losing_bonus VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_71 WHERE points_against = "546" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lost of Ynysybwl RFC?
### Context:
CREATE TABLE table_name_47 (lost VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_47 WHERE club = "ynysybwl rfc" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Club have?
### Context:
CREATE TABLE table_name_41 (points VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_41 WHERE "club" = "club" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When is Part 6, when Part 4 is on March 2, 2008?
### Context:
CREATE TABLE table_name_89 (part_6 VARCHAR, part_4 VARCHAR) [/INST]
### Response:
SELECT part_6 FROM table_name_89 WHERE part_4 = "march 2, 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 Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?
### Context:
CREATE TABLE table_name_98 (title VARCHAR, episode__number VARCHAR, part_6 VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_98 WHERE episode__number > 2 AND part_6 = "january 6, 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:
When is Part 2, when Part 4 is on December 9, 2007?
### Context:
CREATE TABLE table_name_44 (part_2 VARCHAR, part_4 VARCHAR) [/INST]
### Response:
SELECT part_2 FROM table_name_44 WHERE part_4 = "december 9, 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:
When is Part 1, when Part 4 is on February 10, 2008?
### Context:
CREATE TABLE table_name_88 (part_1 VARCHAR, part_4 VARCHAR) [/INST]
### Response:
SELECT part_1 FROM table_name_88 WHERE part_4 = "february 10, 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:
When is Part 2, when Part 5 is on January 24, 2008?
### Context:
CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR) [/INST]
### Response:
SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 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:
Who was the finals opponent on the hard surface tournament?
### Context:
CREATE TABLE table_name_11 (opponent_in_the_final VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_11 WHERE surface = "hard" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which surface was played during Curitiba tournament?
### Context:
CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_46 WHERE tournament = "curitiba" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for UFC 109?
### Context:
CREATE TABLE table_name_92 (round INTEGER, event VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_92 WHERE event = "ufc 109" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round was the opponent Manny Gamburyan?
### Context:
CREATE TABLE table_name_92 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_92 WHERE opponent = "manny gamburyan" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week of the game played December 6, 1964?
### Context:
CREATE TABLE table_name_75 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_75 WHERE date = "december 6, 1964" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the fewest losses that had an against score of 2190 and more than 0 draws?
### Context:
CREATE TABLE table_name_27 (losses INTEGER, against VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_27 WHERE against = 2190 AND draws > 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 fewest number of draws for teams with more than 0 byes?
### Context:
CREATE TABLE table_name_75 (draws INTEGER, byes INTEGER) [/INST]
### Response:
SELECT MIN(draws) FROM table_name_75 WHERE byes > 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 sum of losses for Geelong Amateur, with 0 byes?
### Context:
CREATE TABLE table_name_95 (losses INTEGER, bellarine_fl VARCHAR, byes VARCHAR) [/INST]
### Response:
SELECT SUM(losses) FROM table_name_95 WHERE bellarine_fl = "geelong amateur" AND byes < 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 sum of the number of wins for teams with more than 0 draws?
### Context:
CREATE TABLE table_name_51 (wins INTEGER, draws INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_51 WHERE draws > 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 Stadium that hosts the team Jacksonville Jaguars?
### Context:
CREATE TABLE table_name_1 (stadium VARCHAR, host_team VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_1 WHERE host_team = "jacksonville jaguars" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What stadium was used on November 13?
### Context:
CREATE TABLE table_name_45 (stadium VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_45 WHERE date = "november 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 host team with the stadium Lincoln Financial Field?
### Context:
CREATE TABLE table_name_70 (host_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT host_team FROM table_name_70 WHERE stadium = "lincoln financial field" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team visited the Cleveland Browns Stadium?
### Context:
CREATE TABLE table_name_22 (visiting_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_22 WHERE stadium = "cleveland browns stadium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What stadium did the Denver Broncos visit?
### Context:
CREATE TABLE table_name_60 (stadium VARCHAR, visiting_team VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_60 WHERE visiting_team = "denver broncos" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team visited the Jacksonville Municipal Stadium?
### Context:
CREATE TABLE table_name_10 (visiting_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_10 WHERE stadium = "jacksonville municipal stadium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people boarded and de-boarded the Amtrak in Linthicum?
### Context:
CREATE TABLE table_name_68 (boardings_and_deboardings VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT COUNT(boardings_and_deboardings) FROM table_name_68 WHERE city = "linthicum" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Europe listing of 00 0 0 (0) also has what listed as the total?
### Context:
CREATE TABLE table_name_86 (total VARCHAR, europe VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_86 WHERE europe = "00 0 0 (0)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The league of 400 (21) has what years listed?
### Context:
CREATE TABLE table_name_87 (years VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_87 WHERE league = "400 (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:
With a FA Cup of 0 44 0 (0), the other [C] is listed as what?
### Context:
CREATE TABLE table_name_46 (other_ VARCHAR, c_ VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT other_[c_] FROM table_name_46 WHERE fa_cup = "0 44 0 (0)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Europe listing of 117 0 (8) belongs to what league?
### Context:
CREATE TABLE table_name_5 (league VARCHAR, europe VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_5 WHERE europe = "117 0 (8)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The other [C] of 0 12 0 (0) belongs to what FA Cup?
### Context:
CREATE TABLE table_name_36 (fa_cup VARCHAR, other_ VARCHAR, c_ VARCHAR) [/INST]
### Response:
SELECT fa_cup FROM table_name_36 WHERE other_[c_] = "0 12 0 (0)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest VIII Edition Gold with a Silver of 4?
### Context:
CREATE TABLE table_name_33 (gold INTEGER, silver VARCHAR, edition VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_33 WHERE silver = 4 AND edition = "viii" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?
### Context:
CREATE TABLE table_name_22 (bronze INTEGER, gold VARCHAR, silver VARCHAR, edition VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 10 AND edition = "i" AND gold > 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's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?
### Context:
CREATE TABLE table_name_1 (total VARCHAR, bronze VARCHAR, host_city VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_1 WHERE host_city = "mexico city" AND gold < 4 AND bronze < 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Host City has more than 6 Silver and a Total of 22?
### Context:
CREATE TABLE table_name_74 (host_city VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT host_city FROM table_name_74 WHERE silver > 6 AND total = 22 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the time for tracks before 19 on 8/26/69?
### Context:
CREATE TABLE table_name_75 (time VARCHAR, release_date VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_75 WHERE release_date = "8/26/69" AND track < 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:
Which venue has a note of AM?
### Context:
CREATE TABLE table_name_32 (venue VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_32 WHERE notes = "am" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time associated with August 16, 2008?
### Context:
CREATE TABLE table_name_12 (time VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_12 WHERE date = "august 16, 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:
Which event was held in Beijing?
### Context:
CREATE TABLE table_name_44 (event VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_44 WHERE venue = "beijing" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a venue of Rome on July 30, 2009, what are the notes?
### Context:
CREATE TABLE table_name_59 (notes VARCHAR, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_59 WHERE venue = "rome" AND date = "july 30, 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:
Name the score for october 9
### Context:
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_35 WHERE date = "october 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:
Name the loss for series 2-2
### Context:
CREATE TABLE table_name_90 (loss VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_90 WHERE series = "2-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:
Name the total number of attendance for october 8
### Context:
CREATE TABLE table_name_52 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_52 WHERE date = "october 8" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which engine did Élie Bayol use when they earned 0 points?
### Context:
CREATE TABLE table_name_74 (engine VARCHAR, points VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_74 WHERE points = 0 AND entrant = "élie bayol" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season had the highest attendance/g than 3,289?
### Context:
CREATE TABLE table_name_98 (season INTEGER, attendance_g INTEGER) [/INST]
### Response:
SELECT MAX(season) FROM table_name_98 WHERE attendance_g < 3 OFFSET 289 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had 13 points?
### Context:
CREATE TABLE table_name_23 (year VARCHAR, pts VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_23 WHERE pts = 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:
Which chassis has a year later than 1964, a Ford engine, and 13 points?
### Context:
CREATE TABLE table_name_95 (chassis VARCHAR, pts VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_95 WHERE year > 1964 AND engine = "ford" AND pts = 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:
Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?
### Context:
CREATE TABLE table_name_63 (entrant VARCHAR, chassis VARCHAR, pts VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_63 WHERE pts < 12 AND engine = "climax" AND chassis = "lotus 24" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?
### Context:
CREATE TABLE table_name_41 (pts INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT MAX(pts) FROM table_name_41 WHERE engine = "ford" AND entrant = "brooke bond oxo team surtees" AND year = 1972 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Ford engine and 13 points?
### Context:
CREATE TABLE table_name_16 (year VARCHAR, engine VARCHAR, pts VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_16 WHERE engine = "ford" AND pts = 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 ERP for the Rockhampton region?
### Context:
CREATE TABLE table_name_27 (erp__analog__digital_ VARCHAR, region_served VARCHAR) [/INST]
### Response:
SELECT erp__analog__digital_ FROM table_name_27 WHERE region_served = "rockhampton" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What channels first aired on 31 December 1990 in the Southern Downs region?
### Context:
CREATE TABLE table_name_91 (channels___analog___digital__ VARCHAR, first_air_date VARCHAR, region_served VARCHAR) [/INST]
### Response:
SELECT channels___analog___digital__ FROM table_name_91 WHERE first_air_date = "31 december 1990" AND region_served = "southern downs" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 transmitter location for city of Maryborough?
### Context:
CREATE TABLE table_name_95 (transmitter_location VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT transmitter_location FROM table_name_95 WHERE city = "maryborough" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERP for the Mount Goonaneman transmitter?
### Context:
CREATE TABLE table_name_6 (erp__analog__digital_ VARCHAR, transmitter_location VARCHAR) [/INST]
### Response:
SELECT erp__analog__digital_ FROM table_name_6 WHERE transmitter_location = "mount goonaneman" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has 11 males?
### Context:
CREATE TABLE table_name_41 (number VARCHAR, males VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_41 WHERE males = "11" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?
### Context:
CREATE TABLE table_name_19 (time VARCHAR, name VARCHAR, lane VARCHAR, heat VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_19 WHERE lane < 6 AND heat < 4 AND name = "joanne malar" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest heat with a time of 4:57.90, and a Rank larger than 22?
### Context:
CREATE TABLE table_name_98 (heat INTEGER, time VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(heat) FROM table_name_98 WHERE time = "4:57.90" AND rank > 22 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time for Adi Bichman?
### Context:
CREATE TABLE table_name_28 (time VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_28 WHERE name = "adi bichman" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at games against the New York Mets with a record of 18-18?
### Context:
CREATE TABLE table_name_76 (attendance VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_76 WHERE opponent = "new york mets" AND record = "18-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 is the total attendance at games with a score of 4-2?
### Context:
CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_20 WHERE score = "4-2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did the New York Giants host a game?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, host_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_42 WHERE host_team = "new york giants" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 host team for the game on December 27?
### Context:
CREATE TABLE table_name_55 (host_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT host_team FROM table_name_55 WHERE date = "december 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 was the final score of the game at Texas Stadium?
### Context:
CREATE TABLE table_name_26 (final_score VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_name_26 WHERE stadium = "texas stadium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
### Context:
CREATE TABLE table_name_67 (visiting_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_67 WHERE stadium = "hubert h. humphrey metrodome" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the New England Patriots play as the visiting team?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, visiting_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE visiting_team = "new england patriots" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At which stadium did the Los Angeles Raiders play as the visiting team?
### Context:
CREATE TABLE table_name_85 (stadium VARCHAR, visiting_team VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_85 WHERE visiting_team = "los angeles raiders" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1.92 m tall and a current club member of Montepaschi Siena
### Context:
CREATE TABLE table_name_43 (player VARCHAR, height VARCHAR, current_club VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_43 WHERE height = 1.92 AND current_club = "montepaschi siena" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date has a Tournament of la quinta?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE tournament = "la quinta" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date has a Surface of carpet (i)?
### Context:
CREATE TABLE table_name_44 (date VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_44 WHERE surface = "carpet (i)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament has a Date of april 20, 1987?
### Context:
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_21 WHERE date = "april 20, 1987" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?
### Context:
CREATE TABLE table_name_51 (opponent VARCHAR, tournament VARCHAR, surface VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_51 WHERE surface = "hardcourt" AND outcome = "runner-up" AND tournament = "honolulu" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Tournament has a Score of 6–4, 6–4?
### Context:
CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_75 WHERE score = "6–4, 6–4" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which score has a Surface of hardcourt, and a Date of september 30, 1984?
### Context:
CREATE TABLE table_name_39 (score VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_39 WHERE surface = "hardcourt" AND date = "september 30, 1984" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?
### Context:
CREATE TABLE table_name_99 (group INTEGER, decay_constant__s_−1__ VARCHAR, fraction VARCHAR, half_life__s_ VARCHAR) [/INST]
### Response:
SELECT MIN(group) FROM table_name_99 WHERE fraction < 0.000748 AND half_life__s_ = 55.72 AND decay_constant__s_−1__ > 0.012400000000000001 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game with a loss of Wakefield (5-2)?
### Context:
CREATE TABLE table_name_26 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_26 WHERE loss = "wakefield (5-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 first year of the European Championships competition?
### Context:
CREATE TABLE table_name_52 (year INTEGER, competition VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_52 WHERE competition = "european championships" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position has a venue of Helsinki, Finland?
### Context:
CREATE TABLE table_name_40 (position VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_40 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 is the date that a hell ship sunk in the East China Sea?
### Context:
CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation had a battlecruiser with an estimate of 513?
### Context:
CREATE TABLE table_name_39 (nat VARCHAR, ship_type VARCHAR, estimate VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_39 WHERE ship_type = "battlecruiser" AND estimate = "513" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that a ship sank in the South Atlantic?
### Context:
CREATE TABLE table_name_59 (date VARCHAR, where_sunk VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_59 WHERE where_sunk = "south atlantic" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What type of ship was the Shinano?
### Context:
CREATE TABLE table_name_77 (ship_type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT ship_type FROM table_name_77 WHERE name = "shinano" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nation had a ship named Roma?
### Context:
CREATE TABLE table_name_24 (nat VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_24 WHERE name = "roma" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score of the Blue Jays' game versus the Indians when their record was 21-19?
### Context:
CREATE TABLE table_name_6 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_6 WHERE opponent = "indians" AND record = "21-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:
During what years did the tallest building, located at 211 Union Street, have less than 31 floors?
### Context:
CREATE TABLE table_name_95 (years_as_tallest VARCHAR, floors VARCHAR, street_address VARCHAR) [/INST]
### Response:
SELECT years_as_tallest FROM table_name_95 WHERE floors < 31 AND street_address = "211 union street" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of floors at 170 Fourth Avenue North?
### Context:
CREATE TABLE table_name_76 (floors INTEGER, street_address VARCHAR) [/INST]
### Response:
SELECT AVG(floors) FROM table_name_76 WHERE street_address = "170 fourth avenue north" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 address of the Life & Casualty Tower?
### Context:
CREATE TABLE table_name_94 (street_address VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT street_address FROM table_name_94 WHERE name = "life & casualty tower" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed as the Tie no for Home team of Gillingham?
### Context:
CREATE TABLE table_name_43 (tie_no VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_43 WHERE home_team = "gillingham" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no listed for the Away team of Barnet?
### Context:
CREATE TABLE table_name_13 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_13 WHERE away_team = "barnet" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for the Attendance that has a Tie no of 5?
### Context:
CREATE TABLE table_name_97 (attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_97 WHERE tie_no = "5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Away team has a Tie no of 4?
### Context:
CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_38 WHERE tie_no = "4" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Home Team has an Attendance of 1,859?
### Context:
CREATE TABLE table_name_14 (home_team VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_14 WHERE attendance = "1,859" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed as the Away team for the Home team of the Bristol Rovers?
### Context:
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_8 WHERE home_team = "bristol rovers" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.