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:
What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?
### Context:
CREATE TABLE table_12592074_1 (namesake VARCHAR, commissioned_or_completed_ VARCHAR, _ VARCHAR)
### Response:
### Response:
SELECT namesake FROM table_12592074_1 WHERE commissioned_or_completed_ * _ = "16 April 1864"</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 low score for the jaguar r3 chasis?
### Context:
CREATE TABLE table_name_90 (points INTEGER, chassis VARCHAR)
### Response:
### Response:
SELECT MIN(points) FROM table_name_90 WHERE chassis = "jaguar r3"</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:
Of the players who scored 5 three pointers, what is the highest number of games played?
### Context:
CREATE TABLE table_22824199_1 (games_played INTEGER, three_pointers VARCHAR)
### Response:
### Response:
SELECT MAX(games_played) FROM table_22824199_1 WHERE three_pointers = 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 team names have 44.5 for tumbling?
### Context:
CREATE TABLE table_22014431_3 (team_name VARCHAR, tumbling VARCHAR)
### Response:
### Response:
SELECT team_name FROM table_22014431_3 WHERE tumbling = "44.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:
What is the lease amount of touchdowns with 1318 yards?
### Context:
CREATE TABLE table_name_41 (touchdowns INTEGER, yards VARCHAR)
### Response:
### Response:
SELECT MIN(touchdowns) FROM table_name_41 WHERE yards = 1318</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 tournament was located in Colorado?
### Context:
CREATE TABLE table_name_5 (tournament VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_5 WHERE location = "colorado"</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 had the fastest lap in the Monaco Grand Prix?
### Context:
CREATE TABLE table_name_98 (fastest_lap VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_name_98 WHERE race = "monaco 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 boiler pressure for the Hesperus model?
### Context:
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"</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 footscray's home game, how much did the away team score?
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_74 WHERE home_team = "footscray"</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 during the competition in which the bowling figures were 5-33 (10)?
### Context:
CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR)
### Response:
### Response:
SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)"</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 team Philadelphia?
### Context:
CREATE TABLE table_17001658_10 (date VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT date FROM table_17001658_10 WHERE team = "Philadelphia"</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 timeslot rank when the rating is smaller than 2.6 and the share is more than 4?
### Context:
CREATE TABLE table_name_97 (rank__timeslot_ INTEGER, rating VARCHAR, share VARCHAR)
### Response:
### Response:
SELECT AVG(rank__timeslot_) FROM table_name_97 WHERE rating < 2.6 AND share > 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 city of the Museum that houses the specimen discovered by Jane Solem?
### Context:
CREATE TABLE table_name_28 (museum VARCHAR, discoverer VARCHAR)
### Response:
### Response:
SELECT museum AS city FROM table_name_28 WHERE discoverer = "jane solem"</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 of the game at the Chicago Stadium?
### Context:
CREATE TABLE table_name_67 (score VARCHAR, location_attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_67 WHERE location_attendance = "chicago stadium"</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 is Part 2, when Part 5 is on January 24, 2008?
### Context:
CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR)
### Response:
### Response:
SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 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:
What's the Area with an Output (2007) of 12,332 T?
### Context:
CREATE TABLE table_name_17 (area VARCHAR, output__2007_ VARCHAR)
### Response:
### Response:
SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t"</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 Arkady Vyatchanin's time?
### Context:
CREATE TABLE table_name_86 (time VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_86 WHERE name = "arkady vyatchanin"</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 surface did a score of 4–6 6–3 6–4 occur at the Tournament of Lahore?
### Context:
CREATE TABLE table_name_78 (surface VARCHAR, tournament VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_78 WHERE tournament = "lahore" AND score = "4–6 6–3 6–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:
During what week was the July 10 game played?
### Context:
CREATE TABLE table_21796261_4 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT week FROM table_21796261_4 WHERE date = "July 10"</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 Position, when Goal Difference is "17", and when Wins is greater than 13?
### Context:
CREATE TABLE table_name_80 (position INTEGER, goal_difference VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT AVG(position) FROM table_name_80 WHERE goal_difference = 17 AND wins > 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:
What is the date of the game that had a crowd larger than 25,000?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, crowd INTEGER)
### Response:
### Response:
SELECT date FROM table_name_3 WHERE crowd > 25 OFFSET 000</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 To par has a Year(s) won of 1964?
### Context:
CREATE TABLE table_name_89 (to_par VARCHAR, year_s__won VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_89 WHERE year_s__won = "1964"</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 company has a person that can wear clothing in 33-23-36
### Context:
CREATE TABLE table_27515452_3 (agency VARCHAR, sizes VARCHAR)
### Response:
### Response:
SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36"</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 of the race where Lineth Chepkurui placed 4th?
### Context:
CREATE TABLE table_name_12 (venue VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_12 WHERE position = "4th"</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 code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?
### Context:
CREATE TABLE table_name_14 (code INTEGER, regional_county_municipality VARCHAR, region VARCHAR)
### Response:
### Response:
SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = "le haut-saint-laurent" AND region > 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 Television Service, when HDTV is No, and when Language is Italian?
### Context:
CREATE TABLE table_name_11 (television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
### Response:
### Response:
SELECT television_service FROM table_name_11 WHERE hdtv = "no" AND language = "italian"</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 ids of the problems that are reported by the staff whose last name is Bosco.
### Context:
CREATE TABLE problems (problem_id VARCHAR, reported_by_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_last_name VARCHAR)
### Response:
### Response:
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"</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 u.s. viewers (million) have 6 as the #?
### Context:
CREATE TABLE table_2866456_1 (us_viewers__million_ VARCHAR, _number VARCHAR)
### Response:
### Response:
SELECT us_viewers__million_ FROM table_2866456_1 WHERE _number = 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 is every driver for the location of Estoril Circuit?
### Context:
CREATE TABLE table_23293785_2 (driver VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT driver FROM table_23293785_2 WHERE location = "Estoril Circuit"</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 attendance number when the result is l 41-37?
### Context:
CREATE TABLE table_name_32 (attendance VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_32 WHERE result = "l 41-37"</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 all the ids and dates of the logs for the problem whose id is 10.
### Context:
CREATE TABLE problem_log (problem_log_id VARCHAR, log_entry_date VARCHAR, problem_id VARCHAR)
### Response:
### Response:
SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10</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 when the record was 40–36?
### Context:
CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_65 WHERE record = "40–36"</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 nhl team with college/junior/club team being brandon wheat kings (wchl)
### Context:
CREATE TABLE table_1473672_9 (nhl_team VARCHAR, college_junior_club_team VARCHAR)
### Response:
### Response:
SELECT nhl_team FROM table_1473672_9 WHERE college_junior_club_team = "Brandon Wheat Kings (WCHL)"</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 Bo Bae Song?
### Context:
CREATE TABLE table_name_20 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_20 WHERE player = "bo bae song"</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 name, origin and owner of each program.
### Context:
CREATE TABLE program (name VARCHAR, origin VARCHAR, OWNER VARCHAR)
### Response:
### Response:
SELECT name, origin, OWNER FROM program</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 F/Laps have 27 Points?
### Context:
CREATE TABLE table_name_77 (f_laps VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT f_laps FROM table_name_77 WHERE points = "27"</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 finish for patani
### Context:
CREATE TABLE table_16976547_2 (finish VARCHAR, eliminated VARCHAR)
### Response:
### Response:
SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani"</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 laps are there for grid 8?
### Context:
CREATE TABLE table_name_53 (laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT laps FROM table_name_53 WHERE grid = 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 shows for 2000 when 2013 shows 3rd?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR)
### Response:
### Response:
SELECT 2000 FROM table_name_19 WHERE 2013 = "3rd"</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 most laps for corvette racing in 2004
### Context:
CREATE TABLE table_name_11 (laps INTEGER, team VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT MAX(laps) FROM table_name_11 WHERE team = "corvette racing" AND year = 2004</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 a stadium built for the St Kilda Football Club?
### Context:
CREATE TABLE table_28885977_1 (location VARCHAR, built_for VARCHAR)
### Response:
### Response:
SELECT location FROM table_28885977_1 WHERE built_for = "St Kilda Football Club"</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 the draft pick number play that was overall pick number 133?
### Context:
CREATE TABLE table_name_20 (position VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_20 WHERE overall = 133</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 lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received?
### Context:
CREATE TABLE table_22170495_7 (top_50_ranking INTEGER, title VARCHAR)
### Response:
### Response:
SELECT MIN(top_50_ranking) FROM table_22170495_7 WHERE title = "The God-Why-Don't-You-Love-Me Blues"</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 values for population(2011) correspond to a 1.40% in 2006?
### Context:
CREATE TABLE table_189893_1 (population__2011_ VARCHAR, percentage__2006_ VARCHAR)
### Response:
### Response:
SELECT COUNT(population__2011_) FROM table_189893_1 WHERE percentage__2006_ = "1.40%"</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 the celebrity finish that entered on day 1 and exited on day 19?
### Context:
CREATE TABLE table_name_16 (finished VARCHAR, exited VARCHAR, entered VARCHAR)
### Response:
### Response:
SELECT finished FROM table_name_16 WHERE exited = "day 19" AND entered = "day 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:
How many episodes did Cliff Bole directed in season 3?
### Context:
CREATE TABLE table_17861265_1 (title VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT COUNT(title) FROM table_17861265_1 WHERE directed_by = "Cliff Bole"</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 time/retired for grid 3?
### Context:
CREATE TABLE table_name_19 (time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_19 WHERE grid = 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 batting team played in Karachi?
### Context:
CREATE TABLE table_name_55 (batting_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT batting_team FROM table_name_55 WHERE venue = "karachi"</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 name of the away team that had a tie of 2?
### Context:
CREATE TABLE table_name_93 (away_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_93 WHERE tie_no = "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 is VFB Stuttgart II Team's Stadiuim?
### Context:
CREATE TABLE table_name_91 (stadium VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT stadium FROM table_name_91 WHERE team = "vfb stuttgart ii"</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 of the attributes has is cancelable and an answer of yes for bubbles?
### Context:
CREATE TABLE table_name_15 (attribute VARCHAR, cancelable VARCHAR, bubbles VARCHAR)
### Response:
### Response:
SELECT attribute FROM table_name_15 WHERE cancelable = "yes" AND bubbles = "yes"</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 time/retired of the car that started in grid 4?
### Context:
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_41 WHERE 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:
What is latitude when 2010 population is 24 and water is more than 0.319?
### Context:
CREATE TABLE table_name_24 (latitude INTEGER, pop__2010_ VARCHAR, water__sqmi_ VARCHAR)
### Response:
### Response:
SELECT MAX(latitude) FROM table_name_24 WHERE pop__2010_ = 24 AND water__sqmi_ > 0.319</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 fastest lap for piquet sports and silverstone
### Context:
CREATE TABLE table_25322130_3 (fastest_lap VARCHAR, winning_team VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_25322130_3 WHERE winning_team = "Piquet Sports" AND circuit = "Silverstone"</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 race name for june 6
### Context:
CREATE TABLE table_22669375_1 (race_name VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT race_name FROM table_22669375_1 WHERE date = "June 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:
I want the average lose for lost point more than 16 and goal difference less than 37 and point less than 43
### Context:
CREATE TABLE table_name_96 (lose INTEGER, point VARCHAR, lost_point VARCHAR, goal_difference VARCHAR)
### Response:
### Response:
SELECT AVG(lose) FROM table_name_96 WHERE lost_point > 16 AND goal_difference < 37 AND point < 43</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 champion if the national trophy/rookie is not held?
### Context:
CREATE TABLE table_25563779_4 (champion VARCHAR, national_trophy_rookie VARCHAR)
### Response:
### Response:
SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = "not held"</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 team kawasaki zx10 1000cc have?
### Context:
CREATE TABLE table_name_61 (time VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_61 WHERE team = "kawasaki zx10 1000cc"</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 points for the driver who raced in seasons 2006 – 2007 , 2009?
### Context:
CREATE TABLE table_24735155_1 (points VARCHAR, seasons VARCHAR)
### Response:
### Response:
SELECT points FROM table_24735155_1 WHERE seasons = "2006 – 2007 , 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 are the details for John Buchanan?
### Context:
CREATE TABLE table_name_71 (details VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT details FROM table_name_71 WHERE name = "john buchanan"</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 of pick 63?
### Context:
CREATE TABLE table_name_36 (round VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_36 WHERE pick = 63</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 Game had a Result of 105-95?
### Context:
CREATE TABLE table_name_86 (game VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT game FROM table_name_86 WHERE result = "105-95"</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 Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?
### Context:
CREATE TABLE table_name_98 (partner VARCHAR, opponents_in_the_final VARCHAR)
### Response:
### Response:
SELECT partner FROM table_name_98 WHERE opponents_in_the_final = "remi tezuka shuko aoyama"</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 when high points was david lee (30)
### Context:
CREATE TABLE table_23248869_8 (game INTEGER, high_points VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_23248869_8 WHERE high_points = "David Lee (30)"</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 race has D. Beadman for the jockey and a 4th place result?
### Context:
CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th"</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 district with the incumbent john nicholas?
### Context:
CREATE TABLE table_2668405_17 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_2668405_17 WHERE incumbent = "John Nicholas"</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 points have 500cc for the class, a win greater than 0, with a year after 1974?
### Context:
CREATE TABLE table_name_77 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT SUM(points) FROM table_name_77 WHERE class = "500cc" AND wins > 0 AND year > 1974</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 city is in the country of Mayotte?
### Context:
CREATE TABLE table_name_63 (city VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_63 WHERE country = "mayotte"</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 home team score that played at Kardinia Park?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"</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 state and federal when property taxes is 17,199,210
### Context:
CREATE TABLE table_11608735_3 (state_ VARCHAR, _federal VARCHAR, property_taxes VARCHAR)
### Response:
### Response:
SELECT state_ & _federal FROM table_11608735_3 WHERE property_taxes = "17,199,210"</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 bronze medals for the nation ranked above 2, and under 0 golds?
### Context:
CREATE TABLE table_name_36 (bronze VARCHAR, rank VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT COUNT(bronze) FROM table_name_36 WHERE rank < 2 AND gold < 0</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 WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03
### Context:
CREATE TABLE table_12033013_1 (written_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_12033013_1 WHERE production_code = "1ADK-03"</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 points classification for mark renshaw and team csc
### Context:
CREATE TABLE table_14856023_18 (points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
### Response:
### Response:
SELECT points_classification FROM table_14856023_18 WHERE general_classification = "Mark Renshaw" AND team_classification = "Team CSC"</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 number 7 when Olivia was number 5 and Emma was number 2?
### Context:
CREATE TABLE table_name_16 (no_7 VARCHAR, no_5 VARCHAR, no_2 VARCHAR)
### Response:
### Response:
SELECT no_7 FROM table_name_16 WHERE no_5 = "olivia" AND no_2 = "emma"</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 did Herb Williams go to?
### Context:
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT school_club_team FROM table_10015132_21 WHERE player = "Herb Williams"</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 position for the years 1998-99
### Context:
CREATE TABLE table_11545282_11 (position VARCHAR, years_for_jazz VARCHAR)
### Response:
### Response:
SELECT position FROM table_11545282_11 WHERE years_for_jazz = "1998-99"</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 won gold when the world championships were held in Phoenix?
### Context:
CREATE TABLE table_name_21 (gold VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT gold FROM table_name_21 WHERE place = "phoenix"</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:
Was it a win or a loss for Wanganui in Paeroa?
### Context:
CREATE TABLE table_26847237_1 (win_loss VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT win_loss FROM table_26847237_1 WHERE location = "Paeroa"</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 states are there?
### Context:
CREATE TABLE area_code_state (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM area_code_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:
Name the least year for paris, france venue
### Context:
CREATE TABLE table_name_92 (year INTEGER, venue VARCHAR)
### Response:
### Response:
SELECT MIN(year) FROM table_name_92 WHERE venue = "paris, france"</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 Week of the game with a Result of L 24-0?
### Context:
CREATE TABLE table_name_44 (week INTEGER, result VARCHAR)
### Response:
### Response:
SELECT MAX(week) FROM table_name_44 WHERE result = "l 24-0"</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 2011, when 2005 was 2R, and when 2003 was 2R?
### Context:
CREATE TABLE table_name_40 (Id VARCHAR)
### Response:
### Response:
SELECT 2011 FROM table_name_40 WHERE 2005 = "2r" AND 2003 = "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:
What was the score on game number 12?
### Context:
CREATE TABLE table_17118657_7 (score VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT score FROM table_17118657_7 WHERE game = 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 did Phil Rodgers score?
### Context:
CREATE TABLE table_name_6 (score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_6 WHERE player = "phil rodgers"</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 back player with a pick less than 183 from the round greater than 12?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_41 WHERE pick < 183 AND position = "back" AND round > 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 was the Score for T9 United States Player Kirk Triplett?
### Context:
CREATE TABLE table_name_14 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_14 WHERE place = "t9" AND country = "united states" AND player = "kirk triplett"</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 rounds that Lance Gibson fought when his record was 1-1?
### Context:
CREATE TABLE table_name_52 (round INTEGER, record VARCHAR)
### Response:
### Response:
SELECT AVG(round) FROM table_name_52 WHERE record = "1-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's the total number of gold where the total is less than 23 and the rank is over 10?
### Context:
CREATE TABLE table_name_96 (gold VARCHAR, total VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(gold) FROM table_name_96 WHERE total < 23 AND rank > 10</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 Site has Attendance of 53,000, and a Date of october 21, 1967?
### Context:
CREATE TABLE table_name_83 (site VARCHAR, attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT site FROM table_name_83 WHERE attendance = "53,000" AND date = "october 21, 1967"</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 number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?
### Context:
CREATE TABLE table_name_84 (number_of_branches INTEGER, on_site_atms VARCHAR, off_site_atms VARCHAR)
### Response:
### Response:
SELECT SUM(number_of_branches) FROM table_name_84 WHERE on_site_atms = 1548 AND off_site_atms > 3672</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 winners of the mens doubles in the season of 1963/64.
### Context:
CREATE TABLE table_28211988_4 (mens_doubles VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT mens_doubles FROM table_28211988_4 WHERE season = "1963/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:
What is the First issue date of the title with a Last Issue of July 2010?
### Context:
CREATE TABLE table_name_1 (first_issue VARCHAR, last_issue VARCHAR)
### Response:
### Response:
SELECT first_issue FROM table_name_1 WHERE last_issue = "july 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:
Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly?
### Context:
CREATE TABLE table_name_83 (round INTEGER, college_junior_club_team__league_ VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "oshawa generals (oha)" AND player = "bob kelly"</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 player from Hotchkiss School with a position of d?
### Context:
CREATE TABLE table_name_45 (player VARCHAR, position VARCHAR, team_from VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss 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:
Who had a time of 56.07?
### Context:
CREATE TABLE table_name_21 (name VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_21 WHERE time = 56.07</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 was jack cole nominated?
### Context:
CREATE TABLE table_name_77 (year VARCHAR, nominee VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_77 WHERE nominee = "jack cole"</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 years of nasl years did the accolades read "captained england to victory at the 1966 world cup"?
### Context:
CREATE TABLE table_237757_9 (nasl_years VARCHAR, accolades__pre_nasl_ VARCHAR)
### Response:
### Response:
SELECT COUNT(nasl_years) FROM table_237757_9 WHERE accolades__pre_nasl_ = "Captained England to victory at the 1966 World Cup"</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 largest foreign population when the 2004 population is 7641?
### Context:
CREATE TABLE table_name_83 (foreign_population INTEGER, population__2004_ VARCHAR)
### Response:
### Response:
SELECT MAX(foreign_population) FROM table_name_83 WHERE population__2004_ = 7641</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 master recording for europe
### Context:
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe"</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 first round time for member Kenny Smith?
### Context:
CREATE TABLE table_name_14 (first_round VARCHAR, members VARCHAR)
### Response:
### Response:
SELECT first_round FROM table_name_14 WHERE members = "kenny smith"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.