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 leading scorer of the game with an attendance of 14,096?
### Context:
CREATE TABLE table_name_97 (leading_scorer VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_97 WHERE attendance = "14,096" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading scorer of the game with the Celtics as the visiting team?
### Context:
CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_59 WHERE visitor = "celtics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game with an attendance of 19,183?
### Context:
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE attendance = "19,183" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time with track number less than 4 for you're my everything
### Context:
CREATE TABLE table_name_58 (time VARCHAR, track_number VARCHAR, song_title VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_58 WHERE track_number < 4 AND song_title = "you're my everything" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 orchestra for ted varnick
### Context:
CREATE TABLE table_name_41 (orchestra VARCHAR, songwriter_s_ VARCHAR) [/INST]
### Response:
SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = "ted varnick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 songwriter for track number 12
### Context:
CREATE TABLE table_name_60 (songwriter_s_ VARCHAR, track_number VARCHAR) [/INST]
### Response:
SELECT songwriter_s_ FROM table_name_60 WHERE track_number = 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:
Player of dan federman, and a Pick larger than 114 involves which highest round?
### Context:
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_59 WHERE player = "dan federman" AND pick > 114 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
College of villanova has what round?
### Context:
CREATE TABLE table_name_65 (round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_65 WHERE college = "villanova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
College of boston college has what pick?
### Context:
CREATE TABLE table_name_61 (pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_61 WHERE college = "boston college" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finalists were there when the years won was 2008 and the won % was greater than 33?
### Context:
CREATE TABLE table_name_47 (finalists INTEGER, years_won VARCHAR, _percentage_won VARCHAR) [/INST]
### Response:
SELECT SUM(finalists) FROM table_name_47 WHERE years_won = "2008" AND _percentage_won > 33 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game site for the game that had a packers record of 2-2?
### Context:
CREATE TABLE table_name_37 (game_site VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_37 WHERE record = "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:
What is the final score of the game that was at raymond james stadium?
### Context:
CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_name_42 WHERE game_site = "raymond james 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 is the match report for the game that was against Houston?
### Context:
CREATE TABLE table_name_12 (match_report VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT match_report FROM table_name_12 WHERE opponent = "houston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the game site for the game that had a packers record of 2-3?
### Context:
CREATE TABLE table_name_29 (game_site VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_29 WHERE record = "2-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Record of the game with a Score of 118–105?
### Context:
CREATE TABLE table_name_10 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_10 WHERE score = "118–105" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Record of the game with a Score of 107–108?
### Context:
CREATE TABLE table_name_85 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_85 WHERE score = "107–108" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Record during the game with a Score of 113–103?
### Context:
CREATE TABLE table_name_16 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_16 WHERE score = "113–103" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a percentage of possible points of 67.22%?
### Context:
CREATE TABLE table_name_92 (points INTEGER, percentage_of_possible_points VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_92 WHERE percentage_of_possible_points = "67.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:
Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%?
### Context:
CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT races FROM table_name_77 WHERE points > 123 AND driver = "fernando alonso" AND percentage_of_possible_points = "74.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:
How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?
### Context:
CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR) [/INST]
### Response:
SELECT SUM(season) FROM table_name_31 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "64.12%" AND points < 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:
Who remixed the version after 1999?
### Context:
CREATE TABLE table_name_97 (remixed_by VARCHAR, year INTEGER) [/INST]
### Response:
SELECT remixed_by FROM table_name_97 WHERE year > 1999 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who remixed the version with a length of 3:58?
### Context:
CREATE TABLE table_name_74 (remixed_by VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT remixed_by FROM table_name_74 WHERE length = "3:58" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 album is the royal g's club mix version, which is remixed by royal garden sound, from?
### Context:
CREATE TABLE table_name_20 (album VARCHAR, remixed_by VARCHAR, version VARCHAR) [/INST]
### Response:
SELECT album FROM table_name_20 WHERE remixed_by = "royal garden sound" AND version = "royal g's club mix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in attendance in a week less than 4 with a record of 2–1?
### Context:
CREATE TABLE table_name_81 (attendance VARCHAR, week VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_81 WHERE week < 4 AND record = "2–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many were in attendance at Griffith Stadium with Philadelphia Eagles as an opponent?
### Context:
CREATE TABLE table_name_78 (attendance VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_78 WHERE game_site = "griffith stadium" AND opponent = "philadelphia eagles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week was the attendance 25,000?
### Context:
CREATE TABLE table_name_92 (week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_92 WHERE attendance = "25,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game site had a result at l 21–13?
### Context:
CREATE TABLE table_name_27 (game_site VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_27 WHERE result = "l 21–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 score has 34-19-6 as the record?
### Context:
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_18 WHERE record = "34-19-6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average February that has 56 as the game?
### Context:
CREATE TABLE table_name_77 (february INTEGER, game VARCHAR) [/INST]
### Response:
SELECT AVG(february) FROM table_name_77 WHERE game = 56 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of team impul with the date of 8 july
### Context:
CREATE TABLE table_name_64 (round INTEGER, team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_64 WHERE team = "team impul" AND date = "8 july" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pole position of Round 9
### Context:
CREATE TABLE table_name_4 (pole_position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_4 WHERE round = 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the lowest round pole position of satoshi motoyama
### Context:
CREATE TABLE table_name_22 (round INTEGER, pole_position VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_22 WHERE pole_position = "satoshi motoyama" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team with the away team of rushden & diamonds?
### Context:
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_73 WHERE away_team = "rushden & diamonds" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?
### Context:
CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lost has a Drawn larger than 1, and Games smaller than 7?
### Context:
CREATE TABLE table_name_8 (lost INTEGER, drawn VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_8 WHERE drawn > 1 AND games < 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 Drawn has Games smaller than 7?
### Context:
CREATE TABLE table_name_41 (drawn INTEGER, games INTEGER) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_41 WHERE games < 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:
How many Games have a Drawn smaller than 1, and a Lost larger than 4?
### Context:
CREATE TABLE table_name_5 (games VARCHAR, drawn VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(games) FROM table_name_5 WHERE drawn < 1 AND lost > 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 winning driver in taunus
### Context:
CREATE TABLE table_name_19 (winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_19 WHERE circuit = "taunus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has a Home of Montreal Canadiens and a Date of April 22?
### Context:
CREATE TABLE table_name_49 (record VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_49 WHERE home = "montreal canadiens" AND date = "april 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 Score has a Home of Montreal Canadiens and a Date of April 22?
### Context:
CREATE TABLE table_name_74 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_74 WHERE home = "montreal canadiens" AND date = "april 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 lowest number of bronze medals received by a nation with fewer than 0 gold medals?
### Context:
CREATE TABLE table_name_68 (bronze INTEGER, gold INTEGER) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_68 WHERE gold < 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 number of silver medals for a nation with fewer than 1 total medals?
### Context:
CREATE TABLE table_name_1 (silver INTEGER, total INTEGER) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_1 WHERE total < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Rank has a Total larger than 17, and a Silver smaller than 13?
### Context:
CREATE TABLE table_name_94 (rank VARCHAR, total VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_94 WHERE total > 17 AND silver < 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 Total is the highest one that has a Gold of 1, and a Nation of czechoslovakia?
### Context:
CREATE TABLE table_name_29 (total INTEGER, gold VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_29 WHERE gold = 1 AND nation = "czechoslovakia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total has a Silver smaller than 0?
### Context:
CREATE TABLE table_name_38 (total VARCHAR, silver INTEGER) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_38 WHERE silver < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Total has a Rank of 4, and a Silver smaller than 4?
### Context:
CREATE TABLE table_name_36 (total INTEGER, rank VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_36 WHERE rank = "4" AND silver < 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 Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0?
### Context:
CREATE TABLE table_name_56 (silver INTEGER, bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_56 WHERE bronze < 1 AND gold > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHich Year has a Music director(s) of anu malik?
### Context:
CREATE TABLE table_name_5 (year INTEGER, music_director_s_ VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_5 WHERE music_director_s_ = "anu malik" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Film of baazigar?
### Context:
CREATE TABLE table_name_32 (year INTEGER, film VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_32 WHERE film = "baazigar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Streak of lost 1, and a Date of april 30?
### Context:
CREATE TABLE table_name_10 (opponent VARCHAR, streak VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_10 WHERE streak = "lost 1" AND date = "april 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of sequences for the name Alifoldz?
### Context:
CREATE TABLE table_name_72 (number_of_sequences_number_of_sequences VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT number_of_sequences_number_of_sequences AS :_ FROM table_name_72 WHERE name = "alifoldz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 alignment that predicts an alignment of the linuxbinary link?
### Context:
CREATE TABLE table_name_27 (_ VARCHAR, alignment_alignment VARCHAR, link VARCHAR) [/INST]
### Response:
SELECT alignment_alignment AS :_predicts_an_alignment_, _ FROM table_name_27 WHERE link = "linuxbinary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Playoffs have a Year smaller than 2012, and an Open Cup of did not enter?
### Context:
CREATE TABLE table_name_83 (playoffs VARCHAR, year VARCHAR, open_cup VARCHAR) [/INST]
### Response:
SELECT playoffs FROM table_name_83 WHERE year < 2012 AND open_cup = "did not enter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the lowest one that has a Regular Season of 5th, atlantic, and a Division larger than 4?
### Context:
CREATE TABLE table_name_12 (year INTEGER, regular_season VARCHAR, division VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_12 WHERE regular_season = "5th, atlantic" AND division > 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 Year has Playoffs which did not qualify?
### Context:
CREATE TABLE table_name_94 (year INTEGER, playoffs VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?
### Context:
CREATE TABLE table_name_39 (gold VARCHAR, silver VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_39 WHERE silver = "south korea" AND year = 1986 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lee Phillips the director?
### Context:
CREATE TABLE table_name_35 (year VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_35 WHERE director = "lee phillips" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 movie that Paul Schneider directed?
### Context:
CREATE TABLE table_name_97 (title VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_97 WHERE director = "paul schneider" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 box office was $961,147 in what year?
### Context:
CREATE TABLE table_name_18 (year VARCHAR, box_office VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_18 WHERE box_office = "$961,147" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Three Men and a Little Lady from Touchstone Pictures was from what year?
### Context:
CREATE TABLE table_name_12 (year VARCHAR, distributor_s_ VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_12 WHERE distributor_s_ = "touchstone pictures" AND title = "three men and a little lady" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 movie from 1997 distributed from HBO Pictures?
### Context:
CREATE TABLE table_name_99 (title VARCHAR, year VARCHAR, distributor_s_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_99 WHERE year = "1997" AND distributor_s_ = "hbo pictures" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What movie earned $1,659,542 at the box office?
### Context:
CREATE TABLE table_name_29 (title VARCHAR, box_office VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_29 WHERE box_office = "$1,659,542" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?
### Context:
CREATE TABLE table_name_29 (accession_number VARCHAR, protein_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR) [/INST]
### Response:
SELECT accession_number FROM table_name_29 WHERE protein_name = "ccdc165" AND divergence_from_human_lineage__mya_ < 296 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2?
### Context:
CREATE TABLE table_name_51 (sequence_identity_to_human_protein VARCHAR, protein_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR, sequence_length__aa_ VARCHAR) [/INST]
### Response:
SELECT sequence_identity_to_human_protein FROM table_name_51 WHERE divergence_from_human_lineage__mya_ > 8.8 AND sequence_length__aa_ > 1587 AND protein_name = "soga2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record of the team who played the Cleveland Browns?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_56 WHERE opponent = "cleveland browns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometown of the player who plays pr?
### Context:
CREATE TABLE table_name_17 (hometown VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_17 WHERE position = "pr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's overall number is more than 158 when Travian Robertson is the name?
### Context:
CREATE TABLE table_name_87 (college VARCHAR, overall VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_87 WHERE overall > 158 AND name = "travian robertson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which round's name is Jonathan Massaquoi?
### Context:
CREATE TABLE table_name_40 (round VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_40 WHERE name = "jonathan massaquoi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean round number for center position when the pick number is less than 23?
### Context:
CREATE TABLE table_name_39 (round INTEGER, position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_39 WHERE position = "center" AND pick__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 Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?
### Context:
CREATE TABLE table_name_85 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(altitude__mslm_) FROM table_name_85 WHERE density__inhabitants_km_2__ < 1233 AND rank = "9th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?
### Context:
CREATE TABLE table_name_89 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, common_of VARCHAR) [/INST]
### Response:
SELECT SUM(altitude__mslm_) FROM table_name_89 WHERE density__inhabitants_km_2__ < 1467.5 AND common_of = "moncalieri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Area (km 2) has a Common of collegno, and a Population smaller than 50137?
### Context:
CREATE TABLE table_name_60 (area__km_2__ VARCHAR, common_of VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?
### Context:
CREATE TABLE table_name_41 (population VARCHAR, altitude__mslm_ VARCHAR, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT COUNT(population) FROM table_name_41 WHERE altitude__mslm_ > 302 AND area__km_2__ = 29.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 Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?
### Context:
CREATE TABLE table_name_19 (population INTEGER, altitude__mslm_ VARCHAR, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT MAX(population) FROM table_name_19 WHERE altitude__mslm_ < 229 AND area__km_2__ > 32.7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what builder launched 20 jun 1953?
### Context:
CREATE TABLE table_name_75 (builder VARCHAR, launched VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_75 WHERE launched = "20 jun 1953" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the commissioned date with laid down of 17 dec 1951?
### Context:
CREATE TABLE table_name_8 (commissioned VARCHAR, laid_down VARCHAR) [/INST]
### Response:
SELECT commissioned FROM table_name_8 WHERE laid_down = "17 dec 1951" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 matt brait?
### Context:
CREATE TABLE table_name_51 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_51 WHERE player = "matt brait" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in position center for round 2?
### Context:
CREATE TABLE table_name_88 (player VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_88 WHERE round = "2" AND position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position is Sweden in round 2?
### Context:
CREATE TABLE table_name_55 (position VARCHAR, nationality VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_55 WHERE nationality = "sweden" AND 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 is the height of number 52?
### Context:
CREATE TABLE table_name_80 (height VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_80 WHERE number = 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is Tony Dixon?
### Context:
CREATE TABLE table_name_22 (number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_22 WHERE name = "tony dixon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Draw for the artist(s), whose language is Swedish, and scored less than 10 points?
### Context:
CREATE TABLE table_name_99 (draw INTEGER, language VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(draw) FROM table_name_99 WHERE language = "swedish" AND points < 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 Economic Class has a Barangay of imelda bliss village?
### Context:
CREATE TABLE table_name_77 (economic_class VARCHAR, barangay VARCHAR) [/INST]
### Response:
SELECT economic_class FROM table_name_77 WHERE barangay = "imelda bliss village" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1997 has grand slams for the 1999?
### Context:
CREATE TABLE table_name_23 (Id VARCHAR) [/INST]
### Response:
SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1992 has atp masters series for the 1995?
### Context:
CREATE TABLE table_name_50 (Id VARCHAR) [/INST]
### Response:
SELECT 1992 FROM table_name_50 WHERE 1995 = "atp masters 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 1995 has 1r as the 1999, and a 1998 of 4r?
### Context:
CREATE TABLE table_name_48 (Id VARCHAR) [/INST]
### Response:
SELECT 1995 FROM table_name_48 WHERE 1999 = "1r" AND 1998 = "4r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1998 has 2r as a 1993, and 1r as a 1990?
### Context:
CREATE TABLE table_name_46 (Id VARCHAR) [/INST]
### Response:
SELECT 1998 FROM table_name_46 WHERE 1993 = "2r" AND 1990 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 1997, has qf as a 1994, and 1r as a 1999?
### Context:
CREATE TABLE table_name_6 (Id VARCHAR) [/INST]
### Response:
SELECT 1997 FROM table_name_6 WHERE 1994 = "qf" AND 1999 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 1993 has 2r as a 1994, and 1r as a 1995?
### Context:
CREATE TABLE table_name_18 (Id VARCHAR) [/INST]
### Response:
SELECT 1993 FROM table_name_18 WHERE 1994 = "2r" AND 1995 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Driver has a Sponsor of pdvsa?
### Context:
CREATE TABLE table_name_26 (driver_s_ VARCHAR, sponsor_s_ VARCHAR) [/INST]
### Response:
SELECT driver_s_ FROM table_name_26 WHERE sponsor_s_ = "pdvsa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the colours of the team with benedikt guðmundsson as head coach?
### Context:
CREATE TABLE table_name_26 (colours VARCHAR, head_coach VARCHAR) [/INST]
### Response:
SELECT colours FROM table_name_26 WHERE head_coach = "benedikt guðmundsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city and region of the team in the dalhús arena?
### Context:
CREATE TABLE table_name_35 (city VARCHAR, _region VARCHAR, arena VARCHAR) [/INST]
### Response:
SELECT city, _region FROM table_name_35 WHERE arena = "dalhús" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in the toyota höllin arena?
### Context:
CREATE TABLE table_name_42 (team VARCHAR, arena VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_42 WHERE arena = "toyota höllin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in the dhl-höllin arena?
### Context:
CREATE TABLE table_name_5 (team VARCHAR, arena VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_5 WHERE arena = "dhl-höllin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of points for the team with 49 tries against and 14 lost?
### Context:
CREATE TABLE table_name_19 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_19 WHERE tries_against = "49" AND lost = "14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the losing bonus for the team that has 33 tries against and 5 lost?
### Context:
CREATE TABLE table_name_35 (losing_bonus VARCHAR, tries_against VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_35 WHERE tries_against = "33" AND lost = "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 tries against for the team that has a losing bonus?
### Context:
CREATE TABLE table_name_48 (tries_against VARCHAR, losing_bonus VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_48 WHERE losing_bonus = "losing bonus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tries for the team that has 22 plays with 33 tries against and 60 points?
### Context:
CREATE TABLE table_name_22 (tries_for VARCHAR, points VARCHAR, played VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT tries_for FROM table_name_22 WHERE played = "22" AND tries_against = "33" AND points = "60" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losing bonus of the team with 22 pays and 428 points against?
### Context:
CREATE TABLE table_name_9 (losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_9 WHERE played = "22" AND points_against = "428" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spain with 215 goals
### Context:
CREATE TABLE table_name_31 (years VARCHAR, nationality VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_31 WHERE nationality = "spain" AND goals = 215 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.