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:
Raiders of the Lost Ark had pieces of 277 for what lowest number?
### Context:
CREATE TABLE table_name_8 (number INTEGER, film VARCHAR, pieces VARCHAR) [/INST]
### Response:
SELECT MIN(number) FROM table_name_8 WHERE film = "raiders of the lost ark" AND pieces = 277 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Chauchilla Cemetery Battle with less than 511 pieces?
### Context:
CREATE TABLE table_name_54 (number INTEGER, pieces VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(number) FROM table_name_54 WHERE pieces < 511 AND name = "chauchilla cemetery battle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year with 339 pieces and a number smaller than 7198?
### Context:
CREATE TABLE table_name_15 (released INTEGER, pieces VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT MIN(released) FROM table_name_15 WHERE pieces = 339 AND number < 7198 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition that was held on August 20, 2004?
### Context:
CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_4 WHERE date = "august 20, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game held that resulted in a draw?
### Context:
CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_64 WHERE result = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game held on August 20, 2004?
### Context:
CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_78 WHERE date = "august 20, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game held that resulted in a score of 9-2?
### Context:
CREATE TABLE table_name_15 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_15 WHERE score = "9-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 sum of total with a Rank larger than 12, and a Gold larger than 4?
### Context:
CREATE TABLE table_name_46 (total VARCHAR, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_46 WHERE rank > 12 AND gold > 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 smallest bronze with a Rank of 12, and a Silver smaller than 2?
### Context:
CREATE TABLE table_name_5 (bronze INTEGER, rank VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_5 WHERE rank = 12 AND silver < 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 smallest bronze with a Silver smaller than 2, and a Gold of 1, and a Nation of western isles, and a Total larger than 6?
### Context:
CREATE TABLE table_name_37 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_37 WHERE silver < 2 AND gold = 1 AND nation = "western isles" AND total > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average bronze with a total of 15 and less than 2 gold?
### Context:
CREATE TABLE table_name_69 (bronze INTEGER, total VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_69 WHERE total = 15 AND gold < 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 total rank with a Nation of gotland, and a Gold larger than 23?
### Context:
CREATE TABLE table_name_34 (rank VARCHAR, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_34 WHERE nation = "gotland" AND gold > 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
for a Goals Against greater than 42 what is the number of losses?
### Context:
CREATE TABLE table_name_9 (losses INTEGER, goals_against INTEGER) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_9 WHERE goals_against > 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals less than 48 and 8 games played what is the count of losses?
### Context:
CREATE TABLE table_name_19 (losses INTEGER, games_played VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT MAX(losses) FROM table_name_19 WHERE games_played = 8 AND goals_for < 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the number of losses with wins less than 4 and goals against more than 39?
### Context:
CREATE TABLE table_name_28 (losses VARCHAR, goals_against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_28 WHERE goals_against > 39 AND wins < 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 years does the school have that's in Makikihi?
### Context:
CREATE TABLE table_name_23 (years VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_23 WHERE area = "makikihi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 area is Morven School?
### Context:
CREATE TABLE table_name_75 (area VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT area FROM table_name_75 WHERE name = "morven school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years does the school have with a roll of 33?
### Context:
CREATE TABLE table_name_85 (years VARCHAR, roll VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_85 WHERE roll = 33 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the actor who played Billy Elliot in the Final Cast with a Last Performance of 13 June 2009?
### Context:
CREATE TABLE table_name_15 (name VARCHAR, status VARCHAR, last_performance VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_15 WHERE status = "final cast" AND last_performance = "13 june 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the First Performance of Rhys Kosakowski as Billy Elliot in the Original Cast?
### Context:
CREATE TABLE table_name_38 (first_performance VARCHAR, status VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT first_performance FROM table_name_38 WHERE status = "original cast" AND name = "rhys kosakowski" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Style of the First Performance of Billy Elliot on 15 November 2007?
### Context:
CREATE TABLE table_name_50 (style VARCHAR, first_performance VARCHAR) [/INST]
### Response:
SELECT style FROM table_name_50 WHERE first_performance = "15 november 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the Last Performance of Rarmian Newton as Billy Elliot?
### Context:
CREATE TABLE table_name_3 (last_performance VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT last_performance FROM table_name_3 WHERE name = "rarmian newton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the Last Ballet Style Performance of Rhys kosakowski as Billy Elliot?
### Context:
CREATE TABLE table_name_7 (last_performance VARCHAR, style VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT last_performance FROM table_name_7 WHERE style = "ballet" AND name = "rhys kosakowski" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the Last Performance of Billy Elliot with a Cast Status of past replacement?
### Context:
CREATE TABLE table_name_46 (last_performance VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT last_performance FROM table_name_46 WHERE status = "past replacement" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Gold of 0, and a Silver smaller than 3, and a Rank larger than 9, and a Total of 1 has how many numbers of bronze?
### Context:
CREATE TABLE table_name_1 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_1 WHERE gold = 0 AND silver < 3 AND rank > 9 AND 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:
Bronze larger than 2, and a Rank of 4, and a Total larger than 7 has how many numbers of gold?
### Context:
CREATE TABLE table_name_84 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_84 WHERE bronze > 2 AND rank = 4 AND total > 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:
Bronze smaller than 3, and a Total smaller than 2, and a Gold larger than 1 has how many average silvers?
### Context:
CREATE TABLE table_name_83 (silver INTEGER, gold VARCHAR, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_83 WHERE bronze < 3 AND total < 2 AND gold > 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:
Gold of 1, and a Total smaller than 4, and a Bronze smaller than 0 has the lowest silver?
### Context:
CREATE TABLE table_name_19 (silver INTEGER, bronze VARCHAR, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_19 WHERE gold = 1 AND total < 4 AND bronze < 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:
Name the date for record 3-3
### Context:
CREATE TABLE table_name_64 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_64 WHERE record = "3-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:
Name the opponent on april 27
### Context:
CREATE TABLE table_name_60 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_60 WHERE date = "april 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:
Name the record for april 22
### Context:
CREATE TABLE table_name_52 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_52 WHERE date = "april 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the attendance on april 17
### Context:
CREATE TABLE table_name_15 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_15 WHERE date = "april 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:
Name the date for postponed attendance
### Context:
CREATE TABLE table_name_7 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE attendance = "postponed" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record for april 6
### Context:
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_20 WHERE date = "april 6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What engine does Garvey Team Lotus use?
### Context:
CREATE TABLE table_name_50 (engine VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_50 WHERE entrant = "garvey team lotus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 population for the state whose capital is Santa Fe?
### Context:
CREATE TABLE table_name_61 (population_est__2012_ VARCHAR, capital VARCHAR) [/INST]
### Response:
SELECT population_est__2012_ FROM table_name_61 WHERE capital = "santa fe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capital for the state that has the largest city of Burlington?
### Context:
CREATE TABLE table_name_27 (capital VARCHAR, largest_city VARCHAR) [/INST]
### Response:
SELECT capital FROM table_name_27 WHERE largest_city = "burlington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 populations have a capital of Montpelier and more than 1 House seat?
### Context:
CREATE TABLE table_name_53 (population_est__2012_ VARCHAR, capital VARCHAR, house_seat_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(population_est__2012_) FROM table_name_53 WHERE capital = "montpelier" AND house_seat_s_ > 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:
On games against the Devil Rays and a score of 2 - 1 (10), what was the attendance?
### Context:
CREATE TABLE table_name_52 (attendance INTEGER, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_52 WHERE opponent = "devil rays" AND score = "2 - 1 (10)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On the game that put the team at 34-44, what was the attendance?
### Context:
CREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_95 WHERE record = "34-44" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game that put the team at 27-32?
### Context:
CREATE TABLE table_name_51 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_51 WHERE record = "27-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:
In which venue did the competition on 11 October 2008 take place?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE date = "11 october 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average number of silver medals won by France when they are ranked higher than 8?
### Context:
CREATE TABLE table_name_88 (silver INTEGER, nation VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_88 WHERE nation = "france" AND rank > 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:
Who was their Opponent on April 26?
### Context:
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_62 WHERE date = "april 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What competition took place in Berlin, Germany?
### Context:
CREATE TABLE table_name_47 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_47 WHERE venue = "berlin, germany" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the Pan American Games held?
### Context:
CREATE TABLE table_name_80 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_80 WHERE competition = "pan american games" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hosted the 2003 event?
### Context:
CREATE TABLE table_name_91 (venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_91 WHERE year = 2003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had the highest score and a time of 2:35?
### Context:
CREATE TABLE table_name_34 (game INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_34 WHERE time = "2:35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, played on October 17 in front of 49,347 fans, had the lowest score?
### Context:
CREATE TABLE table_name_93 (game INTEGER, date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_93 WHERE date = "october 17" AND attendance > 49 OFFSET 347 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?
### Context:
CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR) [/INST]
### Response:
SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number born in a none EU state (1000) from Denmark with a total population (1000) less than 5,534?
### Context:
CREATE TABLE table_name_20 (born_in_a_non_eu_state__1000_ INTEGER, country VARCHAR, total_population__1000_ VARCHAR) [/INST]
### Response:
SELECT MAX(born_in_a_non_eu_state__1000_) FROM table_name_20 WHERE country = "denmark" AND total_population__1000_ < 5 OFFSET 534 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Foreign-born (1000) are from Sweden and born in some other EU state (1000) larger than 477?
### Context:
CREATE TABLE table_name_7 (total_foreign_born__1000_ INTEGER, country VARCHAR, born_in_other_eu_state__1000_ VARCHAR) [/INST]
### Response:
SELECT SUM(total_foreign_born__1000_) FROM table_name_7 WHERE country = "sweden" AND born_in_other_eu_state__1000_ > 477 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859?
### Context:
CREATE TABLE table_name_79 (total_population__1000_ INTEGER, country VARCHAR, born_in_a_non_eu_state__1000_ VARCHAR) [/INST]
### Response:
SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Whice race ended with a DNF?
### Context:
CREATE TABLE table_name_98 (race VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_98 WHERE position = "dnf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 race ended with a time of 01:46:59.69?
### Context:
CREATE TABLE table_name_13 (race VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_13 WHERE time = "01:46:59.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 was the speed of the Superbike race?
### Context:
CREATE TABLE table_name_10 (speed VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT speed FROM table_name_10 WHERE race = "superbike" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 speed of the race that ended in 2nd place and had a time of 01:13:03.39?
### Context:
CREATE TABLE table_name_29 (speed VARCHAR, position VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT speed FROM table_name_29 WHERE position = "2nd" AND time = "01:13:03.39" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sets were played in the 2011 Tournament in which there were 3R in 2007?
### Context:
CREATE TABLE table_name_81 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_81 WHERE 2007 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sets were in the 2011 Australian Open Tournament?
### Context:
CREATE TABLE table_name_10 (tournament VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_10 WHERE tournament = "australian open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sets were played in the tournament that had 4R in 2011 and 2R in 2008?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_60 WHERE 2011 = "4r" AND 2008 = "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:
How many sets were played in the 2011 tournament, in which 2R were played in 2008?
### Context:
CREATE TABLE table_name_4 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_4 WHERE 2008 = "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:
Which tournament had 1R in 2013?
### Context:
CREATE TABLE table_name_8 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_8 WHERE 2013 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many sets were played in 2007 at the tournament that had 4R in 2011 and 2R in 2009?
### Context:
CREATE TABLE table_name_89 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_89 WHERE 2011 = "4r" AND 2009 = "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 was the record at the game held on December 24, 2005?
### Context:
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_11 WHERE date = "december 24, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of the game held at Invesco Field?
### Context:
CREATE TABLE table_name_8 (date VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_8 WHERE game_site = "invesco field" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the NFL Recap of the game held on December 24, 2005?
### Context:
CREATE TABLE table_name_70 (nfl_recap VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 held on December 24, 2005?
### Context:
CREATE TABLE table_name_16 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_16 WHERE date = "december 24, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week's game had an attendance of 90,138?
### Context:
CREATE TABLE table_name_37 (week VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_37 WHERE attendance = "90,138" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years with more than 1 points?
### Context:
CREATE TABLE table_name_2 (year INTEGER, points INTEGER) [/INST]
### Response:
SELECT SUM(year) FROM table_name_2 WHERE points > 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:
When were there less than 1 point with a cosworth v8 engine in jolly club switzerland?
### Context:
CREATE TABLE table_name_73 (year VARCHAR, entrant VARCHAR, points VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_73 WHERE points < 1 AND engine = "cosworth v8" AND entrant = "jolly club switzerland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which home team has an Away of (2-1)?
### Context:
CREATE TABLE table_name_17 (home VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_17 WHERE away = "(2-1)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which away team has a playoff record of (0-0) and played against Sioux City Bandits?
### Context:
CREATE TABLE table_name_46 (away VARCHAR, plyff VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT away FROM table_name_46 WHERE plyff = "(0-0)" AND opponent = "sioux city bandits" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which home team has a playoff record of (0-0) and played La Crosse Spartans?
### Context:
CREATE TABLE table_name_3 (home VARCHAR, plyff VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_3 WHERE plyff = "(0-0)" AND opponent = "la crosse spartans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Plyff team that plays the Billings Outlaws?
### Context:
CREATE TABLE table_name_21 (plyff VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT plyff FROM table_name_21 WHERE opponent = "billings outlaws" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team?
### Context:
CREATE TABLE table_name_74 (overall VARCHAR, opponent VARCHAR, plyff VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT overall FROM table_name_74 WHERE plyff = "(0-0)" AND home = "(0-1)" AND opponent = "green bay blizzard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall has a playoff record of (0-1) and an away record of (1-1)?
### Context:
CREATE TABLE table_name_71 (overall VARCHAR, plyff VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT overall FROM table_name_71 WHERE plyff = "(0-1)" AND away = "(1-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 opponent has a Date of april 14?
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_20 WHERE date = "april 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:
Which attendance has a Score of 3-5?
### Context:
CREATE TABLE table_name_88 (attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_88 WHERE score = "3-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 Date has a Record of 7-9?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE record = "7-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:
Which Date has an Attendance of 30,612?
### Context:
CREATE TABLE table_name_63 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_63 WHERE attendance = "30,612" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has an Opponent of @ mariners, and a Loss of hernández (0-1)?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE opponent = "@ mariners" AND loss = "hernández (0-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 Record that has a Loss of mays (0-3)?
### Context:
CREATE TABLE table_name_83 (record VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_83 WHERE loss = "mays (0-3)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week was the final score 6–26?
### Context:
CREATE TABLE table_name_99 (week VARCHAR, final_score VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_99 WHERE final_score = "6–26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the host team when the Miami Dolphins were the visiting team?
### Context:
CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR) [/INST]
### Response:
SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadium that held that game after week 15?
### Context:
CREATE TABLE table_name_28 (stadium VARCHAR, week INTEGER) [/INST]
### Response:
SELECT stadium FROM table_name_28 WHERE week > 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:
Name the most FA cup for championship of 18 and total of 19
### Context:
CREATE TABLE table_name_74 (fa_cup INTEGER, championship VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(fa_cup) FROM table_name_74 WHERE championship = 18 AND total = 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:
Name the most league cups for total more than 19 and FA cups more than 6
### Context:
CREATE TABLE table_name_38 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT MAX(league_cup) FROM table_name_38 WHERE total > 19 AND fa_cup > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score, when the Year is after 2007, and when the Country is England?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE year > 2007 AND country = "england" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latest Year, when the Venue is Lübker Golf Resort?
### Context:
CREATE TABLE table_name_16 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_16 WHERE venue = "lübker golf resort" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score, when the Venue is Lübker Golf Resort?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_37 WHERE venue = "lübker golf resort" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue, when the Winner is iain pyman?
### Context:
CREATE TABLE table_name_19 (venue VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_19 WHERE winner = "iain pyman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 final round had a first round of 20?
### Context:
CREATE TABLE table_name_22 (final_round VARCHAR, first_round VARCHAR) [/INST]
### Response:
SELECT final_round FROM table_name_22 WHERE first_round = 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What final round had a weight of 245?
### Context:
CREATE TABLE table_name_61 (final_round VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT final_round FROM table_name_61 WHERE weight = 245 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pos for the New York Knicks?
### Context:
CREATE TABLE table_name_2 (pos VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_2 WHERE team = "new york knicks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average first round for Utah Jazz team, with a weight smaller than 229?
### Context:
CREATE TABLE table_name_29 (first_round INTEGER, weight VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT AVG(first_round) FROM table_name_29 WHERE weight < 229 AND team = "utah jazz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pos with weight less than 205?
### Context:
CREATE TABLE table_name_37 (pos VARCHAR, weight INTEGER) [/INST]
### Response:
SELECT pos FROM table_name_37 WHERE weight < 205 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What GSR class is associated with a 0-4-2t type?
### Context:
CREATE TABLE table_name_49 (gsr_class VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT gsr_class FROM table_name_49 WHERE type = "0-4-2t" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manufactured fleet numbers of wlwr 2, 4, 11?
### Context:
CREATE TABLE table_name_43 (manufacturer VARCHAR, fleet_numbers VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_43 WHERE fleet_numbers = "wlwr 2, 4, 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most overall for dwight freeney with round less than 1
### Context:
CREATE TABLE table_name_8 (overall INTEGER, name VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_8 WHERE name = "dwight freeney" AND round < 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 most pick # for overall of 204
### Context:
CREATE TABLE table_name_52 (pick__number INTEGER, overall VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_52 WHERE overall = 204 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.