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 the ship when the principle victims are civilians?
### Context:
CREATE TABLE table_name_49 (nat VARCHAR, principal_victims VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_49 WHERE principal_victims = "civilians" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the name of the battleship with the battle listed on May 13, 1915?
### Context:
CREATE TABLE table_name_23 (name VARCHAR, ship_type VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_23 WHERE ship_type = "battleship" AND date = "may 13, 1915" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year 2000 tournment did Angeles Montolio have a career win-loss record of 2-4?
### Context:
CREATE TABLE table_name_74 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_74 WHERE 2000 = "2-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 career win-loss record has a 1r in 2002, a 2r in 2000 and a 2r in 2001?
### Context:
CREATE TABLE table_name_75 (career_win_loss VARCHAR) [/INST]
### Response:
SELECT career_win_loss FROM table_name_75 WHERE 2002 = "1r" AND 2000 = "2r" AND 2001 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of the single with the peak position of 10 and weeks on chart is less than 19?
### Context:
CREATE TABLE table_name_7 (title VARCHAR, peak_position VARCHAR, weeks_on_chart VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_7 WHERE peak_position = 10 AND weeks_on_chart < 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the weeks on chart for the single from france?
### Context:
CREATE TABLE table_name_92 (weeks_on_chart VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT weeks_on_chart FROM table_name_92 WHERE country = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country with the album best of and weeks on chart is less than 5?
### Context:
CREATE TABLE table_name_53 (country VARCHAR, album VARCHAR, weeks_on_chart VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_53 WHERE album = "best of" AND weeks_on_chart < 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of the single with the peak position of 10 and from France?
### Context:
CREATE TABLE table_name_21 (title VARCHAR, peak_position VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_21 WHERE peak_position = 10 AND country = "france" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most weeks on chart when the peak position is less than 5 and from Sweden?
### Context:
CREATE TABLE table_name_49 (weeks_on_chart INTEGER, peak_position VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT MAX(weeks_on_chart) FROM table_name_49 WHERE peak_position < 5 AND country = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of golds when total is 1 and silver is 1
### Context:
CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_50 WHERE total = 1 AND silver = 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 total number of ranks when total is less than 1
### Context:
CREATE TABLE table_name_76 (rank VARCHAR, total INTEGER) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_76 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:
Harry l Stephen rides a Norton machine on what date?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, machine VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE machine = "norton" AND rider = "harry l stephen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What machine did Keith T. Gawler ride?
### Context:
CREATE TABLE table_name_76 (machine VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT machine FROM table_name_76 WHERE rider = "keith t. gawler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the 249cc Yamaha?
### Context:
CREATE TABLE table_name_3 (place VARCHAR, machine VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_3 WHERE machine = "249cc yamaha" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What machine did Kenneth E. Herbert ride?
### Context:
CREATE TABLE table_name_2 (machine VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT machine FROM table_name_2 WHERE rider = "kenneth e. 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:
What event was Rob Vine riding?
### Context:
CREATE TABLE table_name_56 (event VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_56 WHERE rider = "rob vine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long is the XXX track used by the Minnesota Vikings?
### Context:
CREATE TABLE table_name_14 (time VARCHAR, team_s_ VARCHAR, artist_s_ VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_14 WHERE team_s_ = "minnesota vikings" AND artist_s_ = "xxx" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What teams used a track 3:29 long?
### Context:
CREATE TABLE table_name_51 (team_s_ VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT team_s_ FROM table_name_51 WHERE time = "3:29" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the artist of the Seattle Seahawks track?
### Context:
CREATE TABLE table_name_39 (artist_s_ VARCHAR, team_s_ VARCHAR) [/INST]
### Response:
SELECT artist_s_ FROM table_name_39 WHERE team_s_ = "seattle seahawks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Location of ebbets field, and a Time of 2:56, and a Game larger than 6 has what sum of attendance?
### Context:
CREATE TABLE table_name_49 (attendance INTEGER, game VARCHAR, location VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_49 WHERE location = "ebbets field" AND time = "2:56" AND game > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The game of 6 has what lowest attendance?
### Context:
CREATE TABLE table_name_47 (attendance INTEGER, game VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_47 WHERE game = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Date of October 1 has what average game?
### Context:
CREATE TABLE table_name_47 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_47 WHERE date = "october 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:
yankee stadium (i), and a Time of 3:00 has what attendance for this location?
### Context:
CREATE TABLE table_name_56 (attendance VARCHAR, location VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_56 WHERE location = "yankee stadium (i)" AND time = "3:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
College of lsu has how many rounds?
### Context:
CREATE TABLE table_name_52 (round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_52 WHERE college = "lsu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Pick # of 25, and an Overall of 207 has what name?
### Context:
CREATE TABLE table_name_61 (name VARCHAR, pick__number VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_61 WHERE pick__number = 25 AND overall = 207 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Round smaller than 7, and an Overall of 129 is what college?
### Context:
CREATE TABLE table_name_67 (college VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_67 WHERE round < 7 AND overall = 129 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Round larger than 6, and a Pick # smaller than 25, and a College of southern Illinois has what position?
### Context:
CREATE TABLE table_name_48 (position VARCHAR, college VARCHAR, round VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_48 WHERE round > 6 AND pick__number < 25 AND college = "southern illinois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 US release has 704 pages?
### Context:
CREATE TABLE table_name_79 (us_release VARCHAR, pages VARCHAR) [/INST]
### Response:
SELECT us_release FROM table_name_79 WHERE pages = "704" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 audio has a Title of a storm of swords?
### Context:
CREATE TABLE table_name_21 (audio VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT audio FROM table_name_21 WHERE title = "a storm of swords" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which title has a US release of august 1996?
### Context:
CREATE TABLE table_name_56 (title VARCHAR, us_release VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_56 WHERE us_release = "august 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pages does a dream of spring have?
### Context:
CREATE TABLE table_name_3 (pages VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT pages FROM table_name_3 WHERE title = "a dream of spring" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result for kingdome game site and opponent of denver broncos
### Context:
CREATE TABLE table_name_75 (result VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_75 WHERE game_site = "kingdome" AND opponent = "denver broncos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which College/junior/club team has a Pick # of 1?
### Context:
CREATE TABLE table_name_27 (college_junior_club_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_name_27 WHERE pick__number = "1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Pick # has an NHL team of detroit red wings?
### Context:
CREATE TABLE table_name_69 (pick__number VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_name_69 WHERE nhl_team = "detroit red wings" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has a Position of defence, and a Pick # of 6?
### Context:
CREATE TABLE table_name_42 (player VARCHAR, position VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_42 WHERE position = "defence" AND pick__number = "6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which NHL team has a Player of steve durbano?
### Context:
CREATE TABLE table_name_97 (nhl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nhl_team FROM table_name_97 WHERE player = "steve durbano" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest money for a t4 place, for Tiger Woods?
### Context:
CREATE TABLE table_name_64 (money___ INTEGER, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MAX(money___) AS $__ FROM table_name_64 WHERE place = "t4" AND player = "tiger woods" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals against have 58 points?
### Context:
CREATE TABLE table_name_82 (goals_against VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT goals_against FROM table_name_82 WHERE points = 58 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For majors with 8 events played and more than 1 made cut, what is the most top-10s recorded?
### Context:
CREATE TABLE table_name_9 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(top_10) FROM table_name_9 WHERE cuts_made > 1 AND events = 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:
For more than 3 events in the PGA Championship, what is the fewest number of wins?
### Context:
CREATE TABLE table_name_33 (wins INTEGER, tournament VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_33 WHERE tournament = "pga championship" AND events > 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:
For events with under 3 times played and fewer than 1 cut made, what is the total number of top-10 finishes?
### Context:
CREATE TABLE table_name_24 (top_10 VARCHAR, events VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT COUNT(top_10) FROM table_name_24 WHERE events < 3 AND cuts_made < 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:
For events with values of exactly 1, and 0 cuts made, what is the fewest number of top-10s?
### Context:
CREATE TABLE table_name_79 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT MIN(top_10) FROM table_name_79 WHERE events = 1 AND cuts_made > 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 tyres with a year earlier than 1961 for a climax l4 engine?
### Context:
CREATE TABLE table_name_33 (tyres VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_33 WHERE year < 1961 AND engine = "climax l4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What company built the chassis for a year later than 1959 and a climax l4 engine?
### Context:
CREATE TABLE table_name_69 (chassis VARCHAR, year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_69 WHERE year > 1959 AND engine = "climax l4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine was in the year of 1961?
### Context:
CREATE TABLE table_name_85 (engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_85 WHERE year = 1961 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine was for the vehicle with a cooper t43 chassis?
### Context:
CREATE TABLE table_name_19 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_19 WHERE chassis = "cooper t43" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the engine for a vehicle in 1960?
### Context:
CREATE TABLE table_name_59 (engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_59 WHERE year = 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:
What is the tyres for the JBW type 2 chassis?
### Context:
CREATE TABLE table_name_70 (tyres VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT tyres FROM table_name_70 WHERE chassis = "jbw type 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 location of the game that has a number smaller than 2?
### Context:
CREATE TABLE table_name_68 (location VARCHAR, game INTEGER) [/INST]
### Response:
SELECT location FROM table_name_68 WHERE game < 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 film did ian mackinnon direct that was in the short film 2007 prix uip category?
### Context:
CREATE TABLE table_name_55 (film VARCHAR, category VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_55 WHERE category = "short film 2007 prix uip" AND director_s_ = "ian mackinnon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What film was filmed in Spain?
### Context:
CREATE TABLE table_name_49 (film VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_49 WHERE 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 Country has a Director of 2007?
### Context:
CREATE TABLE table_name_43 (country VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_43 WHERE director_s_ = "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 film did abdelatif hwidar direct that was in the short film 2007 prix uip category?
### Context:
CREATE TABLE table_name_93 (film VARCHAR, category VARCHAR, director_s_ VARCHAR) [/INST]
### Response:
SELECT film FROM table_name_93 WHERE category = "short film 2007 prix uip" AND director_s_ = "abdelatif hwidar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Nominating festival was party of the adjustment film?
### Context:
CREATE TABLE table_name_69 (nominating_festival VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT nominating_festival FROM table_name_69 WHERE film = "adjustment" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country was the prix uip ghent nominating festival?
### Context:
CREATE TABLE table_name_49 (country VARCHAR, nominating_festival VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_49 WHERE nominating_festival = "prix uip ghent" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record of the game that had a loss of Stottlemyre (10-12)?
### Context:
CREATE TABLE table_name_33 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_33 WHERE loss = "stottlemyre (10-12)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Attendance high on August 28?
### Context:
CREATE TABLE table_name_26 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_26 WHERE date = "august 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:
Who was the opponent at the game when the record was 22-13?
### Context:
CREATE TABLE table_name_95 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_95 WHERE record = "22-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 was the loss of the game when the record was 21-13?
### Context:
CREATE TABLE table_name_15 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_15 WHERE record = "21-13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was date of the game when the record was 31-15?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE record = "31-15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record at the game against the Indians with a loss of Camacho (1-4)?
### Context:
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_37 WHERE opponent = "indians" AND loss = "camacho (1-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 type ride is Wild Asia that opened in 2000?
### Context:
CREATE TABLE table_name_81 (type VARCHAR, themed_land VARCHAR, opened_in VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_81 WHERE themed_land = "wild asia" AND opened_in = 2000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ride is Rameses Revenge?
### Context:
CREATE TABLE table_name_59 (type VARCHAR, ride_name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_59 WHERE ride_name = "rameses revenge" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ride opened after the 2000 Peeking Heights?
### Context:
CREATE TABLE table_name_32 (type VARCHAR, opened_in VARCHAR, ride_name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_32 WHERE opened_in > 2000 AND ride_name = "peeking heights" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ride was manufactured by Zierer?
### Context:
CREATE TABLE table_name_43 (ride_name VARCHAR, manufacturer VARCHAR) [/INST]
### Response:
SELECT ride_name FROM table_name_43 WHERE manufacturer = "zierer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year engine does a ferrari v6 have?
### Context:
CREATE TABLE table_name_77 (year VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_77 WHERE engine = "ferrari v6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrant of a chassis maserati 250f, also has 6 points and older than year 1957?
### Context:
CREATE TABLE table_name_42 (entrant VARCHAR, year VARCHAR, chassis VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_42 WHERE chassis = "maserati 250f" AND points = "6" AND year < 1957 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 45 O with D 44 O majority →
### Context:
CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR) [/INST]
### Response:
SELECT d_45_o FROM table_name_5 WHERE d_44_o = "majority →" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 45 O with D 46 O of r 31 √
### Context:
CREATE TABLE table_name_97 (d_45_o VARCHAR, d_46_o VARCHAR) [/INST]
### Response:
SELECT d_45_o FROM table_name_97 WHERE d_46_o = "r 31 √" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 41 √ with D 44 O of r 13
### Context:
CREATE TABLE table_name_17 (d_41_√ VARCHAR, d_44_o VARCHAR) [/INST]
### Response:
SELECT d_41_√ FROM table_name_17 WHERE d_44_o = "r 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:
Name the D 48 O with D 41 √ of d 41 √
### Context:
CREATE TABLE table_name_47 (d_48_o VARCHAR, d_41_√ VARCHAR) [/INST]
### Response:
SELECT d_48_o FROM table_name_47 WHERE d_41_√ = "d 41 √" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 47 O with D 48 O of r 9
### Context:
CREATE TABLE table_name_80 (d_47_o VARCHAR, d_48_o VARCHAR) [/INST]
### Response:
SELECT d_47_o FROM table_name_80 WHERE d_48_o = "r 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of League Cups a player with a 434 league has?
### Context:
CREATE TABLE table_name_34 (league INTEGER) [/INST]
### Response:
SELECT MIN(league) AS Cup FROM table_name_34 WHERE league = 434 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of FA cups Steve Whitworth, who has less than 400 total, has?
### Context:
CREATE TABLE table_name_79 (fa_cup INTEGER, name VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(fa_cup) FROM table_name_79 WHERE name = "steve whitworth" AND total < 400 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the height of the Tides with less than 34 floors?
### Context:
CREATE TABLE table_name_68 (height_feet___m VARCHAR, floors VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height_feet___m FROM table_name_68 WHERE floors < 34 AND name = "the tides" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the building with 24 floors the tallest?
### Context:
CREATE TABLE table_name_14 (years_as_tallest VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT years_as_tallest FROM table_name_14 WHERE floors = 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:
How many floors does the Blue Diamond have?
### Context:
CREATE TABLE table_name_92 (floors INTEGER, name VARCHAR) [/INST]
### Response:
SELECT SUM(floors) FROM table_name_92 WHERE name = "blue diamond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mixed doubles happened later than 2011?
### Context:
CREATE TABLE table_name_2 (mixed_doubles VARCHAR, year INTEGER) [/INST]
### Response:
SELECT mixed_doubles FROM table_name_2 WHERE year > 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person's name that is from the country of SCO?
### Context:
CREATE TABLE table_name_19 (name VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_19 WHERE country = "sco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 source for the person named Cresswell?
### Context:
CREATE TABLE table_name_89 (source VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT source FROM table_name_89 WHERE name = "cresswell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 current status of the person named Nicholls?
### Context:
CREATE TABLE table_name_65 (status VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_65 WHERE name = "nicholls" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 transfer fee for the summer transfer involving the SCO named Crainey?
### Context:
CREATE TABLE table_name_83 (transfer_fee VARCHAR, name VARCHAR, transfer_window VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_83 WHERE transfer_window = "summer" AND country = "sco" AND name = "crainey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 source of an ENG transfer that paid a £1.5m transfer fee?
### Context:
CREATE TABLE table_name_88 (source VARCHAR, country VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT source FROM table_name_88 WHERE country = "eng" AND transfer_fee = "£1.5m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record where the opponent was @ Orioles and the loss was to Leal (5-4)?
### Context:
CREATE TABLE table_name_5 (record VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_5 WHERE opponent = "@ orioles" AND loss = "leal (5-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 was the record for the date of June 14?
### Context:
CREATE TABLE table_name_84 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_84 WHERE date = "june 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:
Name the total number of seats for votes % more than 19.5
### Context:
CREATE TABLE table_name_89 (seats VARCHAR, vote__percentage INTEGER) [/INST]
### Response:
SELECT COUNT(seats) FROM table_name_89 WHERE vote__percentage > 19.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:
Name the most vote % with election of 1946
### Context:
CREATE TABLE table_name_53 (vote__percentage INTEGER, election VARCHAR) [/INST]
### Response:
SELECT MAX(vote__percentage) FROM table_name_53 WHERE election = "1946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vote % for seats of 9
### Context:
CREATE TABLE table_name_92 (vote__percentage VARCHAR, seats VARCHAR) [/INST]
### Response:
SELECT vote__percentage FROM table_name_92 WHERE seats = 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of votes % more than 19.5
### Context:
CREATE TABLE table_name_26 (votes INTEGER, vote__percentage INTEGER) [/INST]
### Response:
SELECT SUM(votes) FROM table_name_26 WHERE vote__percentage > 19.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:
Who directed a film for Cracking Film Productions?
### Context:
CREATE TABLE table_name_80 (director_s_ VARCHAR, recipient VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_80 WHERE recipient = "cracking film productions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What award did the film Ozone win?
### Context:
CREATE TABLE table_name_7 (award VARCHAR, film VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_7 WHERE film = "ozone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 an award of £3,000 on 4/9/02?
### Context:
CREATE TABLE table_name_37 (recipient VARCHAR, date VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT recipient FROM table_name_37 WHERE date = "4/9/02" AND award = "£3,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the categorie in 2002 at the Berlin international Film Festival that Danielle Darrieux was in?
### Context:
CREATE TABLE table_name_39 (categorie VARCHAR, year VARCHAR, awards VARCHAR) [/INST]
### Response:
SELECT categorie FROM table_name_39 WHERE year = 2002 AND awards = "berlin international film festival" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result at the Berlin International Film Festival in a year greater than 1987?
### Context:
CREATE TABLE table_name_80 (result VARCHAR, year VARCHAR, awards VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_80 WHERE year > 1987 AND awards = "berlin international film festival" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what year was the movie 8 women up for a César Award?
### Context:
CREATE TABLE table_name_70 (year INTEGER, movie VARCHAR, awards VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_70 WHERE movie = "8 women" AND awards = "césar award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for indiana state
### Context:
CREATE TABLE table_name_17 (position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_17 WHERE school = "indiana state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the format of the date February 14, 2002?
### Context:
CREATE TABLE table_name_53 (format VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_53 WHERE date = "february 14, 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 region is identified as 38xa-3 in the catalog?
### Context:
CREATE TABLE table_name_7 (region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_7 WHERE catalog = "38xa-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 date is in CD format?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 WHERE format = "cd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in stereo lp format?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE format = "stereo lp" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.