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 is the color commentator for ESPN from 1990 to 1992?
### Context:
CREATE TABLE table_name_70 (color_commentator_s_ VARCHAR, network VARCHAR)
### Response:
### Response:
SELECT color_commentator_s_ FROM table_name_70 WHERE network = "espn"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cornell's lowest pick number?
### Context:
CREATE TABLE table_name_13 (pick__number INTEGER, college VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_name_13 WHERE college = "cornell"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DOES PATRICK WIERCIOCH PLAY?
### Context:
CREATE TABLE table_11803648_17 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_11803648_17 WHERE player = "Patrick Wiercioch"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for illinois
### Context:
CREATE TABLE table_1672976_7 (location VARCHAR, big_ten_team VARCHAR)
### Response:
### Response:
SELECT location FROM table_1672976_7 WHERE big_ten_team = "Illinois"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area of Ulim with less than 30 villages?
### Context:
CREATE TABLE table_name_53 (land_area__km_2__ INTEGER, capital VARCHAR, villages VARCHAR)
### Response:
### Response:
SELECT AVG(land_area__km_2__) FROM table_name_53 WHERE capital = "ulim" AND villages < 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:
How many games lost for teams with over 6 games?
### Context:
CREATE TABLE table_name_46 (lost INTEGER, games INTEGER)
### Response:
### Response:
SELECT MIN(lost) FROM table_name_46 WHERE games > 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:
Which College has a Pick # larger than 30, and a Position of ol?
### Context:
CREATE TABLE table_name_22 (college VARCHAR, pick__number VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT college FROM table_name_22 WHERE pick__number > 30 AND position = "ol"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 new conference for the Gauchos team?
### Context:
CREATE TABLE table_name_28 (new_conference VARCHAR, team_nickname VARCHAR)
### Response:
### Response:
SELECT new_conference FROM table_name_28 WHERE team_nickname = "gauchos"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome in the championship where the final score was 6–7(1), 2–6, 6–4, 7–5, 6–7(2)?
### Context:
CREATE TABLE table_2362486_1 (outcome VARCHAR, score_in_the_final VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_2362486_1 WHERE score_in_the_final = "6–7(1), 2–6, 6–4, 7–5, 6–7(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's the Outcome for the Partner of Jürgen Melzer on the Date of February 7, 2010?
### Context:
CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_94 WHERE partner = "jürgen melzer" AND date = "february 7, 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:
List the name, born state and age of the heads of departments ordered by age.
### Context:
CREATE TABLE head (name VARCHAR, born_state VARCHAR, age VARCHAR)
### Response:
### Response:
SELECT name, born_state, age FROM head ORDER BY age</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2012 when 2009 was 205?
### Context:
CREATE TABLE table_name_22 (Id VARCHAR)
### Response:
### Response:
SELECT 2012 FROM table_name_22 WHERE 2009 = "205"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Result, when Film is "Dharma Chakram", and when Award is "Nandi Award for Best Actor"?
### Context:
CREATE TABLE table_name_87 (result VARCHAR, film VARCHAR, award VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_87 WHERE film = "dharma chakram" AND award = "nandi award for best actor"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games lost for team(s) with less than 4 paints and against total of over 340?
### Context:
CREATE TABLE table_name_65 (lost VARCHAR, points VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT COUNT(lost) FROM table_name_65 WHERE points < 4 AND against > 340</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates in the district where Charlie Norwood is the incumbent?
### Context:
CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money value for Jerry Pate?
### Context:
CREATE TABLE table_name_43 (money___$__ VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT money___$__ FROM table_name_43 WHERE player = "jerry pate"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of points when the time (s) is 81.78?
### Context:
CREATE TABLE table_name_93 (points INTEGER, time___s__ VARCHAR)
### Response:
### Response:
SELECT AVG(points) FROM table_name_93 WHERE time___s__ = "81.78"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals scored when draw is less than 8, points is 19 and goals conceded is more than 26?
### Context:
CREATE TABLE table_name_44 (goals_scored INTEGER, goals_conceded VARCHAR, draw VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT SUM(goals_scored) FROM table_name_44 WHERE draw < 8 AND points = 19 AND goals_conceded > 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:
What is the order for a red list of 7 in the didelphidae family?
### Context:
CREATE TABLE table_name_91 (order VARCHAR, red_list VARCHAR, family VARCHAR)
### Response:
### Response:
SELECT order FROM table_name_91 WHERE red_list = 7 AND family = "didelphidae"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 domestic freight with change being +8.0%
### Context:
CREATE TABLE table_141541_5 (domestic_freight VARCHAR, change VARCHAR)
### Response:
### Response:
SELECT domestic_freight FROM table_141541_5 WHERE change = "+8.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:
how many title and source with pal -295- being yes and jp -210- being yes
### Context:
CREATE TABLE table_13663434_1 (title_and_source VARCHAR, pal__295_ VARCHAR, jp__210_ VARCHAR)
### Response:
### Response:
SELECT COUNT(title_and_source) FROM table_13663434_1 WHERE pal__295_ = "Yes" AND jp__210_ = "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 institution has the nickname Penmen?
### Context:
CREATE TABLE table_12936521_2 (institution VARCHAR, nickname VARCHAR)
### Response:
### Response:
SELECT institution FROM table_12936521_2 WHERE nickname = "Penmen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 census ranking is 57.06 km big?
### Context:
CREATE TABLE table_name_95 (census_ranking VARCHAR, area_km_2 VARCHAR)
### Response:
### Response:
SELECT census_ranking FROM table_name_95 WHERE area_km_2 = 57.06</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of matches for the player in rank 8?
### Context:
CREATE TABLE table_name_44 (matches INTEGER, rank VARCHAR)
### Response:
### Response:
SELECT MAX(matches) FROM table_name_44 WHERE rank = 8</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total Cores with a Clock Speed of 1.3ghz?
### Context:
CREATE TABLE table_name_33 (cores VARCHAR, clock_speed VARCHAR)
### Response:
### Response:
SELECT COUNT(cores) FROM table_name_33 WHERE clock_speed = "1.3ghz"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area of the village with a census ranking of 1,442 of 5,008 and a population less than 1,778?
### Context:
CREATE TABLE table_name_92 (area_km_2 INTEGER, population VARCHAR, status VARCHAR, census_ranking VARCHAR)
### Response:
### Response:
SELECT MAX(area_km_2) FROM table_name_92 WHERE status = "village" AND census_ranking = "1,442 of 5,008" AND population < 1 OFFSET 778</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points ranking of Chicago Fire?
### Context:
CREATE TABLE table_name_73 (pts_rank VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT pts_rank FROM table_name_73 WHERE club = "chicago fire"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team's venue is junction oval?
### Context:
CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_71 WHERE venue = "junction 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:
What was the team record when the team was Cleveland?
### Context:
CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_17288861_5 WHERE team = "Cleveland"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the total number of points when the amount of goals scored was less than 20?
### Context:
CREATE TABLE table_name_39 (points VARCHAR, goals_scored INTEGER)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_39 WHERE goals_scored < 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:
List the ranks of all dismissals with a value of 4
### Context:
CREATE TABLE table_13337302_16 (rank VARCHAR, dismissals VARCHAR)
### Response:
### Response:
SELECT rank FROM table_13337302_16 WHERE dismissals = 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 was the smallest crowd that Melbourne played for at home?
### Context:
CREATE TABLE table_name_18 (crowd INTEGER, home_team VARCHAR)
### Response:
### Response:
SELECT MIN(crowd) FROM table_name_18 WHERE home_team = "melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for tom churchill
### Context:
CREATE TABLE table_26454128_7 (rank VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_26454128_7 WHERE athlete = "Tom Churchill"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries have content of arte?
### Context:
CREATE TABLE table_15887683_16 (country VARCHAR, content VARCHAR)
### Response:
### Response:
SELECT COUNT(country) FROM table_15887683_16 WHERE content = "arte"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest steals any player had?
### Context:
CREATE TABLE table_25353861_5 (steals INTEGER)
### Response:
### Response:
SELECT MIN(steals) FROM table_25353861_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 sum of the area for the bahawalnagar district with a population more than 134,936?
### Context:
CREATE TABLE table_name_32 (city_area_km_2__ INTEGER, district VARCHAR, city_population__2009_ VARCHAR)
### Response:
### Response:
SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 106 is the area in kilometers squared what is the city/municipality?
### Context:
CREATE TABLE table_29289372_1 (city_municipality VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT city_municipality FROM table_29289372_1 WHERE area__km²_ = "106"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 unlock order for the athens circuit?
### Context:
CREATE TABLE table_24463470_1 (unlock_order INTEGER, circuit VARCHAR)
### Response:
### Response:
SELECT MIN(unlock_order) FROM table_24463470_1 WHERE circuit = "Athens"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In week 7, what was the average attendance?
### Context:
CREATE TABLE table_name_74 (attendance INTEGER, week VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_74 WHERE week = 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:
How many different scores are there for the game with 10-3-4 record?
### Context:
CREATE TABLE table_23308178_5 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT COUNT(score) FROM table_23308178_5 WHERE record = "10-3-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 Blackpool has a Preston North End smaller than 46, and a Competition of other, and a Draw larger than 1?
### Context:
CREATE TABLE table_name_94 (blackpool INTEGER, draw VARCHAR, preston_north_end VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT SUM(blackpool) FROM table_name_94 WHERE preston_north_end < 46 AND competition = "other" AND draw > 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 power when the name is 1.2 16v lpg?
### Context:
CREATE TABLE table_name_13 (power VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT power FROM table_name_13 WHERE name = "1.2 16v lpg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vacancy date for the manager appointed on 2 November 2009 who left due to mutual consent?
### Context:
CREATE TABLE table_name_75 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)
### Response:
### Response:
SELECT date_of_vacancy FROM table_name_75 WHERE manner_of_departure = "mutual consent" AND date_of_appointment = "2 november 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:
Which item resulted in a score of 4-1?
### Context:
CREATE TABLE table_name_77 (score VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_77 WHERE result = "4-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the opponent on week 2?
### Context:
CREATE TABLE table_name_73 (opponent VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_73 WHERE week = 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 HPFS has a no for ReFS?
### Context:
CREATE TABLE table_name_51 (hpfs VARCHAR, refs VARCHAR)
### Response:
### Response:
SELECT hpfs FROM table_name_51 WHERE refs = "no"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Bruins have 56 points?
### Context:
CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)
### Response:
### Response:
SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 elena basescu when the poling firm of gallup?
### Context:
CREATE TABLE table_name_98 (elena_băsescu VARCHAR, polling_firm VARCHAR)
### Response:
### Response:
SELECT elena_băsescu FROM table_name_98 WHERE polling_firm = "gallup"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Threat Levels with Rabbits in Australia?
### Context:
CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR)
### Response:
### Response:
SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 and last name of the oldest employee?
### Context:
CREATE TABLE employee (emp_fname VARCHAR, emp_lname VARCHAR, emp_dob VARCHAR)
### Response:
### Response:
SELECT emp_fname, emp_lname FROM employee ORDER BY emp_dob LIMIT 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:
Name the batting team at Durham
### Context:
CREATE TABLE table_11303072_5 (batting_team VARCHAR, fielding_team VARCHAR)
### Response:
### Response:
SELECT batting_team FROM table_11303072_5 WHERE fielding_team = "Durham"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
The match that was held at Club Med Sandpiper has what method?
### Context:
CREATE TABLE table_name_54 (method VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT method FROM table_name_54 WHERE venue = "club med sandpiper"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tickets were sold and how many were available for the shows that grossed $348,674?
### Context:
CREATE TABLE table_name_30 (ticket_sold___available VARCHAR, ticket_grossing VARCHAR)
### Response:
### Response:
SELECT ticket_sold___available FROM table_name_30 WHERE ticket_grossing = "$348,674"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 featured collingwood as the away side?
### Context:
CREATE TABLE table_name_11 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_11 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:
What event has 8 as the days held?
### Context:
CREATE TABLE table_name_33 (event VARCHAR, days_held VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_33 WHERE days_held = "8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the planet associated with the direction of south?
### Context:
CREATE TABLE table_14850099_18 (planet VARCHAR, cardinal_direction VARCHAR)
### Response:
### Response:
SELECT planet FROM table_14850099_18 WHERE cardinal_direction = "South"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of rooms with more than 50 capacity for each building.
### Context:
CREATE TABLE classroom (building VARCHAR, capacity INTEGER)
### Response:
### Response:
SELECT COUNT(*), building FROM classroom WHERE capacity > 50 GROUP BY building</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 April 22?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_17 WHERE date = "april 22"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drives the abc supply sponsored cor?
### Context:
CREATE TABLE table_2503102_2 (driver_s_ VARCHAR, primary_sponsor VARCHAR)
### Response:
### Response:
SELECT driver_s_ FROM table_2503102_2 WHERE primary_sponsor = "ABC Supply"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 compound is yellow?
### Context:
CREATE TABLE table_name_2 (compound_name VARCHAR, colour VARCHAR)
### Response:
### Response:
SELECT compound_name FROM table_name_2 WHERE colour = "yellow"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size at MCG?
### Context:
CREATE TABLE table_name_91 (crowd INTEGER, venue VARCHAR)
### Response:
### Response:
SELECT MIN(crowd) FROM table_name_91 WHERE venue = "mcg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where does St Kilda play?
### Context:
CREATE TABLE table_name_48 (venue VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_48 WHERE home_team = "st kilda"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 held at UMBC Field?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, site VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_47 WHERE site = "umbc field"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Guard who currently plays for the Memphis Grizzlies born?
### Context:
CREATE TABLE table_name_25 (year_born VARCHAR, position VARCHAR, current_club VARCHAR)
### Response:
### Response:
SELECT year_born FROM table_name_25 WHERE position = "guard" AND current_club = "memphis grizzlies"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NTSC M for Pal M 525/60?
### Context:
CREATE TABLE table_name_23 (ntsc_m VARCHAR, pal_m VARCHAR)
### Response:
### Response:
SELECT ntsc_m FROM table_name_23 WHERE pal_m = "525/60"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ryusuke taguchi for Jushin Liger of liger (9:57)
### Context:
CREATE TABLE table_name_53 (ryusuke_taguchi VARCHAR, jushin_liger VARCHAR)
### Response:
### Response:
SELECT ryusuke_taguchi FROM table_name_53 WHERE jushin_liger = "liger (9:57)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What it the international designation for the kosmos 2379 satellite?
### Context:
CREATE TABLE table_18161217_2 (cospar_id VARCHAR, satellite VARCHAR)
### Response:
### Response:
SELECT cospar_id FROM table_18161217_2 WHERE satellite = "Kosmos 2379"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when the year is 2011?
### Context:
CREATE TABLE table_name_45 (record VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_45 WHERE year = 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of regions where the average family size is 2.8?
### Context:
CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)
### Response:
### Response:
SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = "2.8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number for goals less than 73?
### Context:
CREATE TABLE table_name_23 (average VARCHAR, goals INTEGER)
### Response:
### Response:
SELECT COUNT(average) FROM table_name_23 WHERE goals < 73</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for Edmonton Drillers on January 6, 2008?
### Context:
CREATE TABLE table_name_88 (score VARCHAR, visiting_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_88 WHERE visiting_team = "edmonton drillers" AND date = "january 6, 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 is the highest points value for the 500cc class in years after 1962 with 0 wins?
### Context:
CREATE TABLE table_name_71 (points INTEGER, wins VARCHAR, class VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 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 percentage of seats were filled in 2006?
### Context:
CREATE TABLE table_105344_2 (seat_factor VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT seat_factor FROM table_105344_2 WHERE year = 2006</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the the grape whose white color grapes are used to produce wines with scores higher than 90.
### Context:
CREATE TABLE GRAPES (Grape VARCHAR, Color VARCHAR); CREATE TABLE WINE (Grape VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT DISTINCT T1.Grape FROM GRAPES AS T1 JOIN WINE AS T2 ON T1.Grape = T2.Grape WHERE T1.Color = "White" AND T2.score > 90</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 April 15 who is the Home team?
### Context:
CREATE TABLE table_name_80 (home VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_80 WHERE date = "april 15"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Michael Ruffin play?
### Context:
CREATE TABLE table_name_98 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_98 WHERE player = "michael ruffin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Position has Goals against smaller than 59, and Goals for larger than 32, and Draws larger than 9, and Points larger than 35?
### Context:
CREATE TABLE table_name_90 (position INTEGER, points VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
### Response:
### Response:
SELECT AVG(position) FROM table_name_90 WHERE goals_against < 59 AND goals_for > 32 AND draws > 9 AND points > 35</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game with alfreton town as the home team?
### Context:
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_53 WHERE home_team = "alfreton town"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In which club is Ledley King a captain?
### Context:
CREATE TABLE table_name_3 (club VARCHAR, captain VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_3 WHERE captain = "ledley king"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Date of 20 december 2010?
### Context:
CREATE TABLE table_name_64 (tournament VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_64 WHERE date = "20 december 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:
Who played against the Celtics on Sat. Feb. 23?
### Context:
CREATE TABLE table_name_99 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_99 WHERE date = "sat. feb. 23"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Report which has heinrich-joachim von morgen?
### Context:
CREATE TABLE table_name_29 (report VARCHAR, winning_driver VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player was defensive back after round 3?
### Context:
CREATE TABLE table_name_87 (player VARCHAR, position VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_87 WHERE position = "defensive back" AND round > 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:
between car plates of 80-84 what is the population in 1000 in year 1931?
### Context:
CREATE TABLE table_name_14 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR)
### Response:
### Response:
SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-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 the date of the game of the team that plays in princes park?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_25 WHERE venue = "princes 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:
What is the lowest pick number of John Scully?
### Context:
CREATE TABLE table_name_45 (pick__number INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_name_45 WHERE name = "john scully"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Great Britain players with Notes of SA/B?
### Context:
CREATE TABLE table_name_66 (time VARCHAR, notes VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_66 WHERE notes = "sa/b" AND country = "great britain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 received rating of 8.2?
### Context:
CREATE TABLE table_24910733_2 (episode VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT COUNT(episode) FROM table_24910733_2 WHERE rating = "8.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 city where Hallescher FC won in 2008?
### Context:
CREATE TABLE table_name_74 (city VARCHAR, winner VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_74 WHERE winner = "hallescher fc" AND year = 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:
Find the names of nurses who are on call.
### Context:
CREATE TABLE on_call (nurse VARCHAR); CREATE TABLE nurse (name VARCHAR, EmployeeID VARCHAR)
### Response:
### Response:
SELECT DISTINCT T1.name FROM nurse AS T1 JOIN on_call AS T2 ON T1.EmployeeID = T2.nurse</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mark O'Meara's Score?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_44 WHERE player = "mark o'meara"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tall is the florida life building, completed before 1990?
### Context:
CREATE TABLE table_name_44 (height_ft___m VARCHAR, year_completed VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT height_ft___m FROM table_name_44 WHERE year_completed < 1990 AND name = "florida life building"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Proto-Oceanic has a Proto-Polynesian of *lima?
### Context:
CREATE TABLE table_name_48 (proto_oceanic VARCHAR, proto_polynesian VARCHAR)
### Response:
### Response:
SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 #/ County has a Location of ossian?
### Context:
CREATE TABLE table_name_88 (_number___county VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT _number___county FROM table_name_88 WHERE location = "ossian"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player has 17 blocks?
### Context:
CREATE TABLE table_24912693_4 (player VARCHAR, blocks VARCHAR)
### Response:
### Response:
SELECT player FROM table_24912693_4 WHERE blocks = 17</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Loss of francis (4–9) has what highest attendance figure?
### Context:
CREATE TABLE table_name_45 (attendance INTEGER, loss VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_45 WHERE loss = "francis (4–9)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the total number of first elected for sol bloom
### Context:
CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 types are cardio?
### Context:
CREATE TABLE table_27512025_1 (program VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT COUNT(program) FROM table_27512025_1 WHERE type = "Cardio"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Acquisition that has less than 22, in the 2002 season?
### Context:
CREATE TABLE table_name_41 (acquisition_via VARCHAR, number VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT acquisition_via FROM table_name_41 WHERE number < 22 AND season = "2002"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest total?
### Context:
CREATE TABLE table_19439864_2 (total INTEGER)
### Response:
### Response:
SELECT MIN(total) FROM table_19439864_2</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.