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:
List the name of the company that produced more than one phone model.
### Context:
CREATE TABLE phone (Company_name VARCHAR)
### Response:
### Response:
SELECT Company_name FROM phone GROUP BY Company_name 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 Canada singles in 1979 with a US A.C. of 24?
### Context:
CREATE TABLE table_name_75 (canada_singles VARCHAR, year VARCHAR, us_ac VARCHAR)
### Response:
### Response:
SELECT canada_singles FROM table_name_75 WHERE year = 1979 AND us_ac = "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 class of 2009?
### Context:
CREATE TABLE table_name_26 (class VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_26 WHERE year = 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:
If the founding university is in Charlotte, NC, what is the nickname?
### Context:
CREATE TABLE table_2538117_7 (nickname VARCHAR, founding_university VARCHAR)
### Response:
### Response:
SELECT nickname FROM table_2538117_7 WHERE founding_university = "Charlotte, NC"</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 conference when Ferris State is the championship game opponent?
### Context:
CREATE TABLE table_22165661_3 (conference VARCHAR, championship_game_opponent VARCHAR)
### Response:
### Response:
SELECT conference FROM table_22165661_3 WHERE championship_game_opponent = "Ferris State"</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 Opponent was played on 1991-10-13?
### Context:
CREATE TABLE table_name_52 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_52 WHERE date = "1991-10-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 Position has a Pick of 11 (via calgary)?
### Context:
CREATE TABLE table_name_8 (position VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_8 WHERE pick = "11 (via calgary)"</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:
List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.
### Context:
CREATE TABLE Dogs (name VARCHAR, age VARCHAR, weight VARCHAR, abandoned_yn VARCHAR)
### Response:
### Response:
SELECT name, age, weight FROM Dogs WHERE abandoned_yn = 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 team swash when the team guest captain was gail porter?
### Context:
CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR)
### Response:
### Response:
SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = "Gail Porter"</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 ale is the main sponsor who is the secondary sponsor?
### Context:
CREATE TABLE table_187239_1 (secondary_sponsor VARCHAR, main_sponsor VARCHAR)
### Response:
### Response:
SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Ale"</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 actor made a film in 1957?
### Context:
CREATE TABLE table_name_30 (name VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_30 WHERE year = "1957"</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 engine configuration $notes 0-100km/h for the engine type b5244 t2?
### Context:
CREATE TABLE table_1147705_1 (engine_configuration_ VARCHAR, _notes_0_100km_h VARCHAR, engine_type VARCHAR)
### Response:
### Response:
SELECT engine_configuration_ & _notes_0_100km_h FROM table_1147705_1 WHERE engine_type = "B5244 T2"</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 that has a crew chief Gary Ritter?
### Context:
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
### Response:
### Response:
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"</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 horizontal 0 for 明弦(ry日月)
### Context:
CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, hypotenuse_0_c VARCHAR)
### Response:
### Response:
SELECT horizontal_0_a FROM table_25519358_1 WHERE hypotenuse_0_c = "明弦(RY日月)"</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 inauguration of the President with an Age at inauguration of 73years, 262days?
### Context:
CREATE TABLE table_name_10 (date_of_inauguration VARCHAR, age_at_inauguration VARCHAR)
### Response:
### Response:
SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days"</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 wheel arrangement when the year made is 1881?
### Context:
CREATE TABLE table_name_78 (wheel_arrangement VARCHAR, year_made VARCHAR)
### Response:
### Response:
SELECT wheel_arrangement FROM table_name_78 WHERE year_made = "1881"</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:
In what grid did jim clark drive in?
### Context:
CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT grid FROM table_name_21 WHERE driver = "jim clark"</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 Earnings ($) is the lowest one that has a Rank smaller than 1?
### Context:
CREATE TABLE table_name_12 (earnings___ INTEGER, rank INTEGER)
### Response:
### Response:
SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 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:
In which city is the network latv licensed?
### Context:
CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR)
### Response:
### Response:
SELECT city_of_license FROM table_name_93 WHERE network = "latv"</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 greatest 2007 when the change 06-07 was 14.7%?
### Context:
CREATE TABLE table_name_61 (change_06_07 VARCHAR)
### Response:
### Response:
SELECT MAX(2007) FROM table_name_61 WHERE change_06_07 = "14.7%"</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 did they play in Boston Garden with a record of 22-4?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, location VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_24 WHERE location = "boston garden" AND record = "22-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 municipality where the area is 73?
### Context:
CREATE TABLE table_1691800_2 (municipality VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT municipality FROM table_1691800_2 WHERE area__km²_ = 73</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 position with college being usc
### Context:
CREATE TABLE table_14655985_1 (position VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT position FROM table_14655985_1 WHERE college = "USC"</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 feature type name of feature AirCon?
### Context:
CREATE TABLE Other_Available_Features (feature_type_code VARCHAR, feature_name VARCHAR); CREATE TABLE Ref_Feature_Types (feature_type_name VARCHAR, feature_type_code VARCHAR)
### Response:
### Response:
SELECT T2.feature_type_name FROM Other_Available_Features AS T1 JOIN Ref_Feature_Types AS T2 ON T1.feature_type_code = T2.feature_type_code WHERE T1.feature_name = "AirCon"</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 score was 690.3?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_77 WHERE score = "690.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:
Name the player that is 1.85 m
### Context:
CREATE TABLE table_23670057_6 (player VARCHAR, height__m_ VARCHAR)
### Response:
### Response:
SELECT player FROM table_23670057_6 WHERE height__m_ = "1.85"</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 the minimum, maximum, average price for all products.
### Context:
CREATE TABLE products (product_price INTEGER)
### Response:
### Response:
SELECT MIN(product_price), MAX(product_price), AVG(product_price) FROM products</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 method for a record of 4-2 and round smaller than 3?
### Context:
CREATE TABLE table_name_78 (method VARCHAR, round VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT method FROM table_name_78 WHERE round < 3 AND record = "4-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:
Which bike had fewer than 23 laps and a grid number of 4?
### Context:
CREATE TABLE table_name_15 (bike VARCHAR, laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT bike FROM table_name_15 WHERE laps < 23 AND grid = 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:
Name the year for reportaje a la muerte
### Context:
CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = "Reportaje a la muerte"</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:
During the voting order 11, when the commentator was pierre tchernia, who was the spokesperson?
### Context:
CREATE TABLE table_name_7 (spokespersons VARCHAR, commentator VARCHAR, voting_order VARCHAR)
### Response:
### Response:
SELECT spokespersons FROM table_name_7 WHERE commentator = "pierre tchernia" AND voting_order = 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:
What is the label for CAD 2014 CD?
### Context:
CREATE TABLE table_name_57 (label VARCHAR, catalogue__number VARCHAR)
### Response:
### Response:
SELECT label FROM table_name_57 WHERE catalogue__number = "cad 2014 cd"</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 audience for Episode 21?
### Context:
CREATE TABLE table_name_36 (audience VARCHAR, episode VARCHAR)
### Response:
### Response:
SELECT audience FROM table_name_36 WHERE episode = "21"</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 to par for the player with score of 67-67=134?
### Context:
CREATE TABLE table_name_53 (to_par VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_53 WHERE score = 67 - 67 = 134</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 id and location of circuits that belong to France or Belgium?
### Context:
CREATE TABLE circuits (circuitid VARCHAR, LOCATION VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT circuitid, LOCATION FROM circuits WHERE country = "France" OR country = "Belgium"</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 City has a Stadium of stadio artemio franchi, florence?
### Context:
CREATE TABLE table_name_80 (city VARCHAR, stadium VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_80 WHERE stadium = "stadio artemio franchi, florence"</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 nationality of the player with a pick larger than 21 from the College of the Sequoias?
### Context:
CREATE TABLE table_name_14 (nationality VARCHAR, pick VARCHAR, college_high_school_club VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_14 WHERE pick > 21 AND college_high_school_club = "college of the sequoias"</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 Arnold Palmer's score in the tournamnet?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_5 WHERE player = "arnold palmer"</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:
In what location was the fastest time 1:37.071s?
### Context:
CREATE TABLE table_14884844_2 (location VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location FROM table_14884844_2 WHERE record = "1:37.071s"</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 GPU model when the L3 cache is standard power?
### Context:
CREATE TABLE table_name_74 (gpu_model VARCHAR, l3_cache VARCHAR)
### Response:
### Response:
SELECT gpu_model FROM table_name_74 WHERE l3_cache = "standard power"</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 much gold did South Korea get?
### Context:
CREATE TABLE table_name_49 (gold INTEGER, nation VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_49 WHERE nation = "south korea"</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 D 45 O with D 44 O majority →
### Context:
CREATE TABLE table_name_5 (d_45_o VARCHAR, d_44_o VARCHAR)
### Response:
### Response:
SELECT d_45_o FROM table_name_5 WHERE d_44_o = "majority →"</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 Royal house is named Elah?
### Context:
CREATE TABLE table_name_34 (royal_house VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT royal_house FROM table_name_34 WHERE name = "elah"</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 money for trevor immelman?
### Context:
CREATE TABLE table_name_77 (money___$__ VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT money___$__ FROM table_name_77 WHERE player = "trevor immelman"</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 success where date of completion is september 28, 2007
### Context:
CREATE TABLE table_12078626_1 (success VARCHAR, date_of_completion VARCHAR)
### Response:
### Response:
SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"</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 Matches has champion Rank of 5?
### Context:
CREATE TABLE table_name_16 (matches_as_champion INTEGER, rank VARCHAR)
### Response:
### Response:
SELECT MAX(matches_as_champion) FROM table_name_16 WHERE rank = 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:
Which tournament had a 2012 of a and a 2011 of 2r?
### Context:
CREATE TABLE table_name_25 (tournament VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_25 WHERE 2012 = "a" AND 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:
Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?
### Context:
CREATE TABLE table_name_82 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_82 WHERE bronze < 1 AND total > 1 AND silver = 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 position did Marty Gateman play?
### Context:
CREATE TABLE table_1473672_5 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_1473672_5 WHERE player = "Marty Gateman"</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 score for opponent of holy cross and result of push
### Context:
CREATE TABLE table_name_3 (score VARCHAR, opponent VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_3 WHERE opponent = "holy cross" AND result = "push"</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 Source with a Norris that is 7%?
### Context:
CREATE TABLE table_name_45 (source VARCHAR, norris VARCHAR)
### Response:
### Response:
SELECT source FROM table_name_45 WHERE norris = "7%"</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 Rank has a Finish of 8?
### Context:
CREATE TABLE table_name_11 (rank VARCHAR, finish VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_11 WHERE finish = "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 country has at most 3 stadiums listed?
### Context:
CREATE TABLE stadium (country VARCHAR)
### Response:
### Response:
SELECT country FROM stadium GROUP BY country HAVING COUNT(*) <= 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:
How many overs bowled for muttiah muralitharan?
### Context:
CREATE TABLE table_15700367_6 (overs_bowled VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT COUNT(overs_bowled) FROM table_15700367_6 WHERE name = "Muttiah Muralitharan"</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 class of the HMS Heartsease?
### Context:
CREATE TABLE table_name_75 (class VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_75 WHERE name = "hms heartsease"</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 Country of the T8 Place Player with a Score of 68-74=142?
### Context:
CREATE TABLE table_name_99 (country VARCHAR, place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_99 WHERE place = "t8" AND score = 68 - 74 = 142</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 in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?
### Context:
CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_name_98 WHERE home = "penguins" AND record = "14–19–6" AND points < 34</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 League has a Regular Season of 2nd, southeast?
### Context:
CREATE TABLE table_name_58 (league VARCHAR, regular_season VARCHAR)
### Response:
### Response:
SELECT league FROM table_name_58 WHERE regular_season = "2nd, southeast"</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 To par of the T6 Place Player with a Score of 68-69-70=207?
### Context:
CREATE TABLE table_name_77 (to_par VARCHAR, place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_77 WHERE place = "t6" AND score = 68 - 69 - 70 = 207</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 round was the draft pick of tight end with an Overall larger than 21?
### Context:
CREATE TABLE table_name_68 (round VARCHAR, position VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_68 WHERE position = "tight end" AND overall > 21</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 train name that has a destination of Tuticorin?
### Context:
CREATE TABLE table_21716139_1 (train_name VARCHAR, destination VARCHAR)
### Response:
### Response:
SELECT train_name FROM table_21716139_1 WHERE destination = "Tuticorin"</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 goals have more than 38 played and more than 9 draws?
### Context:
CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38</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 students who have pets , how many pets does each student have ? list their ids instead of names .
### Context:
CREATE TABLE has_pet (stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
### Response:
### Response:
SELECT COUNT(*), t1.stuid FROM student AS t1 JOIN has_pet AS t2 ON t1.stuid = t2.stuid GROUP BY t1.stuid</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 team #2 in the round where team $1 is Ilisiakos?
### Context:
CREATE TABLE table_19130829_4 (team__number2 VARCHAR, team__number1 VARCHAR)
### Response:
### Response:
SELECT team__number2 FROM table_19130829_4 WHERE team__number1 = "Ilisiakos"</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:
Where is longview high school
### Context:
CREATE TABLE table_11677691_8 (hometown VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677691_8 WHERE school = "Longview High school"</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 candidates ran in the election that included john shelley?
### Context:
CREATE TABLE table_1341973_6 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341973_6 WHERE incumbent = "John Shelley"</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:
Give me all the information about hiring.
### Context:
CREATE TABLE hiring (Id VARCHAR)
### Response:
### Response:
SELECT * FROM hiring</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 Redline RPM of engines with engine code M57TUD30, made after 2002?
### Context:
CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002</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 colleges have the NFL Team Buffalo Bills?
### Context:
CREATE TABLE table_2508633_11 (college VARCHAR, nfl_team VARCHAR)
### Response:
### Response:
SELECT COUNT(college) FROM table_2508633_11 WHERE nfl_team = "Buffalo Bills"</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 are the Chinese characters for the word that has a Rōmaji of chāshū?
### Context:
CREATE TABLE table_name_61 (chinese VARCHAR, rōmaji VARCHAR)
### Response:
### Response:
SELECT chinese FROM table_name_61 WHERE rōmaji = "chāshū"</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 had playoffs of champion?
### Context:
CREATE TABLE table_name_27 (year INTEGER, playoffs VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_27 WHERE playoffs = "champion"</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 match points did gran parma lost
### Context:
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR)
### Response:
### Response:
SELECT match_points FROM table_27987767_2 WHERE losers = "Gran Parma"</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 directed episode 21?
### Context:
CREATE TABLE table_23958944_5 (directed_by VARCHAR, no_by_season VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_23958944_5 WHERE no_by_season = 21</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 apps when the name is smith?
### Context:
CREATE TABLE table_name_24 (apps INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MIN(apps) FROM table_name_24 WHERE name = "smith"</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 districts have an incumbent first elected in 1940?
### Context:
CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR)
### Response:
### Response:
SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940</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 Margin of victory has a Runner(s)-up of dave barr?
### Context:
CREATE TABLE table_name_1 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
### Response:
### Response:
SELECT margin_of_victory FROM table_name_1 WHERE runner_s__up = "dave barr"</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 pick number was the player that was picked by Edmonton?
### Context:
CREATE TABLE table_28059992_5 (pick__number VARCHAR, cfl_team VARCHAR)
### Response:
### Response:
SELECT pick__number FROM table_28059992_5 WHERE cfl_team = "Edmonton"</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 Winner of the SS5 Stage?
### Context:
CREATE TABLE table_name_54 (winner VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_54 WHERE stage = "ss5"</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 wins for mike hill ranked below 4?
### Context:
CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 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 time did the game featuring the Detroit Lions at Three Rivers Stadium occur?
### Context:
CREATE TABLE table_name_38 (time___et__ VARCHAR, location VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT time___et__ FROM table_name_38 WHERE location = "three rivers stadium" AND opponent = "detroit lions"</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 percentage voted for Tom Horner according to the poll source with sampling error of 2.5%?
### Context:
CREATE TABLE table_20032301_3 (tom_horner__i_ VARCHAR, sampling_error VARCHAR)
### Response:
### Response:
SELECT tom_horner__i_ FROM table_20032301_3 WHERE sampling_error = "2.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 miles for jeff gordon
### Context:
CREATE TABLE table_2144863_1 (miles__km_ VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT miles__km_ FROM table_2144863_1 WHERE 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 the percentage of all females that are literate people have a percentage of 68.74?
### Context:
CREATE TABLE table_14598_9 (females___percentage_ VARCHAR, literate_persons___percentage_ VARCHAR)
### Response:
### Response:
SELECT females___percentage_ FROM table_14598_9 WHERE literate_persons___percentage_ = "68.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:
How many items appear in the viewers column when the draw is 2?
### Context:
CREATE TABLE table_27994983_8 (viewers VARCHAR, draw VARCHAR)
### Response:
### Response:
SELECT COUNT(viewers) FROM table_27994983_8 WHERE draw = 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 are all the labels?
### Context:
CREATE TABLE Albums (label VARCHAR)
### Response:
### Response:
SELECT DISTINCT label FROM Albums</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 long-term C PK when the short-term C PK is 2.00?
### Context:
CREATE TABLE table_222448_1 (long_term_c_pk VARCHAR, short_term_c_pk VARCHAR)
### Response:
### Response:
SELECT long_term_c_pk FROM table_222448_1 WHERE short_term_c_pk = "2.00"</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 round number of the match with Michael Buell as the opponent?
### Context:
CREATE TABLE table_name_66 (round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_66 WHERE opponent = "michael buell"</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 away team has a Tie no of 14?
### Context:
CREATE TABLE table_name_67 (away_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_67 WHERE tie_no = "14"</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 fastest lap for the european grand prix?
### Context:
CREATE TABLE table_1132588_3 (fastest_lap VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_1132588_3 WHERE grand_prix = "European grand_prix"</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 2003 value with 2r in 2008 and 1r in 2011?
### Context:
CREATE TABLE table_name_59 (Id VARCHAR)
### Response:
### Response:
SELECT 2003 FROM table_name_59 WHERE 2008 = "2r" AND 2011 = "1r"</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 release date of "New Worlds for Old"?
### Context:
CREATE TABLE table_27932399_1 (release_date VARCHAR, release_title VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_27932399_1 WHERE release_title = "New Worlds For Old"</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 Appointed by that has the Title of Ambassador Extraordinary and Plenipotentiary and has a Representative of Spruille Braden?
### Context:
CREATE TABLE table_name_55 (appointed_by VARCHAR, title VARCHAR, representative VARCHAR)
### Response:
### Response:
SELECT appointed_by FROM table_name_55 WHERE title = "ambassador extraordinary and plenipotentiary" AND representative = "spruille braden"</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 31901 is the population what is the county?
### Context:
CREATE TABLE table_23248420_1 (county VARCHAR, population VARCHAR)
### Response:
### Response:
SELECT county FROM table_23248420_1 WHERE population = 31901</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 lowest February for less than 57 points?
### Context:
CREATE TABLE table_name_32 (february INTEGER, points INTEGER)
### Response:
### Response:
SELECT MIN(february) FROM table_name_32 WHERE points < 57</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 Score has a Place of t2?
### Context:
CREATE TABLE table_name_95 (score VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_95 WHERE place = "t2"</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 name of the captain when teh shirt sponsor is n/a?
### Context:
CREATE TABLE table_27631756_2 (captain VARCHAR, shirt_sponsor VARCHAR)
### Response:
### Response:
SELECT captain FROM table_27631756_2 WHERE shirt_sponsor = "N/A"</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 team after 2008, with less than 2 podium finished and more than 0 FLAPS, had the lowest numberof races?
### Context:
CREATE TABLE table_name_67 (races INTEGER, season VARCHAR, podiums VARCHAR, flaps VARCHAR)
### Response:
### Response:
SELECT MIN(races) FROM table_name_67 WHERE podiums < 2 AND flaps > 0 AND season > 2008</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 IRST figures for the show that premiered on Canale 5 (2006)?
### Context:
CREATE TABLE table_28803803_1 (irst VARCHAR, original_channel VARCHAR)
### Response:
### Response:
SELECT COUNT(irst) FROM table_28803803_1 WHERE original_channel = "Canale 5 (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:
What is the final result of the team that has Simara as No.5?
### Context:
CREATE TABLE table_name_11 (final VARCHAR, no5 VARCHAR)
### Response:
### Response:
SELECT final FROM table_name_11 WHERE no5 = "simara"</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 second's third is Jean-Michel Arsenault?
### Context:
CREATE TABLE table_name_91 (second VARCHAR, third VARCHAR)
### Response:
### Response:
SELECT second FROM table_name_91 WHERE third = "jean-michel arsenault"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.