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 nationality of Stromile Swift?
### Context:
CREATE TABLE table_name_48 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_48 WHERE player = "stromile swift" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did the player from Providence play for Memphis?
### Context:
CREATE TABLE table_name_62 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_for_grizzlies FROM table_name_62 WHERE school_club_team = "providence" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has a record of 7-1?
### Context:
CREATE TABLE table_name_99 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_99 WHERE record = "7-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:
What game number was the first game played at the Summit this season?
### Context:
CREATE TABLE table_name_25 (game INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_25 WHERE location = "the summit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the game played against the New York Knicks?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_11 WHERE opponent = "new york knicks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
### Context:
CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Finish, when Year(s) Won is "1962 , 1967"?
### Context:
CREATE TABLE table_name_58 (finish VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_58 WHERE year_s__won = "1962 , 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player, when To Par is greater than 6, and when Year(s) Won is "1962 , 1967"?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE to_par > 6 AND year_s__won = "1962 , 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Finish, when To Par is less than 14, and when Year(s) Won is "1952 , 1963"?
### Context:
CREATE TABLE table_name_85 (finish VARCHAR, to_par VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_85 WHERE to_par < 14 AND year_s__won = "1952 , 1963" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest To Par, when Year(s) Won is "1962 , 1967"?
### Context:
CREATE TABLE table_name_66 (to_par INTEGER, year_s__won VARCHAR) [/INST]
### Response:
SELECT MAX(to_par) FROM table_name_66 WHERE year_s__won = "1962 , 1967" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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, when To Par is less than 14, when Finish is T12, and when Player is "Julius Boros"?
### Context:
CREATE TABLE table_name_13 (total VARCHAR, player VARCHAR, to_par VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT total FROM table_name_13 WHERE to_par < 14 AND finish = "t12" AND player = "julius boros" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of artists on Scarface?
### Context:
CREATE TABLE table_name_67 (number INTEGER, artist VARCHAR) [/INST]
### Response:
SELECT MAX(number) FROM table_name_67 WHERE artist = "scarface" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for Black Milk?
### Context:
CREATE TABLE table_name_18 (number INTEGER, artist VARCHAR) [/INST]
### Response:
SELECT AVG(number) FROM table_name_18 WHERE artist = "black milk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average for number 2?
### Context:
CREATE TABLE table_name_12 (average_score INTEGER, number VARCHAR) [/INST]
### Response:
SELECT MIN(average_score) FROM table_name_12 WHERE number = 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 highest score for Black Milk?
### Context:
CREATE TABLE table_name_29 (average_score INTEGER, artist VARCHAR) [/INST]
### Response:
SELECT MAX(average_score) FROM table_name_29 WHERE artist = "black milk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface was played on when Piet Norval was a partner?
### Context:
CREATE TABLE table_name_24 (surface VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_24 WHERE partner = "piet norval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface played on when they were a runner-up in 2007?
### Context:
CREATE TABLE table_name_5 (surface VARCHAR, outcome VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_5 WHERE outcome = "runner-up" AND year = 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Goals, when Assists is greater than 28, and when Player is Steve Walker?
### Context:
CREATE TABLE table_name_89 (goals VARCHAR, assists VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_89 WHERE assists > 28 AND player = "steve walker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Games, when Player is Robert Hock, and when Goals is less than 24?
### Context:
CREATE TABLE table_name_19 (games INTEGER, player VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_19 WHERE player = "robert hock" AND goals < 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:
What is the average Assists, when Club is Iserlohn Roosters,when Points is 71, and when Goals is greater than 44?
### Context:
CREATE TABLE table_name_18 (assists INTEGER, goals VARCHAR, club VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(assists) FROM table_name_18 WHERE club = "iserlohn roosters" AND points = 71 AND goals > 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:
What is the average Goals, when Club is Iserlohn Roosters, and when Games is less than 56?
### Context:
CREATE TABLE table_name_45 (goals INTEGER, club VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_45 WHERE club = "iserlohn roosters" AND games < 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 location of the game with a 115-105 score?
### Context:
CREATE TABLE table_name_35 (location VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_35 WHERE score = "115-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 110-106 score?
### Context:
CREATE TABLE table_name_89 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_89 WHERE score = "110-106" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game 48?
### Context:
CREATE TABLE table_name_40 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_40 WHERE game = 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 110-106 score?
### Context:
CREATE TABLE table_name_1 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_1 WHERE score = "110-106" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score at the forum location?
### Context:
CREATE TABLE table_name_23 (score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_23 WHERE location = "the forum" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Method, when Location is "Tokyo , Japan", and when Event is "Rings: Millennium Combine 2"?
### Context:
CREATE TABLE table_name_38 (method VARCHAR, location VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_38 WHERE location = "tokyo , japan" AND event = "rings: millennium combine 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 Method, when Opponent is "Chalid Arrab"?
### Context:
CREATE TABLE table_name_4 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_4 WHERE opponent = "chalid arrab" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round, when Record is "19-25-5"?
### Context:
CREATE TABLE table_name_70 (round INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_70 WHERE record = "19-25-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 region has Stanford University as host?
### Context:
CREATE TABLE table_name_12 (region VARCHAR, host VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_12 WHERE host = "stanford university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state contains the University of Iowa in the mideast region?
### Context:
CREATE TABLE table_name_67 (state VARCHAR, region VARCHAR, host VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_67 WHERE region = "mideast" AND host = "university of iowa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state includes the city of Storrs?
### Context:
CREATE TABLE table_name_25 (state VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_25 WHERE city = "storrs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state includes the Harry A. Gampel Pavilion venue?
### Context:
CREATE TABLE table_name_10 (state VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_10 WHERE venue = "harry a. gampel pavilion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is in Georgia?
### Context:
CREATE TABLE table_name_55 (city VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_55 WHERE state = "georgia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of rounds that had Jason Missiaen?
### Context:
CREATE TABLE table_name_75 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_75 WHERE player = "jason missiaen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player is from Russia?
### Context:
CREATE TABLE table_name_8 (player VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_8 WHERE nationality = "russia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality is the pick from round 7?
### Context:
CREATE TABLE table_name_9 (nationality VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_9 WHERE round = 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 is the album when the year is later than 2008?
### Context:
CREATE TABLE table_name_77 (album VARCHAR, year INTEGER) [/INST]
### Response:
SELECT album FROM table_name_77 WHERE year > 2008 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Championship Game that has 4 Bids and a .600 Win %?
### Context:
CREATE TABLE table_name_40 (championship_game VARCHAR, _number_of_bids VARCHAR, win__percentage VARCHAR) [/INST]
### Response:
SELECT championship_game FROM table_name_40 WHERE _number_of_bids = 4 AND win__percentage = ".600" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 2 with cobreloa as team 1?
### Context:
CREATE TABLE table_name_2 (team_2 VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT team_2 FROM table_name_2 WHERE team_1 = "cobreloa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 picks had a round smaller than 6 and an overall bigger than 153?
### Context:
CREATE TABLE table_name_47 (pick INTEGER, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT SUM(pick) FROM table_name_47 WHERE round < 6 AND overall > 153 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on 31 January 2009 when the opponent was Airdrie United?
### Context:
CREATE TABLE table_name_33 (attendance INTEGER, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_33 WHERE opponent = "airdrie united" AND date = "31 january 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:
In what venue was the event held on 14 February 2009?
### Context:
CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_95 WHERE date = "14 february 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average attendance for all events held at Palmerston Park venue?
### Context:
CREATE TABLE table_name_24 (attendance INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_24 WHERE venue = "palmerston park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of t (µm), when Technology is u c-si?
### Context:
CREATE TABLE table_name_67 (t__µm_ VARCHAR, technology VARCHAR) [/INST]
### Response:
SELECT COUNT(t__µm_) FROM table_name_67 WHERE technology = "u c-si" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 V OC (V), when t (µm) is greater than 5, and when I SC (A) is 0.8?
### Context:
CREATE TABLE table_name_46 (v_oc__v_ VARCHAR, t__µm_ VARCHAR, i_sc__a_ VARCHAR) [/INST]
### Response:
SELECT v_oc__v_ FROM table_name_46 WHERE t__µm_ > 5 AND i_sc__a_ = "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:
What is the sum of t (µm), when Technology is MJ?
### Context:
CREATE TABLE table_name_26 (t__µm_ INTEGER, technology VARCHAR) [/INST]
### Response:
SELECT SUM(t__µm_) FROM table_name_26 WHERE technology = "mj" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 W/m², when η (%) is greater than 16.5, and when Technology is MJ?
### Context:
CREATE TABLE table_name_60 (w_m² VARCHAR, η___percentage_ VARCHAR, technology VARCHAR) [/INST]
### Response:
SELECT w_m² FROM table_name_60 WHERE η___percentage_ > 16.5 AND technology = "mj" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bridge is in Stanley?
### Context:
CREATE TABLE table_name_87 (type VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_87 WHERE location = "stanley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bridge is Colton's Crossing Bridge?
### Context:
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_46 WHERE name = "colton's crossing bridge" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bridge is a pratt pony through truss tyoe bridge?
### Context:
CREATE TABLE table_name_4 (name VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_4 WHERE type = "pratt pony through truss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bridge is in Cooperstown?
### Context:
CREATE TABLE table_name_8 (type VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_8 WHERE location = "cooperstown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bridge is in Mcville?
### Context:
CREATE TABLE table_name_69 (name VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_69 WHERE location = "mcville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tracking method supports MySQL databases and is named Open Web Analytics?
### Context:
CREATE TABLE table_name_62 (tracking_method VARCHAR, supported_databases VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT tracking_method FROM table_name_62 WHERE supported_databases = "mysql" AND name = "open web analytics" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tracking method has a latest stable release of 2.23-05?
### Context:
CREATE TABLE table_name_14 (tracking_method VARCHAR, latest_stable_release VARCHAR) [/INST]
### Response:
SELECT tracking_method FROM table_name_14 WHERE latest_stable_release = "2.23-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latest stable release date for Crawltrack?
### Context:
CREATE TABLE table_name_83 (latest_stable_release VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT latest_stable_release FROM table_name_83 WHERE name = "crawltrack" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tracking method has a latest stable release of 6.0?
### Context:
CREATE TABLE table_name_23 (tracking_method VARCHAR, latest_stable_release VARCHAR) [/INST]
### Response:
SELECT tracking_method FROM table_name_23 WHERE latest_stable_release = "6.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 least passengers from the Dallas/Fort Worth International (DFW) airport?
### Context:
CREATE TABLE table_name_75 (passengers INTEGER, airport VARCHAR) [/INST]
### Response:
SELECT MIN(passengers) FROM table_name_75 WHERE airport = "dallas/fort worth international (dfw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)
### Context:
CREATE TABLE table_name_79 (city VARCHAR, rank VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_79 WHERE rank > 6 AND airport = "st. petersburg/clearwater (pie)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank of the airport that has 79,290 passengers?
### Context:
CREATE TABLE table_name_63 (rank VARCHAR, passengers VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_63 WHERE passengers = 79 OFFSET 290 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?
### Context:
CREATE TABLE table_name_97 (winner VARCHAR, country VARCHAR, fis_nordic_world_ski_championships VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_97 WHERE country = "norway" AND fis_nordic_world_ski_championships = "1924" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Country has a FIS Nordic World Ski Championships of 1948, 1950?
### Context:
CREATE TABLE table_name_96 (country VARCHAR, fis_nordic_world_ski_championships VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_96 WHERE fis_nordic_world_ski_championships = "1948, 1950" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Holmenkollen has a Country of norway, and a Winner of tom sandberg?
### Context:
CREATE TABLE table_name_22 (holmenkollen VARCHAR, country VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT holmenkollen FROM table_name_22 WHERE country = "norway" AND winner = "tom sandberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FIS Nordic World Ski Championships has Winter Olympics of 1960?
### Context:
CREATE TABLE table_name_44 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR) [/INST]
### Response:
SELECT fis_nordic_world_ski_championships FROM table_name_44 WHERE winter_olympics = "1960" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Country has a Winter Olympics of 1948?
### Context:
CREATE TABLE table_name_28 (country VARCHAR, winter_olympics VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_28 WHERE winter_olympics = "1948" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner has a Winter Olympics of 1968?
### Context:
CREATE TABLE table_name_31 (winner VARCHAR, winter_olympics VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_31 WHERE winter_olympics = "1968" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the game when the attendance was 43,279?
### Context:
CREATE TABLE table_name_8 (result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_8 WHERE attendance = "43,279" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance, when Date is 1 October 1998?
### Context:
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_28 WHERE date = "1 october 1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent, when Date is 17 September 1998?
### Context:
CREATE TABLE table_name_76 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_76 WHERE date = "17 september 1998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent, when Date is 8 April 1999?
### Context:
CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_18 WHERE date = "8 april 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?
### Context:
CREATE TABLE table_name_89 (high_points VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_89 WHERE opponent = "los angeles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Score F-A when the result was D?
### Context:
CREATE TABLE table_name_39 (score_f_a VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score_f_a FROM table_name_39 WHERE result = "d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date did they play Leicester City in Venue A?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, venue VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE venue = "a" AND opponents = "leicester city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the game played in Venue H?
### Context:
CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_27 WHERE venue = "h" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the game played on 17 July 2008?
### Context:
CREATE TABLE table_name_42 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_42 WHERE date = "17 july 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 Passenger has 16 Wins?
### Context:
CREATE TABLE table_name_94 (passenger VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT passenger FROM table_name_94 WHERE wins = "16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?
### Context:
CREATE TABLE table_name_23 (time_of_broadcast VARCHAR, days_of_the_week VARCHAR, picture_format VARCHAR, hours VARCHAR) [/INST]
### Response:
SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = "4:3" AND hours = "20:30" AND days_of_the_week = "monday, wednesday, friday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Days of the week has a Time of broadcast in january–february, june 2002?
### Context:
CREATE TABLE table_name_31 (days_of_the_week VARCHAR, time_of_broadcast VARCHAR) [/INST]
### Response:
SELECT days_of_the_week FROM table_name_31 WHERE time_of_broadcast = "january–february, june 2002" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?
### Context:
CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–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:
Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?
### Context:
CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_44 WHERE year > 1939 AND opponent_in_the_final = "frank kovacs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an Opponent in the final of don mcneill, and a Year of 1940?
### Context:
CREATE TABLE table_name_52 (surface VARCHAR, opponent_in_the_final VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many years have an Opponent in the final of welby van horn?
### Context:
CREATE TABLE table_name_74 (year INTEGER, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_74 WHERE opponent_in_the_final = "welby van horn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of player dick metz?
### Context:
CREATE TABLE table_name_74 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_74 WHERE player = "dick metz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season had EV Bad Wörishofen in the West?
### Context:
CREATE TABLE table_name_60 (season VARCHAR, west VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_60 WHERE west = "ev bad wörishofen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the South in the 2004-05 season?
### Context:
CREATE TABLE table_name_92 (south VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT south FROM table_name_92 WHERE season = "2004-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the South when EV Bad Wörishofen was in the West?
### Context:
CREATE TABLE table_name_10 (south VARCHAR, west VARCHAR) [/INST]
### Response:
SELECT south FROM table_name_10 WHERE west = "ev bad wörishofen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the South when TSV Kottern was in the West and EHF Passau was in the East?
### Context:
CREATE TABLE table_name_40 (south VARCHAR, west VARCHAR, east VARCHAR) [/INST]
### Response:
SELECT south FROM table_name_40 WHERE west = "tsv kottern" AND east = "ehf passau" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the East when TUS Geretsried II was in the South?
### Context:
CREATE TABLE table_name_9 (east VARCHAR, south VARCHAR) [/INST]
### Response:
SELECT east FROM table_name_9 WHERE south = "tus geretsried ii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in the West when ESV Gebensbach was in the East?
### Context:
CREATE TABLE table_name_32 (west VARCHAR, east VARCHAR) [/INST]
### Response:
SELECT west FROM table_name_32 WHERE east = "esv gebensbach" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gold, when Nation is Hungary, and when Bronze is greater than 1?
### Context:
CREATE TABLE table_name_2 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_2 WHERE nation = "hungary" AND bronze > 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:
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?
### Context:
CREATE TABLE table_name_33 (total INTEGER, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_33 WHERE nation = "soviet union" 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 is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?
### Context:
CREATE TABLE table_name_75 (bronze VARCHAR, rank VARCHAR, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_75 WHERE silver > 0 AND gold > 3 AND rank = "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:
What is the highest Bronze, when Total is less than 3, and when Silver is less than 0?
### Context:
CREATE TABLE table_name_86 (bronze INTEGER, total VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_86 WHERE total < 3 AND silver < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?
### Context:
CREATE TABLE table_name_2 (total INTEGER, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_2 WHERE silver > 4 AND gold > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Silver, when Total is less than 1?
### Context:
CREATE TABLE table_name_84 (silver INTEGER, total INTEGER) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_84 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:
What is day 4 when day 2 is PAAQ?
### Context:
CREATE TABLE table_name_3 (day_4 VARCHAR, day_2 VARCHAR) [/INST]
### Response:
SELECT day_4 FROM table_name_3 WHERE day_2 = "paaq" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 other value associated with a Christianity value of 10.24%?
### Context:
CREATE TABLE table_name_21 (other VARCHAR, christianity VARCHAR) [/INST]
### Response:
SELECT other FROM table_name_21 WHERE christianity = "10.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:
What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?
### Context:
CREATE TABLE table_name_15 (judaism VARCHAR, other VARCHAR, buddhism VARCHAR) [/INST]
### Response:
SELECT judaism FROM table_name_15 WHERE other = "0.13%" AND buddhism = "0.01%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage of Atheism associated with an other percentage of 0.08%?
### Context:
CREATE TABLE table_name_90 (atheism VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT atheism FROM table_name_90 WHERE other = "0.08%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage of Buddhists associated with a Christianity percentage of 52.32%?
### Context:
CREATE TABLE table_name_6 (buddhism VARCHAR, christianity VARCHAR) [/INST]
### Response:
SELECT buddhism FROM table_name_6 WHERE christianity = "52.32%" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.