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:
In rounds 7-13 what engine was featured?
### Context:
CREATE TABLE table_name_58 (engine VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_58 WHERE rounds = "7-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 was conceded by Richmond?
### Context:
CREATE TABLE table_name_94 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_94 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goals on 1950-05-30?
### Context:
CREATE TABLE table_name_63 (goals VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(goals) FROM table_name_63 WHERE date = "1950-05-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:
In 1948-10-28, what were the lowest Goals in Tehran, Iran?
### Context:
CREATE TABLE table_name_75 (goals INTEGER, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_75 WHERE venue = "tehran, iran" AND date = "1948-10-28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result 1-3?
### Context:
CREATE TABLE table_name_16 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_16 WHERE result = "1-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:
In 1948-10-28, in what Venue was the Competition of International Match held?
### Context:
CREATE TABLE table_name_26 (venue VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_26 WHERE competition = "international match" AND date = "1948-10-28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Zakspeed 1500/4 1.5 l4 t chassis?
### Context:
CREATE TABLE table_name_42 (chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_42 WHERE engine = "zakspeed 1500/4 1.5 l4 t" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Michele Alboreto's engine?
### Context:
CREATE TABLE table_name_22 (engine VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_22 WHERE driver = "michele alboreto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for antun salman?
### Context:
CREATE TABLE table_name_26 (rank INTEGER, candidate_name VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_26 WHERE candidate_name = "antun salman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Khalil chawka has a gender of ♂, a religion of ☪, and how many votes?
### Context:
CREATE TABLE table_name_55 (votes VARCHAR, candidate_name VARCHAR, gender VARCHAR, religion VARCHAR) [/INST]
### Response:
SELECT votes FROM table_name_55 WHERE gender = "♂" AND religion = "☪" AND candidate_name = "khalil chawka" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has a religion of ☪ and more than 1853 votes?
### Context:
CREATE TABLE table_name_66 (candidate_name VARCHAR, votes VARCHAR, religion VARCHAR) [/INST]
### Response:
SELECT candidate_name FROM table_name_66 WHERE votes > 1853 AND religion = "☪" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 recorder has a Track more than 11 with a time 3:06
### Context:
CREATE TABLE table_name_77 (recorded VARCHAR, track VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT recorded FROM table_name_77 WHERE track > 11 AND time = "3:06" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 track has a title : Just a little bit
### Context:
CREATE TABLE table_name_64 (track INTEGER, song_title VARCHAR) [/INST]
### Response:
SELECT MIN(track) FROM table_name_64 WHERE song_title = "just a little bit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Trophy with a Season with 2008–2009?
### Context:
CREATE TABLE table_name_78 (trophy VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT trophy FROM table_name_78 WHERE season = "2008–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 Wasatch time corresponds to a total time of 122:13:40?
### Context:
CREATE TABLE table_name_31 (wasatch VARCHAR, total_time VARCHAR) [/INST]
### Response:
SELECT wasatch FROM table_name_31 WHERE total_time = "122:13:40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the opponents in the final on 9 January 1994?
### Context:
CREATE TABLE table_name_29 (opponents_in_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponents_in_final FROM table_name_29 WHERE date = "9 january 1994" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne's home team opponent?
### Context:
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_90 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Richmond's away team opponent?
### Context:
CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_10 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest value for League Cup when the League number is greater than 1, no FA Cups, and Brian Deane scoring?
### Context:
CREATE TABLE table_name_88 (league INTEGER, fa_cup VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(league) AS Cup FROM table_name_88 WHERE league > 1 AND name = "brian deane" AND fa_cup < 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:
Name the region before 2008 when name of best 1200
### Context:
CREATE TABLE table_name_58 (region VARCHAR, year VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_58 WHERE year < 2008 AND name = "best 1200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What method resulted in a win and a time of 4:36?
### Context:
CREATE TABLE table_name_44 (method VARCHAR, res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_44 WHERE res = "win" AND time = "4:36" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At what venue did the Essendon team play as an away team?
### Context:
CREATE TABLE table_name_92 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_92 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team for the game played at Junction Oval?
### Context:
CREATE TABLE table_name_98 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_98 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the home team when the away team was Geelong?
### Context:
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_59 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team when the home team was South Melbourne?
### Context:
CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the home team playing at the Junction Oval venue?
### Context:
CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_10 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of the established club of Lehigh Valley Storm?
### Context:
CREATE TABLE table_name_86 (established VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT COUNT(established) FROM table_name_86 WHERE club = "lehigh valley storm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a league in the sport of baseball?
### Context:
CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_96 WHERE sport = "baseball" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue does the soccer team Pennsylvania Stoners play in?
### Context:
CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played on March 4?
### Context:
CREATE TABLE table_name_67 (game__number INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(game__number) FROM table_name_67 WHERE date = "march 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 record when the visitor is Buffalo?
### Context:
CREATE TABLE table_name_69 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_69 WHERE visitor = "buffalo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the number of attendance that has a result of l 35-17
### Context:
CREATE TABLE table_name_4 (attendance VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_4 WHERE result = "l 35-17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the attendance for week larger than 10 and result of l 22-21
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_60 WHERE week > 10 AND result = "l 22-21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name for me the total number in attendance for week before 2 and result of t 24-24
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 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:
I want the greatest attendance when the opponent is the chicago bears
### Context:
CREATE TABLE table_name_64 (attendance INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_64 WHERE opponent = "chicago bears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a game against Phoenix?
### Context:
CREATE TABLE table_name_16 (attendance INTEGER, visitor VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_16 WHERE visitor = "phoenix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the February 22 game that Legace played in for the St. Louis Blues?
### Context:
CREATE TABLE table_name_78 (home VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_78 WHERE decision = "legace" AND visitor = "st. louis" AND date = "february 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:
Who was Carlton's home team opponent?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_65 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at Lake Oval?
### Context:
CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was South Melbourne's away team opponent?
### Context:
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high grid with 27 laps?
### Context:
CREATE TABLE table_name_89 (grid INTEGER, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_89 WHERE laps = 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the high grid that has a Time/Retired of +6 laps, and under 69 laps?
### Context:
CREATE TABLE table_name_4 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_4 WHERE time_retired = "+6 laps" AND laps < 69 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the total number of copies sold for the single that sold 206,030 in the first week?
### Context:
CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR) [/INST]
### Response:
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest release date for Ariola in Spain?
### Context:
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MAX(release_date) FROM table_name_3 WHERE label = "ariola" AND country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format was released after 1979?
### Context:
CREATE TABLE table_name_48 (release_format VARCHAR, release_date INTEGER) [/INST]
### Response:
SELECT release_format FROM table_name_48 WHERE release_date > 1979 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did Epic label start its release?
### Context:
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR) [/INST]
### Response:
SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game had less than 270 rebounds and a rank lower than 5?
### Context:
CREATE TABLE table_name_36 (games VARCHAR, rebounds VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_36 WHERE rebounds < 270 AND rank < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which game did Curtis Borchardt play with more than 274 rebounds?
### Context:
CREATE TABLE table_name_20 (games INTEGER, name VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_20 WHERE name = "curtis borchardt" AND rebounds > 274 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game 34 Curtis Borchardt played on which team with less than 275 rebounds?
### Context:
CREATE TABLE table_name_70 (team VARCHAR, name VARCHAR, rebounds VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_70 WHERE rebounds < 275 AND games < 34 AND name = "curtis borchardt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rebounds occurred in a rank 4 game?
### Context:
CREATE TABLE table_name_73 (rebounds VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT rebounds FROM table_name_73 WHERE rank = 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 game did was Bud Eley a player in?
### Context:
CREATE TABLE table_name_88 (games VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_88 WHERE name = "bud eley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?
### Context:
CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid for johnny herbert?
### Context:
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_6 WHERE driver = "johnny herbert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the average rank for dharma productions before 2013
### Context:
CREATE TABLE table_name_43 (rank INTEGER, studio_s_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average year for 4 rank
### Context:
CREATE TABLE table_name_33 (year INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_33 WHERE rank = 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:
Name the lowest rank for red chillies entertainment for 2013
### Context:
CREATE TABLE table_name_99 (rank INTEGER, year VARCHAR, studio_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_99 WHERE year = 2013 AND studio_s_ = "red chillies entertainment" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date did richmond play as away?
### Context:
CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_27 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank for the player with 5 wins and under 32 events?
### Context:
CREATE TABLE table_name_52 (rank INTEGER, wins VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_52 WHERE wins = 5 AND events < 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage.
### Context:
CREATE TABLE table_name_46 (issue_price VARCHAR, mintage VARCHAR, artist VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT issue_price FROM table_name_46 WHERE artist = "john mardon" AND year = 2000 AND mintage = "included in steam buggy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 theme of the Year 2002 which was created by Artist Dan Fell?
### Context:
CREATE TABLE table_name_86 (theme VARCHAR, year VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What artist had a mintage of 41,828 before year 2002?
### Context:
CREATE TABLE table_name_81 (artist VARCHAR, year VARCHAR, mintage VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_81 WHERE year < 2002 AND mintage = "41,828" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
A mintage of 31,997 has what issue price?
### Context:
CREATE TABLE table_name_36 (issue_price VARCHAR, mintage VARCHAR) [/INST]
### Response:
SELECT issue_price FROM table_name_36 WHERE mintage = "31,997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the control trailers for 52 motors
### Context:
CREATE TABLE table_name_71 (Control VARCHAR, motors VARCHAR) [/INST]
### Response:
SELECT Control AS trailers FROM table_name_71 WHERE motors = "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:
I want the trailers for 1931 and builder of mccw
### Context:
CREATE TABLE table_name_48 (trailers VARCHAR, year VARCHAR, builder VARCHAR) [/INST]
### Response:
SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the control trailers for 1931 with builder of grcw
### Context:
CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR) [/INST]
### Response:
SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the trailers for motors of 145
### Context:
CREATE TABLE table_name_92 (trailers VARCHAR, motors VARCHAR) [/INST]
### Response:
SELECT trailers FROM table_name_92 WHERE motors = "145" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of wins for top 5 less than 1
### Context:
CREATE TABLE table_name_77 (wins INTEGER, top_5 INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_77 WHERE top_5 < 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:
I want the average events for top 10 less than 4
### Context:
CREATE TABLE table_name_17 (events INTEGER, top_10 INTEGER) [/INST]
### Response:
SELECT AVG(events) FROM table_name_17 WHERE top_10 < 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:
Name the highest cuts made when top 5 is less than 3 and top ten is more than 4
### Context:
CREATE TABLE table_name_99 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR) [/INST]
### Response:
SELECT MAX(cuts_made) FROM table_name_99 WHERE top_5 < 3 AND top_10 > 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:
I want the most top 25 when events are more than 20 and top 10 is more than 21
### Context:
CREATE TABLE table_name_84 (top_25 INTEGER, events VARCHAR, top_10 VARCHAR) [/INST]
### Response:
SELECT MAX(top_25) FROM table_name_84 WHERE events > 20 AND top_10 > 21 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Attendance on April 28?
### Context:
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 escape to river cottage released?
### Context:
CREATE TABLE table_name_64 (released VARCHAR, dvd_name VARCHAR) [/INST]
### Response:
SELECT released FROM table_name_64 WHERE dvd_name = "escape to river cottage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What DVD has a time of 2 hours 22 minutes?
### Context:
CREATE TABLE table_name_61 (dvd_name VARCHAR, duration VARCHAR) [/INST]
### Response:
SELECT dvd_name FROM table_name_61 WHERE duration = "2 hours 22 minutes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for the game in week 7?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE week = 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:
On what date was the attendance of the crowd 78,431?
### Context:
CREATE TABLE table_name_54 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_54 WHERE attendance = "78,431" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the Capitals game when Columbus was the home team?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE home = "columbus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The 2002 African Cup of Nations was held on what date?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE competition = "2002 african cup of nations" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition took place at Stade Fernand Fournier, Arles?
### Context:
CREATE TABLE table_name_51 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_51 WHERE venue = "stade fernand fournier, arles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game where fitzroy was the away team?
### Context:
CREATE TABLE table_name_83 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist created the silver dollar for the 400th anniversary of Quebec?
### Context:
CREATE TABLE table_name_80 (artist VARCHAR, theme VARCHAR) [/INST]
### Response:
SELECT artist FROM table_name_80 WHERE theme = "400th anniversary of quebec" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Royal Canadian Mint Staff create a silver dollar?
### Context:
CREATE TABLE table_name_25 (year VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_25 WHERE artist = "royal canadian mint staff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 coins by Suzanne Duranceau were minted?
### Context:
CREATE TABLE table_name_93 (mintage VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT mintage FROM table_name_93 WHERE artist = "suzanne duranceau" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method for the resolution of nc where the fight lasted less than 3 rounds?
### Context:
CREATE TABLE table_name_72 (method VARCHAR, round VARCHAR, res VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_72 WHERE round < 3 AND res = "nc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds?
### Context:
CREATE TABLE table_name_95 (opponent VARCHAR, round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_95 WHERE round < 4 AND event = "ufc 90" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method for the resolution of the fight at UFC 160?
### Context:
CREATE TABLE table_name_33 (method VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_33 WHERE event = "ufc 160" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league on 5 October 1997?
### Context:
CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_48 WHERE date = "5 october 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was on 30 October 1977?
### Context:
CREATE TABLE table_name_50 (season VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_50 WHERE date = "30 october 1977" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What season had the Roma-Napoli match on 12 September 1993?
### Context:
CREATE TABLE table_name_1 (season VARCHAR, match VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_1 WHERE match = "roma-napoli" AND date = "12 september 1993" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club/province for the player with over 18 caps and plays the fly-half?
### Context:
CREATE TABLE table_name_28 (club_province VARCHAR, caps VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver has less than 18 laps and a grid number under 16?
### Context:
CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 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:
Who constructed the car with laps more than 70 and a time/retired of +12.535?
### Context:
CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_5 WHERE laps > 70 AND time_retired = "+12.535" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.
### Context:
CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 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:
Who was Footscray's opponent on June 15th of 1968?
### Context:
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_54 WHERE away_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association?
### Context:
CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole position for the belgian grand prix?
### Context:
CREATE TABLE table_name_87 (pole_position VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_87 WHERE race = "belgian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won the australian grand prix?
### Context:
CREATE TABLE table_name_53 (race VARCHAR) [/INST]
### Response:
SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole position for jerez?
### Context:
CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_39 WHERE location = "jerez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enzyme involved in the disorder of Ornithine Transcarbamylase deficiency?
### Context:
CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR) [/INST]
### Response:
SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What lab measurements can help diagnosie ornithine transcarbamylase deficiency?
### Context:
CREATE TABLE table_name_15 (measurements VARCHAR, disorder VARCHAR) [/INST]
### Response:
SELECT measurements FROM table_name_15 WHERE disorder = "ornithine transcarbamylase deficiency" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency?
### Context:
CREATE TABLE table_name_30 (abb VARCHAR, disorder VARCHAR) [/INST]
### Response:
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.