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:
Who was the opponent in round 2?
### Context:
CREATE TABLE table_13328239_4 (opponent VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_13328239_4 WHERE round = "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 Date has a Novick of 26%?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, novick VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_48 WHERE novick = "26%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode/s were written by Evan Gore?
### Context:
CREATE TABLE table_29087004_3 (series__number VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT series__number FROM table_29087004_3 WHERE written_by = "Evan Gore"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the lowest week for attendance of 60,894
### Context:
CREATE TABLE table_name_37 (week INTEGER, attendance VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_name_37 WHERE attendance = "60,894"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rebounds did Rhonda Mapp make?
### Context:
CREATE TABLE table_19722664_5 (rebounds INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(rebounds) FROM table_19722664_5 WHERE player = "Rhonda Mapp"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the cosworth ca2006 2.4 v8 4 series used?
### Context:
CREATE TABLE table_name_74 (year INTEGER, engine VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_74 WHERE engine = "cosworth ca2006 2.4 v8 4 series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title has the Translation of vesoul?
### Context:
CREATE TABLE table_name_28 (title VARCHAR, translation VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_28 WHERE translation = "vesoul"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification?
### Context:
CREATE TABLE table_15059783_1 (mountains_classification VARCHAR, winner VARCHAR, points_classification VARCHAR)
### Response:
### Response:
SELECT mountains_classification FROM table_15059783_1 WHERE winner = "Alejandro Valverde" AND points_classification = "Erik Zabel"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of people that have not been on the affirmative side of debates.
### Context:
CREATE TABLE debate_people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR); CREATE TABLE people (Name VARCHAR, People_id VARCHAR, Affirmative VARCHAR)
### Response:
### Response:
SELECT Name FROM people WHERE NOT People_id IN (SELECT Affirmative FROM debate_people)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 do the Red Deer Rebels have?
### Context:
CREATE TABLE table_17751942_4 (wins INTEGER, team VARCHAR)
### Response:
### Response:
SELECT MAX(wins) FROM table_17751942_4 WHERE team = "Red Deer Rebels"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 medals for spain with 1 silver?
### Context:
CREATE TABLE table_name_68 (total INTEGER, silver VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the appointment date for the manager replaced by Lucien Favre?
### Context:
CREATE TABLE table_name_68 (date_of_appointment VARCHAR, replaced_by VARCHAR)
### Response:
### Response:
SELECT date_of_appointment FROM table_name_68 WHERE replaced_by = "lucien favre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Closure date of Hunterston B
### Context:
CREATE TABLE table_143352_1 (accounting_closure_date INTEGER, agr_power_station VARCHAR)
### Response:
### Response:
SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = "Hunterston B"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 January has a Game smaller than 37, and an Opponent of detroit red wings?
### Context:
CREATE TABLE table_name_67 (january VARCHAR, game VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT COUNT(january) FROM table_name_67 WHERE game < 37 AND opponent = "detroit red wings"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 author for the malasaurus?
### Context:
CREATE TABLE table_name_65 (authors VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT authors FROM table_name_65 WHERE name = "malasaurus"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Pakistan win a Gold Medal in Field Hockey?
### Context:
CREATE TABLE table_name_19 (games VARCHAR, sport VARCHAR, medal VARCHAR)
### Response:
### Response:
SELECT games FROM table_name_19 WHERE sport = "field hockey" AND medal = "gold"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode has 7.8 million viewers?
### Context:
CREATE TABLE table_name_13 (episode VARCHAR, viewers__in_millions_ VARCHAR)
### Response:
### Response:
SELECT episode FROM table_name_13 WHERE viewers__in_millions_ = "7.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 music led to a safe result and was choreographed by Jason Gilkison?
### Context:
CREATE TABLE table_name_57 (music VARCHAR, results VARCHAR, choreographer_s_ VARCHAR)
### Response:
### Response:
SELECT music FROM table_name_57 WHERE results = "safe" AND choreographer_s_ = "jason gilkison"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week was the Attendance 39,434?
### Context:
CREATE TABLE table_name_78 (week VARCHAR, attendance INTEGER)
### Response:
### Response:
SELECT COUNT(week) FROM table_name_78 WHERE attendance < 39 OFFSET 434</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Club team has a Pick larger than 139?
### Context:
CREATE TABLE table_name_55 (club_team VARCHAR, pick INTEGER)
### Response:
### Response:
SELECT club_team FROM table_name_55 WHERE pick > 139</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different titles are there of episodes that have been seen by 7.84 million people in the US/
### Context:
CREATE TABLE table_23242933_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT COUNT(title) FROM table_23242933_2 WHERE us_viewers__millions_ = "7.84"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Team with a Lap that is 5?
### Context:
CREATE TABLE table_name_48 (team VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_48 WHERE laps = 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 was the BID/PRONAR investment (in $) in the department that included 1326 farmers in its projects?
### Context:
CREATE TABLE table_17118006_2 (bid_pronar_investment__us$_ VARCHAR, farmers VARCHAR)
### Response:
### Response:
SELECT bid_pronar_investment__us$_ FROM table_17118006_2 WHERE farmers = 1326</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for the engine of 2.0 duratorq
### Context:
CREATE TABLE table_name_84 (capacity VARCHAR, model_engine VARCHAR)
### Response:
### Response:
SELECT capacity FROM table_name_84 WHERE model_engine = "2.0 duratorq"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 precincts are in the county where G. Hager received 19 (20%) votes?
### Context:
CREATE TABLE table_17820556_4 (precincts VARCHAR, g_hager VARCHAR)
### Response:
### Response:
SELECT precincts FROM table_17820556_4 WHERE g_hager = "19 (20%)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of Round in liverpool , england?
### Context:
CREATE TABLE table_name_73 (round VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_73 WHERE location = "liverpool , england"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 facility ID 150935?
### Context:
CREATE TABLE table_name_21 (class VARCHAR, facility_id VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_21 WHERE facility_id = 150935</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's the First District with a Fifth District of prudy adam?
### Context:
CREATE TABLE table_name_9 (first_district VARCHAR, fifth_district VARCHAR)
### Response:
### Response:
SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RESULT FOR 2003, IN best urban/alternative performance?
### Context:
CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR, category VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_79 WHERE year = 2003 AND category = "best urban/alternative performance"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth date of a member of the Club of bvsc vízilabda?
### Context:
CREATE TABLE table_name_39 (date_of_birth VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT date_of_birth FROM table_name_39 WHERE club = "bvsc vízilabda"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have a Romaji Title of slow dance?
### Context:
CREATE TABLE table_name_29 (episodes INTEGER, romaji_title VARCHAR)
### Response:
### Response:
SELECT SUM(episodes) FROM table_name_29 WHERE romaji_title = "slow dance"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 owns the locomotive that entered service on 30 October 1956?
### Context:
CREATE TABLE table_name_80 (owner VARCHAR, entered_service__t_ VARCHAR)
### Response:
### Response:
SELECT owner FROM table_name_80 WHERE entered_service__t_ = "30 october 1956"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent in the game with a Result of L 24–14?
### Context:
CREATE TABLE table_name_38 (opponent VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_38 WHERE result = "l 24–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 date was the game at Comiskey Park and had a 4th Inning?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, location VARCHAR, inning VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_47 WHERE location = "comiskey park" AND inning = "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 venue did the away team footscray play at?
### Context:
CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_63 WHERE away_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:
Which Grid has a Rider of loic napoleone?
### Context:
CREATE TABLE table_name_14 (grid INTEGER, rider VARCHAR)
### Response:
### Response:
SELECT AVG(grid) FROM table_name_14 WHERE rider = "loic napoleone"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended Columbia law school and was appointed in 2004?
### Context:
CREATE TABLE table_name_30 (name VARCHAR, law_school_attended VARCHAR, appointed VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_30 WHERE law_school_attended = "columbia law school" AND appointed = 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:
What is the playoffs 2 result of season 2010-11?
### Context:
CREATE TABLE table_name_18 (playoffs_2 VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT playoffs_2 FROM table_name_18 WHERE season = "2010-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's the Download information for the song from Week 44?
### Context:
CREATE TABLE table_name_45 (download VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT download FROM table_name_45 WHERE week = 44</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were recorded marseille (32 draw) was a 2 seed?
### Context:
CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)
### Response:
### Response:
SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 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 position does #14 play?
### Context:
CREATE TABLE table_name_2 (position VARCHAR, uni_number VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_2 WHERE uni_number = 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 bridge is a pratt pony through truss tyoe bridge?
### Context:
CREATE TABLE table_name_4 (name VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_4 WHERE type = "pratt pony through truss"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Leeds City Council is the local authority for what type of location?
### Context:
CREATE TABLE table_2273738_1 (type VARCHAR, local_authority VARCHAR)
### Response:
### Response:
SELECT type FROM table_2273738_1 WHERE local_authority = "Leeds city Council"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cornerback has the highest round?
### Context:
CREATE TABLE table_name_97 (round INTEGER, position VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_97 WHERE position = "cornerback"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 campus has the San Agustin gym?
### Context:
CREATE TABLE table_name_2 (home_campus VARCHAR, arena_venue VARCHAR)
### Response:
### Response:
SELECT home_campus FROM table_name_2 WHERE arena_venue = "san agustin gym"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was there a record of 13–17–3?
### Context:
CREATE TABLE table_name_63 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_63 WHERE record = "13–17–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 location has surveying as the type?
### Context:
CREATE TABLE table_name_68 (location VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_68 WHERE type = "surveying"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 million viewers watch the episode that kevin biegel & aseem batra wrote?
### Context:
CREATE TABLE table_25548213_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT us_viewers__million_ FROM table_25548213_1 WHERE written_by = "Kevin Biegel & Aseem Batra"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team E when Jason Manning is Team F?
### Context:
CREATE TABLE table_name_89 (team_e VARCHAR, team_f VARCHAR)
### Response:
### Response:
SELECT team_e FROM table_name_89 WHERE team_f = "jason manning"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 largest crowd of a game where Collingwood was the away team?
### Context:
CREATE TABLE table_name_52 (crowd INTEGER, away_team VARCHAR)
### Response:
### Response:
SELECT MAX(crowd) FROM table_name_52 WHERE away_team = "collingwood"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Incumbent has a First elected larger than 1884?
### Context:
CREATE TABLE table_name_58 (incumbent VARCHAR, first_elected INTEGER)
### Response:
### Response:
SELECT incumbent FROM table_name_58 WHERE first_elected > 1884</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Investing Dragon(s) requested 100,000 in money and has autosafe?
### Context:
CREATE TABLE table_name_74 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, company_or_product_name VARCHAR)
### Response:
### Response:
SELECT investing_dragon_s_ FROM table_name_74 WHERE money_requested__£_ = "100,000" AND company_or_product_name = "autosafe"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the Grim Fandango with a windows platform?
### Context:
CREATE TABLE table_name_36 (year VARCHAR, platform_s_ VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_36 WHERE platform_s_ = "windows" AND game = "grim fandango"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of pop for shizuoka
### Context:
CREATE TABLE table_name_13 (pop_¹ INTEGER, prefecture VARCHAR)
### Response:
### Response:
SELECT SUM(pop_¹) FROM table_name_13 WHERE prefecture = "shizuoka"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals against when there are more than 42 played?
### Context:
CREATE TABLE table_name_55 (goals_against INTEGER, played INTEGER)
### Response:
### Response:
SELECT AVG(goals_against) FROM table_name_55 WHERE played > 42</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school has the greyhounds as mascots?
### Context:
CREATE TABLE table_name_56 (school VARCHAR, mascot VARCHAR)
### Response:
### Response:
SELECT school FROM table_name_56 WHERE mascot = "greyhounds"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 endings have american pronounciation əs
### Context:
CREATE TABLE table_17798093_20 (australian VARCHAR, american VARCHAR)
### Response:
### Response:
SELECT COUNT(australian) FROM table_17798093_20 WHERE american = "əs"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result has a Category of best book of a musical?
### Context:
CREATE TABLE table_name_45 (result VARCHAR, category VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_45 WHERE category = "best book of a musical"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position in 1981?
### Context:
CREATE TABLE table_name_55 (position VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_55 WHERE year = 1981</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the Away team is essendon, what's the Home team score?
### Context:
CREATE TABLE table_name_99 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_99 WHERE away_team = "essendon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many figures are provided for the team when the position drafted is center?
### Context:
CREATE TABLE table_2897457_8 (nhl_team VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT COUNT(nhl_team) FROM table_2897457_8 WHERE position = "Center"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show all main industry and total market value in each industry.
### Context:
CREATE TABLE company (main_industry VARCHAR, market_value INTEGER)
### Response:
### Response:
SELECT main_industry, SUM(market_value) FROM company GROUP BY main_industry</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with fewer than 6650 in attendance, that finished 0:1?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, attendance VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_30 WHERE attendance < 6650 AND score = "0:1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest Rank, when Name is Travis Watson, and when Games is less than 14?
### Context:
CREATE TABLE table_name_52 (rank INTEGER, name VARCHAR, games VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_52 WHERE name = "travis watson" AND games < 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 software with version 1.2.2.0?
### Context:
CREATE TABLE table_15038373_1 (software VARCHAR, version VARCHAR)
### Response:
### Response:
SELECT software FROM table_15038373_1 WHERE version = "1.2.2.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:
which school has 14 large championships
### Context:
CREATE TABLE table_14115168_4 (school VARCHAR, national_titles VARCHAR)
### Response:
### Response:
SELECT school FROM table_14115168_4 WHERE national_titles = 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 location of the match with Aron Lofton as the opponent?
### Context:
CREATE TABLE table_name_29 (location VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_29 WHERE opponent = "aron lofton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance on september 29?
### Context:
CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_83 WHERE date = "september 29"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the name for seasons 1981 and an order more than 807?
### Context:
CREATE TABLE table_name_49 (name VARCHAR, seasons VARCHAR, order VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player Chris Riley?
### Context:
CREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_62 WHERE player = "chris riley"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tom Watson's lowest To par when the total was larger than 144?
### Context:
CREATE TABLE table_name_44 (to_par INTEGER, player VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT MIN(to_par) FROM table_name_44 WHERE player = "tom watson" AND total > 144</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 atsv erlangen is the mittelfranken nord and alemannia haibach is the unterfranken west what is the mittelfranken süd?
### Context:
CREATE TABLE table_23224961_2 (mittelfranken_süd VARCHAR, unterfranken_west VARCHAR, mittelfranken_nord VARCHAR)
### Response:
### Response:
SELECT mittelfranken_süd FROM table_23224961_2 WHERE unterfranken_west = "Alemannia Haibach" AND mittelfranken_nord = "ATSV Erlangen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First Elected, when District is "Massachusetts 3"?
### Context:
CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR)
### Response:
### Response:
SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 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:
Which Rider is grid 7?
### Context:
CREATE TABLE table_name_12 (rider VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_12 WHERE grid = 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:
What is the population (2010 census) if the area is 66.11?
### Context:
CREATE TABLE table_184334_2 (population__2010_census_ INTEGER, area___has__ VARCHAR)
### Response:
### Response:
SELECT MIN(population__2010_census_) FROM table_184334_2 WHERE area___has__ = "66.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 couple had a vote percentage of 5.2%?
### Context:
CREATE TABLE table_26375386_17 (couple VARCHAR, vote_percentage VARCHAR)
### Response:
### Response:
SELECT couple FROM table_26375386_17 WHERE vote_percentage = "5.2%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Score of the Spain F32, Gran Canaria Tournament?
### Context:
CREATE TABLE table_name_70 (score VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_70 WHERE tournament = "spain f32, gran canaria"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 latest week with a result of l 14-3?
### Context:
CREATE TABLE table_name_83 (week INTEGER, result VARCHAR)
### Response:
### Response:
SELECT MAX(week) FROM table_name_83 WHERE result = "l 14-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 is the polluntant when the regulatory citation is 40 cfr 50.7(a) and the type is primary?
### Context:
CREATE TABLE table_name_27 (pollutant VARCHAR, regulatory_citation VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT pollutant FROM table_name_27 WHERE regulatory_citation = "40 cfr 50.7(a)" AND type = "primary"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Date of 4 Oct 2009, who was the Runner(s)-up?
### Context:
CREATE TABLE table_name_83 (runner_s__up VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT runner_s__up FROM table_name_83 WHERE date = "4 oct 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest Weight when the height is 196, and the date of birth is 24.07.1977?
### Context:
CREATE TABLE table_name_28 (weight INTEGER, height VARCHAR, date_of_birth VARCHAR)
### Response:
### Response:
SELECT MIN(weight) FROM table_name_28 WHERE height = 196 AND date_of_birth = "24.07.1977"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 happened on 2009-03-14?
### Context:
CREATE TABLE table_name_25 (circumstances VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT circumstances FROM table_name_25 WHERE date = "2009-03-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 was the largest crowd size at arden street oval?
### Context:
CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR)
### Response:
### Response:
SELECT MAX(crowd) FROM table_name_58 WHERE venue = "arden street oval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the 6th placed in 1998 complete?
### Context:
CREATE TABLE table_name_90 (laps INTEGER, pos VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_90 WHERE pos = "6th" AND year = 1998</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English title fo the film that was a nominee?
### Context:
CREATE TABLE table_27423508_1 (english_title VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT english_title FROM table_27423508_1 WHERE result = "Nominee"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ride was manufactured by Zierer?
### Context:
CREATE TABLE table_name_43 (ride_name VARCHAR, manufacturer VARCHAR)
### Response:
### Response:
SELECT ride_name FROM table_name_43 WHERE manufacturer = "zierer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the home team at Lake Oval?
### Context:
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_66 WHERE venue = "lake oval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship for clay and corrado barazzutti
### Context:
CREATE TABLE table_23235767_4 (championship VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT championship FROM table_23235767_4 WHERE surface = "Clay" AND opponent_in_the_final = "Corrado Barazzutti"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2003 for atp masters series 1998
### Context:
CREATE TABLE table_name_83 (Id VARCHAR)
### Response:
### Response:
SELECT 2003 FROM table_name_83 WHERE 1998 = "atp masters series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 6-4 score's maximum attendance?
### Context:
CREATE TABLE table_27537518_4 (attendance INTEGER, score VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_27537518_4 WHERE score = "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:
Which round was played on 10 May?
### Context:
CREATE TABLE table_name_91 (round VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_91 WHERE date = "10 may"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the opposing team when playing in the Portugal venue?
### Context:
CREATE TABLE table_name_49 (opponents VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT opponents FROM table_name_49 WHERE venue = "portugal"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 swimmer from Dominica who had a time of 21.2 and swam in lane 7?
### Context:
CREATE TABLE table_name_49 (athlete VARCHAR, nationality VARCHAR, time VARCHAR, lane VARCHAR)
### Response:
### Response:
SELECT athlete FROM table_name_49 WHERE time < 21.2 AND lane < 7 AND nationality = "dominica"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CERCLIS ID is Deleted of 04/07/2008?
### Context:
CREATE TABLE table_name_16 (cerclis_id VARCHAR, deleted VARCHAR)
### Response:
### Response:
SELECT cerclis_id FROM table_name_16 WHERE deleted = "04/07/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 was the report for an away team of Sydney Spirit and score of 96-87?
### Context:
CREATE TABLE table_name_16 (report VARCHAR, away_team VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_16 WHERE away_team = "sydney spirit" AND score = "96-87"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score at the Addis Ababa location?
### Context:
CREATE TABLE table_name_47 (score VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_47 WHERE location = "addis ababa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 orginal air date for episodes with production code 2acx12?
### Context:
CREATE TABLE table_28210383_1 (original_air_date VARCHAR, prod_code VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_28210383_1 WHERE prod_code = "2ACX12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 track translates to Flemish Women?
### Context:
CREATE TABLE table_name_96 (track VARCHAR, translation VARCHAR)
### Response:
### Response:
SELECT track FROM table_name_96 WHERE translation = "flemish women"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 turing complete with numeral system being decimal
### Context:
CREATE TABLE table_13636_1 (turing_complete VARCHAR, numeral_system VARCHAR)
### Response:
### Response:
SELECT turing_complete FROM table_13636_1 WHERE numeral_system = "Decimal"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 freestyle leg for the Netherlands?
### Context:
CREATE TABLE table_name_5 (freestyle_leg VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT freestyle_leg FROM table_name_5 WHERE country = "netherlands"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.