inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many episodes were released on DVD in the US on October 13, 2009?
### Context:
CREATE TABLE table_14855908_3 (episodes VARCHAR, region_1__us_ VARCHAR)
### Response:
### Response:
SELECT episodes FROM table_14855908_3 WHERE region_1__us_ = "October 13, 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the opponent of the game with a w 87-64 score?
### Context:
CREATE TABLE table_name_88 (opponent VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_88 WHERE score = "w 87-64"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When 3t7461 is the production code who is the director?
### Context:
CREATE TABLE table_19068566_1 (directed_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_19068566_1 WHERE production_code = "3T7461"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the position is 9th, what is the total podiums number?
### Context:
CREATE TABLE table_21795846_1 (podiums VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT COUNT(podiums) FROM table_21795846_1 WHERE position = "9th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the opponent that led to a record of 23-5?
### Context:
CREATE TABLE table_name_55 (opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_55 WHERE record = "23-5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the recipient for jamaica and award of £6,947
### Context:
CREATE TABLE table_name_94 (recipient VARCHAR, award VARCHAR, film VARCHAR)
### Response:
### Response:
SELECT recipient FROM table_name_94 WHERE award = "£6,947" AND film = "jamaica"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name of rivelino had how many highest caps?
### Context:
CREATE TABLE table_name_65 (caps INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MAX(caps) FROM table_name_65 WHERE name = "rivelino"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many ends lost when shot % is 88 and ends won are 31?
### Context:
CREATE TABLE table_name_72 (ends_lost VARCHAR, shot_pct VARCHAR, ends_won VARCHAR)
### Response:
### Response:
SELECT COUNT(ends_lost) FROM table_name_72 WHERE shot_pct = 88 AND ends_won = 31</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the segment b for s dress form
### Context:
CREATE TABLE table_15187735_10 (segment_b VARCHAR, segment_a VARCHAR)
### Response:
### Response:
SELECT segment_b FROM table_15187735_10 WHERE segment_a = "s Dress Form"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What series was Dick Johnson Racing the team?
### Context:
CREATE TABLE table_name_8 (series VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT series FROM table_name_8 WHERE team = "dick johnson racing"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different titles does the episode with production code IP02003 have?
### Context:
CREATE TABLE table_29273115_1 (title VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT COUNT(title) FROM table_29273115_1 WHERE production_code = "IP02003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the Founded which has a Affiliation of private/methodist?
### Context:
CREATE TABLE table_name_6 (founded INTEGER, affiliation VARCHAR)
### Response:
### Response:
SELECT MAX(founded) FROM table_name_6 WHERE affiliation = "private/methodist"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is every amount for weight lost if the starting weight is 97.4?
### Context:
CREATE TABLE table_24370270_10 (weight_lost__kg_ VARCHAR, starting_weight__kg_ VARCHAR)
### Response:
### Response:
SELECT weight_lost__kg_ FROM table_24370270_10 WHERE starting_weight__kg_ = "97.4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the maximum # with original airdate being march 14, 2001
### Context:
CREATE TABLE table_13956521_2 (_number INTEGER, original_airdate VARCHAR)
### Response:
### Response:
SELECT MAX(_number) FROM table_13956521_2 WHERE original_airdate = "March 14, 2001"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what Date was the Score in Final 6–3, 6–3?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, score_in_final VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_70 WHERE score_in_final = "6–3, 6–3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What point against has tries against of 77, and a lost of 16?
### Context:
CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Apogee, when Designation is Prognoz 6?
### Context:
CREATE TABLE table_name_9 (apogee VARCHAR, designation VARCHAR)
### Response:
### Response:
SELECT apogee FROM table_name_9 WHERE designation = "prognoz 6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many rounds have a chassis of thl2?
### Context:
CREATE TABLE table_name_87 (rounds VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT rounds FROM table_name_87 WHERE chassis = "thl2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show all the locations where no cinema has capacity over 800.
### Context:
CREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)
### Response:
### Response:
SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.
### Context:
CREATE TABLE wine (Name VARCHAR, Price INTEGER, Winery VARCHAR); CREATE TABLE WINE (Name VARCHAR, Price INTEGER, Winery VARCHAR)
### Response:
### Response:
SELECT DISTINCT Name FROM WINE WHERE Price > (SELECT MIN(Price) FROM wine WHERE Winery = "John Anthony")</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Artist has a Record label of vertigo?
### Context:
CREATE TABLE table_name_86 (artist VARCHAR, record_label VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_86 WHERE record_label = "vertigo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who are the customers that had more than 1 policy? List the customer details and id.
### Context:
CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR, Customer_id VARCHAR); CREATE TABLE Customer_Policies (Customer_id VARCHAR)
### Response:
### Response:
SELECT T1.customer_details, T1.customer_id FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.Customer_id = T2.Customer_id GROUP BY T1.customer_id HAVING COUNT(*) > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the venue established after 1948?
### Context:
CREATE TABLE table_name_77 (venue VARCHAR, established INTEGER)
### Response:
### Response:
SELECT venue FROM table_name_77 WHERE established > 1948</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Place has a Player of bernhard langer?
### Context:
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_49 WHERE player = "bernhard langer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?
### Context:
CREATE TABLE table_name_48 (melamine_content_mg_kg_ INTEGER, producer VARCHAR, samples_failed VARCHAR)
### Response:
### Response:
SELECT MAX(melamine_content_mg_kg_) FROM table_name_48 WHERE producer = "guangzhou jinding dairy products factory" AND samples_failed > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the home team on April 13, 2008 when Itabuna was the away team?
### Context:
CREATE TABLE table_name_80 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_80 WHERE date = "april 13, 2008" AND away_team = "itabuna"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many premio are there when "Artist of the Year" was the categoria?
### Context:
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)
### Response:
### Response:
SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number has the builder ruston hornsby, the date 1961, and the name Topsy?
### Context:
CREATE TABLE table_name_10 (number VARCHAR, name VARCHAR, builder VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(number) FROM table_name_10 WHERE builder = "ruston hornsby" AND date = 1961 AND name = "topsy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the difficulty of the athens circuit?
### Context:
CREATE TABLE table_24463470_1 (difficulty VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT difficulty FROM table_24463470_1 WHERE circuit = "Athens"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for the home team of Essendon?
### Context:
CREATE TABLE table_name_71 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_71 WHERE home_team = "essendon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, partner VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_57 WHERE partner = "marcella mesker" AND score = "0–6, 2–6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the Constructor when the Grid was 2?
### Context:
CREATE TABLE table_name_63 (constructor VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_63 WHERE grid = 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the film released that a less than 5038 production number and was of the character Bosko?
### Context:
CREATE TABLE table_name_21 (release_date VARCHAR, production_num VARCHAR, characters VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_21 WHERE production_num < 5038 AND characters = "bosko"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Dutch waord for høvd / høvur?
### Context:
CREATE TABLE table_name_68 (dutch VARCHAR, Groningen VARCHAR, høvd VARCHAR, høvur VARCHAR)
### Response:
### Response:
SELECT dutch FROM table_name_68 WHERE LOW_GERMAN(Groningen) = høvd / høvur</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year did they finish 1st, southern?
### Context:
CREATE TABLE table_12002388_1 (year INTEGER, reg_season VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score on 2 October 2011?
### Context:
CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_72 WHERE date = "2 october 2011"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the election with an outcome of ndc opposition and 2,728,241 votes?
### Context:
CREATE TABLE table_name_63 (election VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR)
### Response:
### Response:
SELECT election FROM table_name_63 WHERE outcome_of_election = "ndc opposition" AND number_of_votes = "2,728,241"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the Loss for the game that had a 22-24 record?
### Context:
CREATE TABLE table_name_24 (loss VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_24 WHERE record = "22-24"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Surface of the match against Yaroslava Shvedova?
### Context:
CREATE TABLE table_name_46 (surface VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_46 WHERE opponent_in_the_final = "yaroslava shvedova"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE STUDIO WITH THE TITLE MASK?
### Context:
CREATE TABLE table_name_41 (studio VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT studio FROM table_name_41 WHERE title = "mask"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Best Feature Film at the Macabro Film Festival?
### Context:
CREATE TABLE table_name_24 (result VARCHAR, award VARCHAR, organization VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_24 WHERE award = "best feature film" AND organization = "macabro film festival"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the date when the home is st. louis?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_30 WHERE home = "st. louis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which country is Jim Les from?
### Context:
CREATE TABLE table_11545282_12 (nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_11545282_12 WHERE player = "Jim Les"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest number of points for a match less than 12?
### Context:
CREATE TABLE table_name_6 (points INTEGER, match INTEGER)
### Response:
### Response:
SELECT MIN(points) FROM table_name_6 WHERE match < 12</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest number of races competed in with 11 podiums?
### Context:
CREATE TABLE table_25539502_1 (races INTEGER, podiums VARCHAR)
### Response:
### Response:
SELECT MIN(races) FROM table_25539502_1 WHERE podiums = 11</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the number for viewers being 1.87
### Context:
CREATE TABLE table_19229713_4 (_number INTEGER, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT MAX(_number) FROM table_19229713_4 WHERE us_viewers__million_ = "1.87"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue does the soccer team Pennsylvania Stoners play in?
### Context:
CREATE TABLE table_name_55 (venue VARCHAR, sport VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_55 WHERE sport = "soccer" AND club = "pennsylvania stoners"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest championship when the FA Cup is 0 and the League Cup is 1?
### Context:
CREATE TABLE table_name_69 (championship INTEGER, fa_cup VARCHAR, league_cup VARCHAR)
### Response:
### Response:
SELECT MIN(championship) FROM table_name_69 WHERE fa_cup = 0 AND league_cup = 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For an apparent magnitude greater than 11.8 what Right ascension value is assigned?
### Context:
CREATE TABLE table_name_29 (right_ascension___j2000__ VARCHAR, apparent_magnitude INTEGER)
### Response:
### Response:
SELECT right_ascension___j2000__ FROM table_name_29 WHERE apparent_magnitude > 11.8</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which long version was remixed in 1986?
### Context:
CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
### Response:
### Response:
SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the nepalese is 37.1%, what is the working force of HK?
### Context:
CREATE TABLE table_27257896_2 (working_force_of_hk VARCHAR, nepalese VARCHAR)
### Response:
### Response:
SELECT working_force_of_hk FROM table_27257896_2 WHERE nepalese = "37.1%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the lowest bronze for panama and total larger than 8
### Context:
CREATE TABLE table_name_84 (bronze INTEGER, nation VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT MIN(bronze) FROM table_name_84 WHERE nation = "panama" AND total > 8</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Skip when the Third was john morris?
### Context:
CREATE TABLE table_name_61 (skip VARCHAR, third VARCHAR)
### Response:
### Response:
SELECT skip FROM table_name_61 WHERE third = "john morris"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
which is the biggest production code?
### Context:
CREATE TABLE table_22580855_1 (production_code INTEGER)
### Response:
### Response:
SELECT MAX(production_code) FROM table_22580855_1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Circuit, when Series is ASTC Round 4?
### Context:
CREATE TABLE table_name_26 (circuit VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_name_26 WHERE series = "astc round 4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Place has a Player of tony jacklin?
### Context:
CREATE TABLE table_name_28 (place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_28 WHERE player = "tony jacklin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the team for june 16 jeff gordon
### Context:
CREATE TABLE table_2150776_1 (team VARCHAR, date VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT team FROM table_2150776_1 WHERE date = "June 16" AND driver = "Jeff Gordon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Team 1 where Team 2 is gombe united f.c.?
### Context:
CREATE TABLE table_name_23 (team_1 VARCHAR, team_2 VARCHAR)
### Response:
### Response:
SELECT team_1 FROM table_name_23 WHERE team_2 = "gombe united f.c."</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the latest year that Cicely Tyson is the Golden Globe Award actor?
### Context:
CREATE TABLE table_name_76 (year INTEGER, actor VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_76 WHERE actor = "cicely tyson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what's the country with highest monthly inflation rate being 3.13 × 10 8 %
### Context:
CREATE TABLE table_13681_2 (country VARCHAR, highest_monthly_inflation_rate VARCHAR)
### Response:
### Response:
SELECT country FROM table_13681_2 WHERE highest_monthly_inflation_rate = "3.13 × 10 8 %"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the 2012 for when 2010 is q3
### Context:
CREATE TABLE table_name_94 (Id VARCHAR)
### Response:
### Response:
SELECT 2012 FROM table_name_94 WHERE 2010 = "q3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of people injured by all perpetrators?
### Context:
CREATE TABLE perpetrator (Injured INTEGER)
### Response:
### Response:
SELECT AVG(Injured) FROM perpetrator</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the game with the golden state warriors?
### Context:
CREATE TABLE table_name_37 (game VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT game FROM table_name_37 WHERE team = "golden state warriors"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the runner(s)-up for the Feb 18, 1996 tournament?
### Context:
CREATE TABLE table_name_39 (runner_s__up VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT runner_s__up FROM table_name_39 WHERE date = "feb 18, 1996"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the date when the location is Berlin?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_76 WHERE location = "berlin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the 1999 with 2011 of 2r
### Context:
CREATE TABLE table_name_3 (Id VARCHAR)
### Response:
### Response:
SELECT 1999 FROM table_name_3 WHERE 2011 = "2r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the author for peri and april 2010
### Context:
CREATE TABLE table_1620397_2 (author VARCHAR, featuring VARCHAR, released VARCHAR)
### Response:
### Response:
SELECT author FROM table_1620397_2 WHERE featuring = "Peri" AND released = "April 2010"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the lowest Green with a Year larger than 2010, and a Labour larger than 29? Question 3
### Context:
CREATE TABLE table_name_82 (green INTEGER, year VARCHAR, labour VARCHAR)
### Response:
### Response:
SELECT MIN(green) FROM table_name_82 WHERE year > 2010 AND labour > 29</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which school has a mascot of the Panthers?
### Context:
CREATE TABLE table_name_25 (school VARCHAR, mascot VARCHAR)
### Response:
### Response:
SELECT school FROM table_name_25 WHERE mascot = "panthers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What kind of surface was the Tournament at Sunderland played on?
### Context:
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_32 WHERE tournament = "sunderland"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the attendance was 1568, who was man of the match?
### Context:
CREATE TABLE table_17120964_7 (man_of_the_match VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT man_of_the_match FROM table_17120964_7 WHERE attendance = 1568</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the cyrillic name for melenci
### Context:
CREATE TABLE table_2562572_35 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
### Response:
### Response:
SELECT cyrillic_name_other_names FROM table_2562572_35 WHERE settlement = "Melenci"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the President has a Media Officer of pete marshall/ nazar striletski?
### Context:
CREATE TABLE table_name_25 (president VARCHAR, media_officer VARCHAR)
### Response:
### Response:
SELECT president FROM table_name_25 WHERE media_officer = "pete marshall/ nazar striletski"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?
### Context:
CREATE TABLE table_name_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many writers are listed for the episode with a production code of 5008?
### Context:
CREATE TABLE table_17482534_1 (written_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average reaction for brigitte foster-hylton after heat 1?
### Context:
CREATE TABLE table_name_53 (reaction INTEGER, heat VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT AVG(reaction) FROM table_name_53 WHERE heat > 1 AND name = "brigitte foster-hylton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What denomination was produced in 2006?
### Context:
CREATE TABLE table_name_80 (denomination VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT denomination FROM table_name_80 WHERE year = 2006</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many rounds in the event when record is 1-5?
### Context:
CREATE TABLE table_name_7 (round VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_7 WHERE record = "1-5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was pick 16 and before round 10?
### Context:
CREATE TABLE table_name_30 (player VARCHAR, round VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_30 WHERE round < 10 AND pick = 16</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show all locations with only 1 station.
### Context:
CREATE TABLE station (LOCATION VARCHAR)
### Response:
### Response:
SELECT LOCATION FROM station GROUP BY LOCATION HAVING COUNT(*) = 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way?
### Context:
CREATE TABLE table_name_57 (points_gained INTEGER, fans_took VARCHAR, miles_ VARCHAR, one_way VARCHAR)
### Response:
### Response:
SELECT MAX(points_gained) FROM table_name_57 WHERE fans_took = "907" AND miles_[one_way] > 44.9</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
At what latitude did the shock at time 13:10:02 occur?
### Context:
CREATE TABLE table_25675509_1 (latitude VARCHAR, time__utc_ VARCHAR)
### Response:
### Response:
SELECT latitude FROM table_25675509_1 WHERE time__utc_ = "13:10:02"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Team, when High Rebounds is "Carl Landry (11)"?
### Context:
CREATE TABLE table_name_78 (team VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_78 WHERE high_rebounds = "carl landry (11)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which network returns april 3, and a Show of shop 'til you drop?
### Context:
CREATE TABLE table_name_35 (new_returning_same_network VARCHAR, returning VARCHAR, show VARCHAR)
### Response:
### Response:
SELECT new_returning_same_network FROM table_name_35 WHERE returning = "april 3" AND show = "shop 'til you drop"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what was the total for the Wolverhampton Wanderers?
### Context:
CREATE TABLE table_name_61 (league_goals VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT league_goals FROM table_name_61 WHERE club = "wolverhampton wanderers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of metres for the Dzelzavas Street 74?
### Context:
CREATE TABLE table_name_61 (metres INTEGER, name VARCHAR)
### Response:
### Response:
SELECT AVG(metres) FROM table_name_61 WHERE name = "dzelzavas street 74"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Genre has a Year larger than 1999, and a Game of tony hawk's pro skater 2?
### Context:
CREATE TABLE table_name_90 (genre VARCHAR, year VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT genre FROM table_name_90 WHERE year > 1999 AND game = "tony hawk's pro skater 2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the game number when the location attendance was the Palace of Auburn Hills 15,166?
### Context:
CREATE TABLE table_27755603_10 (game INTEGER, location_attendance VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_27755603_10 WHERE location_attendance = "The Palace of Auburn Hills 15,166"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the average number of customers cross all banks.
### Context:
CREATE TABLE bank (no_of_customers INTEGER)
### Response:
### Response:
SELECT AVG(no_of_customers) FROM bank</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What title was released in 1971?
### Context:
CREATE TABLE table_name_54 (title VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_54 WHERE year = 1971</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many customers are there?
### Context:
CREATE TABLE bank (no_of_customers INTEGER)
### Response:
### Response:
SELECT SUM(no_of_customers) FROM bank</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the title of book number 8?
### Context:
CREATE TABLE table_2950964_1 (title VARCHAR, _number VARCHAR)
### Response:
### Response:
SELECT title FROM table_2950964_1 WHERE _number = "8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the nickname of the students of the school that joined the Conference in 2010?
### Context:
CREATE TABLE table_1973842_2 (nickname VARCHAR, joined VARCHAR)
### Response:
### Response:
SELECT nickname FROM table_1973842_2 WHERE joined = 2010</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Commissioned date of the ship in NVR Page MCM02?
### Context:
CREATE TABLE table_name_29 (commissioned VARCHAR, nvr_page VARCHAR)
### Response:
### Response:
SELECT commissioned FROM table_name_29 WHERE nvr_page = "mcm02"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total enrollment of the aa IHSAA class?
### Context:
CREATE TABLE table_name_61 (enrollment VARCHAR, ihsaa_class VARCHAR)
### Response:
### Response:
SELECT COUNT(enrollment) FROM table_name_61 WHERE ihsaa_class = "aa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Year has a Rank of 25?
### Context:
CREATE TABLE table_name_64 (year VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_64 WHERE rank = "25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the mean evening gown number when the average is 8.686?
### Context:
CREATE TABLE table_name_32 (evening_gown INTEGER, average VARCHAR)
### Response:
### Response:
SELECT AVG(evening_gown) FROM table_name_32 WHERE average = 8.686</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On which date was the game played on Week 13?
### Context:
CREATE TABLE table_name_22 (date VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_22 WHERE week = 13</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which driver's grid is 6?
### Context:
CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_79 WHERE grid = "6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?
### Context:
CREATE TABLE table_name_44 (losses INTEGER, wins VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT AVG(losses) FROM table_name_44 WHERE wins < 4 AND against > 1728</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.