inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the season record when the team played against Milwaukee?
### Context:
CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many values for winnings correspond to average start of 19.0?
### Context:
CREATE TABLE table_2597876_2 (winnings VARCHAR, avg_start VARCHAR)
### Response:
### Response:
SELECT COUNT(winnings) FROM table_2597876_2 WHERE avg_start = "19.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 dates does Alex Munter have 25% and the polling firm of Decima?
### Context:
CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR)
### Response:
### Response:
SELECT polling_dates FROM table_name_41 WHERE alex_munter = "25%" AND polling_firm = "decima"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which tournament has an Outcome of runner-up, a Surface of hard, and a Score of 6–4, 6–2?
### Context:
CREATE TABLE table_name_95 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_95 WHERE outcome = "runner-up" AND surface = "hard" AND score = "6–4, 6–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 Luis Siri's shooting score?
### Context:
CREATE TABLE table_12407546_1 (shooting VARCHAR, athlete__noc_ VARCHAR)
### Response:
### Response:
SELECT shooting FROM table_12407546_1 WHERE athlete__noc_ = "Luis Siri"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rider with a 398cc yamaha?
### Context:
CREATE TABLE table_name_85 (time VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_85 WHERE team = "398cc yamaha"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who are all the major users of the Gordon Close-Support Weapon System?
### Context:
CREATE TABLE table_29474407_11 (major_users VARCHAR, name__designation VARCHAR)
### Response:
### Response:
SELECT major_users FROM table_29474407_11 WHERE name__designation = "Gordon Close-Support Weapon System"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality for d
### Context:
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_19 WHERE position = "d"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 players wore number 8?
### Context:
CREATE TABLE table_12962773_16 (height VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT COUNT(height) FROM table_12962773_16 WHERE no = 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 venue hosted a tournament in 1965?
### Context:
CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_78 WHERE year = 1965</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games for a record of 33-13-3?
### Context:
CREATE TABLE table_name_77 (game INTEGER, record VARCHAR)
### Response:
### Response:
SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-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:
Show all document ids and the number of paragraphs in each document. Order by document id.
### Context:
CREATE TABLE Paragraphs (document_id VARCHAR)
### Response:
### Response:
SELECT document_id, COUNT(*) FROM Paragraphs GROUP BY document_id ORDER BY document_id</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game with a game number less than 5 with a 2-0-0 record?
### Context:
CREATE TABLE table_name_51 (opponent VARCHAR, game VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_51 WHERE game < 5 AND record = "2-0-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 is the duration of the oldest actor?
### Context:
CREATE TABLE actor (Duration VARCHAR, Age VARCHAR)
### Response:
### Response:
SELECT Duration FROM actor ORDER BY Age DESC 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:
What is the location/attendance for the w 95-93 score?
### Context:
CREATE TABLE table_name_33 (location_attendance VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 owner has the frequency of 103.3 FM?
### Context:
CREATE TABLE table_name_51 (owner VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT owner FROM table_name_51 WHERE frequency = "103.3 fm"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golden tickets being rosen shingle creek resort
### Context:
CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR)
### Response:
### Response:
SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = "Rosen Shingle Creek Resort"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Venue is "Weserstadion , Bremen"?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_32 WHERE venue = "weserstadion , bremen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR)
### Response:
### Response:
SELECT 1989 FROM table_name_60 WHERE 1991 = "4r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birthdays does Earl Hanley Beshlin have?
### Context:
CREATE TABLE table_10284385_1 (date_of_birth VARCHAR, representative VARCHAR)
### Response:
### Response:
SELECT COUNT(date_of_birth) FROM table_10284385_1 WHERE representative = "Earl Hanley Beshlin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 build date of the locomotive with a fa-2 model?
### Context:
CREATE TABLE table_name_55 (build_date VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT build_date FROM table_name_55 WHERE model = "fa-2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of golds for teams in rank 17 with more than 4 silver?
### Context:
CREATE TABLE table_name_13 (gold INTEGER, rank VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT AVG(gold) FROM table_name_13 WHERE rank = "17" AND silver > 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:
Who were the winners in 1998?
### Context:
CREATE TABLE table_name_11 (winners VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT winners FROM table_name_11 WHERE 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 is the Winning team on january 28, 2006?
### Context:
CREATE TABLE table_name_35 (winning_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winning_team FROM table_name_35 WHERE date = "january 28, 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:
Who had highest points during game against the Utah Jazz?
### Context:
CREATE TABLE table_27902171_6 (high_points VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_27902171_6 WHERE team = "Utah Jazz"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tuesday does big brother 12 air?
### Context:
CREATE TABLE table_name_16 (tuesday VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT tuesday FROM table_name_16 WHERE series = "big brother 12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much audience did the 7th Pride of Britain Awards ceremony have?
### Context:
CREATE TABLE table_13943239_1 (viewers__millions_ VARCHAR, episode VARCHAR)
### Response:
### Response:
SELECT COUNT(viewers__millions_) FROM table_13943239_1 WHERE episode = "7th Pride of Britain Awards"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the most touchdowns for norcross
### Context:
CREATE TABLE table_14342592_8 (touchdowns INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(touchdowns) FROM table_14342592_8 WHERE player = "Norcross"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length for stage ss22
### Context:
CREATE TABLE table_13050822_2 (length VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT length FROM table_13050822_2 WHERE stage = "SS22"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 princes park?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team 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 years had 134 orbital flights?
### Context:
CREATE TABLE table_179174_2 (years VARCHAR, flights VARCHAR)
### Response:
### Response:
SELECT years FROM table_179174_2 WHERE flights = "134 Orbital"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Semifinal has an Event of team?
### Context:
CREATE TABLE table_name_47 (semifinal VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT semifinal FROM table_name_47 WHERE event = "team"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reviewers listed?
### Context:
CREATE TABLE Reviewer (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Reviewer</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
### Context:
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
### Response:
### Response:
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds did RML Racing Silverline and James Nash compete?
### Context:
CREATE TABLE table_name_28 (rounds VARCHAR, team VARCHAR, drivers VARCHAR)
### Response:
### Response:
SELECT rounds FROM table_name_28 WHERE team = "rml racing silverline" AND drivers = "james nash"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final venue for 82 delegates?
### Context:
CREATE TABLE table_name_23 (finals_venue VARCHAR, number_of_delegates VARCHAR)
### Response:
### Response:
SELECT finals_venue FROM table_name_23 WHERE number_of_delegates = "82"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality is the pick from round 7?
### Context:
CREATE TABLE table_name_9 (nationality VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_9 WHERE round = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Opponent has a Date of november 17, 1963?
### Context:
CREATE TABLE table_name_30 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_30 WHERE date = "november 17, 1963"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most years that tournaments held in Rome have lasted?
### Context:
CREATE TABLE table_20630462_1 (years INTEGER, tournament VARCHAR)
### Response:
### Response:
SELECT MAX(years) FROM table_20630462_1 WHERE tournament = "Rome"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assists with a rank higher than 6 and goals 10 and the scorer is Robert Ukrop
### Context:
CREATE TABLE table_name_10 (assists INTEGER, scorer VARCHAR, rank VARCHAR, goals VARCHAR)
### Response:
### Response:
SELECT AVG(assists) FROM table_name_10 WHERE rank > 6 AND goals = 10 AND scorer = "robert ukrop"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week has an attendance of 10402
### Context:
CREATE TABLE table_23624542_4 (week INTEGER, attendance VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_23624542_4 WHERE attendance = 10402</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sail is in the America 3 Foundation syndicate on the America 3 yacht?
### Context:
CREATE TABLE table_name_96 (sail VARCHAR, syndicate VARCHAR, yacht VARCHAR)
### Response:
### Response:
SELECT sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 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 long with a loss lower than 133 and more than 0 gain with an avg/G of 29.8?
### Context:
CREATE TABLE table_name_10 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
### Response:
### Response:
SELECT AVG(long) FROM table_name_10 WHERE loss < 133 AND gain > 0 AND avg_g = 29.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 every position for the CFL Edmonton?
### Context:
CREATE TABLE table_28059992_1 (position VARCHAR, cfl_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_28059992_1 WHERE cfl_team = "Edmonton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many sacks have 72 as the solo and a TTkl less than 112?
### Context:
CREATE TABLE table_name_69 (sacks VARCHAR, solo VARCHAR, ttkl VARCHAR)
### Response:
### Response:
SELECT COUNT(sacks) FROM table_name_69 WHERE solo = 72 AND ttkl < 112</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team position scored 56 points?
### Context:
CREATE TABLE table_25369796_1 (position VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(position) FROM table_25369796_1 WHERE 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 name of the borough where station uses is 28702?
### Context:
CREATE TABLE table_14748457_1 (borough VARCHAR, station_users_2008_9 VARCHAR)
### Response:
### Response:
SELECT borough FROM table_14748457_1 WHERE station_users_2008_9 = "28702"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum amount of the poles?
### Context:
CREATE TABLE table_2190919_3 (poles INTEGER)
### Response:
### Response:
SELECT MAX(poles) FROM table_2190919_3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
how many minimum 350cc has
### Context:
CREATE TABLE table_2889810_2 (Id VARCHAR)
### Response:
### Response:
SELECT MIN(350 AS cc) FROM table_2889810_2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the game in Mexico played?
### Context:
CREATE TABLE table_11602885_1 (date VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT date FROM table_11602885_1 WHERE location = "Mexico"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Decision of parent, and a Home of philadelphia, and a Record of 20–16–7 is on what date?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, record VARCHAR, decision VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_23 WHERE decision = "parent" AND home = "philadelphia" AND record = "20–16–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:
Find the name of the first 5 customers.
### Context:
CREATE TABLE Customers (customer_name VARCHAR, date_became_customer VARCHAR)
### Response:
### Response:
SELECT customer_name FROM Customers ORDER BY date_became_customer LIMIT 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 SCORE HAD A LOSS AND RECORD OF 1-1?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, result VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_75 WHERE result = "loss" AND record = "1-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the version that has a 20.0 mbit/s downstream rate?
### Context:
CREATE TABLE table_name_81 (version VARCHAR, downstream_rate VARCHAR)
### Response:
### Response:
SELECT version FROM table_name_81 WHERE downstream_rate = "20.0 mbit/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:
Who was the home team for the game with Platense as the away team and attendance under 529?
### Context:
CREATE TABLE table_name_67 (home VARCHAR, attendance VARCHAR, away VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_67 WHERE attendance < 529 AND away = "platense"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 builder completed before 1890 and launched on 9 june 1888?
### Context:
CREATE TABLE table_name_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR)
### Response:
### Response:
SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 november 24-december 6 what's the winner when the country is united states?
### Context:
CREATE TABLE table_name_35 (winner VARCHAR, country VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_35 WHERE country = "united states" AND date = "november 24-december 6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the winning driver of round 7?
### Context:
CREATE TABLE table_1137696_3 (winning_driver VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_1137696_3 WHERE round = 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 visitor has tim duncan (16) as the leading scorer?
### Context:
CREATE TABLE table_name_18 (visitor VARCHAR, leading_scorer VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_18 WHERE leading_scorer = "tim duncan (16)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Date (Closing), when Year is greater than 2011?
### Context:
CREATE TABLE table_name_83 (date__closing_ VARCHAR, year INTEGER)
### Response:
### Response:
SELECT date__closing_ FROM table_name_83 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 frequency of the soft adult contemporary stations?
### Context:
CREATE TABLE table_name_14 (frequency VARCHAR, format VARCHAR)
### Response:
### Response:
SELECT frequency FROM table_name_14 WHERE format = "soft adult contemporary"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
To which political party did the prime minister who served under George V and was born in Manchester belong?
### Context:
CREATE TABLE table_name_5 (political_party VARCHAR, monarchs_served VARCHAR, birth_place VARCHAR)
### Response:
### Response:
SELECT political_party FROM table_name_5 WHERE monarchs_served = "george v" AND birth_place = "manchester"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold when the bronze is 1, total is 6 and silver is less than 3?
### Context:
CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_2 WHERE bronze = 1 AND total = "6" AND silver < 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 total number of discs where the run time was 4 hours 40 minutes?
### Context:
CREATE TABLE table_1180228_1 (num_of_discs VARCHAR, duration VARCHAR)
### Response:
### Response:
SELECT COUNT(num_of_discs) FROM table_1180228_1 WHERE duration = "4 hours 40 minutes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when tfl-yds is 2-2?
### Context:
CREATE TABLE table_26176081_29 (name VARCHAR, tfl_yds VARCHAR)
### Response:
### Response:
SELECT name FROM table_26176081_29 WHERE tfl_yds = "2-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:
Who was the opponent in the match that lasted 4:17?
### Context:
CREATE TABLE table_name_58 (opponent VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_58 WHERE time = "4: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:
List the carriers of devices that have no devices in stock.
### Context:
CREATE TABLE stock (Carrier VARCHAR, Device_ID VARCHAR); CREATE TABLE device (Carrier VARCHAR, Device_ID VARCHAR)
### Response:
### Response:
SELECT Carrier FROM device WHERE NOT Device_ID IN (SELECT Device_ID FROM stock)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what round saw the ground of telstra dome and shaun burgoyne as nominees?
### Context:
CREATE TABLE table_name_79 (round INTEGER, ground VARCHAR, nominees VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_79 WHERE ground = "telstra dome" AND nominees = "shaun burgoyne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 partnership of herschelle gibbs / justin kemp happen?
### Context:
CREATE TABLE table_name_74 (venue VARCHAR, partnerships VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_74 WHERE partnerships = "herschelle gibbs / justin kemp"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 populations have a Cyrillic name of футог?
### Context:
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, cyrillic_name VARCHAR)
### Response:
### Response:
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE cyrillic_name = "Футог"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class has fewer than 89 points and the Honda team later than 1987?
### Context:
CREATE TABLE table_name_48 (class VARCHAR, year VARCHAR, points VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_48 WHERE points < 89 AND team = "honda" AND year > 1987</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 option from Italy with general television content, and the Cielo television service?
### Context:
CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR)
### Response:
### Response:
SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against listed when the goals scored is 30?
### Context:
CREATE TABLE table_28848697_4 (goals_against VARCHAR, goals_scored VARCHAR)
### Response:
### Response:
SELECT goals_against FROM table_28848697_4 WHERE goals_scored = 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:
What is the 2008 Candidates Elected before 1994 with Incumbent Jim McDermott?
### Context:
CREATE TABLE table_name_18 (elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT 2008 AS _candidates FROM table_name_18 WHERE elected < 1994 AND incumbent = "jim mcdermott"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capital of the province with 漢州 in Hanja?
### Context:
CREATE TABLE table_name_88 (capital VARCHAR, hanja VARCHAR)
### Response:
### Response:
SELECT capital FROM table_name_88 WHERE hanja = "漢州"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cars has over 6 cylinders?
### Context:
CREATE TABLE CARS_DATA (Cylinders INTEGER)
### Response:
### Response:
SELECT COUNT(*) FROM CARS_DATA WHERE Cylinders > 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many were hosted whene the average attendance was 27,638?
### Context:
CREATE TABLE table_name_85 (hosted VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT COUNT(hosted) FROM table_name_85 WHERE average = 27 OFFSET 638</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 OVERALL WITH A ROUND LARGER THAN 9, AND RB POSITION?
### Context:
CREATE TABLE table_name_85 (overall INTEGER, round VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT AVG(overall) FROM table_name_85 WHERE round > 9 AND position = "rb"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollment of STM which has been in competition since 1990?
### Context:
CREATE TABLE table_11318462_29 (enrolment VARCHAR, in_competition_since VARCHAR, abbreviation VARCHAR)
### Response:
### Response:
SELECT COUNT(enrolment) FROM table_11318462_29 WHERE in_competition_since = 1990 AND abbreviation = "STM"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest Channel with an Aspect of 4:3, and a PSIP Short Name of ibc-tv?
### Context:
CREATE TABLE table_name_12 (channel INTEGER, aspect VARCHAR, psip_short_name VARCHAR)
### Response:
### Response:
SELECT MAX(channel) FROM table_name_12 WHERE aspect = "4:3" AND psip_short_name = "ibc-tv"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team played against Crystal Palace?
### Context:
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points, when Club is Maesteg RFC?
### Context:
CREATE TABLE table_name_14 (points VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT points FROM table_name_14 WHERE club = "maesteg rfc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country's capital is buenos aires?
### Context:
CREATE TABLE table_14098_1 (country_or_territory_with_flag VARCHAR, capital VARCHAR)
### Response:
### Response:
SELECT country_or_territory_with_flag FROM table_14098_1 WHERE capital = "Buenos Aires"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visitor of the Montreal Canadiens Home game with a Record of 6–4–4?
### Context:
CREATE TABLE table_name_78 (visitor VARCHAR, home VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_78 WHERE home = "montreal canadiens" AND record = "6–4–4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the year union university was founded?
### Context:
CREATE TABLE table_1715730_2 (founded VARCHAR, institution VARCHAR)
### Response:
### Response:
SELECT founded FROM table_1715730_2 WHERE institution = "Union University"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team for the match with a home team of Citizen Team A?
### Context:
CREATE TABLE table_name_78 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_78 WHERE home_team = "citizen team a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record against Washington?
### Context:
CREATE TABLE table_17121262_10 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT COUNT(record) FROM table_17121262_10 WHERE team = "Washington"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish that has 24 as the start, with a year after 1987?
### Context:
CREATE TABLE table_name_89 (finish INTEGER, start VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT AVG(finish) FROM table_name_89 WHERE start = 24 AND year > 1987</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the away team with glenferrie oval venue?
### Context:
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_72 WHERE venue = "glenferrie 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 machine has 5 as the place?
### Context:
CREATE TABLE table_name_95 (machine VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT machine FROM table_name_95 WHERE place = 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 low enrolment for schools founded after 1995?
### Context:
CREATE TABLE table_name_67 (enrolment INTEGER, founded INTEGER)
### Response:
### Response:
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an Opponent of angels, and a Loss of sanderson (0–1)?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_95 WHERE opponent = "angels" AND loss = "sanderson (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 selection was the springfield olympics (nejhl)?
### Context:
CREATE TABLE table_2850912_12 (pick__number INTEGER, college_junior_club_team VARCHAR)
### Response:
### Response:
SELECT MAX(pick__number) FROM table_2850912_12 WHERE college_junior_club_team = "Springfield Olympics (NEJHL)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team operates car 11?
### Context:
CREATE TABLE table_name_28 (team VARCHAR, car_no VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_28 WHERE car_no = "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:
With chem-s as the dative, what is the ergative?
### Context:
CREATE TABLE table_name_85 (ergative VARCHAR, dative VARCHAR)
### Response:
### Response:
SELECT ergative FROM table_name_85 WHERE dative = "chem-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:
What was the original air date for the episode with 3.90 u.s. viewers (millions)?
### Context:
CREATE TABLE table_12722302_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_12722302_2 WHERE us_viewers__million_ = "3.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:
Who was the outgoing manager of the Heart of Midlothian?
### Context:
CREATE TABLE table_name_55 (outgoing_manager VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT outgoing_manager FROM table_name_55 WHERE team = "heart of midlothian"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location with tournament value of quicksilver classic
### Context:
CREATE TABLE table_11621915_1 (location VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT location FROM table_11621915_1 WHERE tournament = "Quicksilver Classic"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest number of tries with conversions more than 0?
### Context:
CREATE TABLE table_name_22 (tries INTEGER, conversions INTEGER)
### Response:
### Response:
SELECT MIN(tries) FROM table_name_22 WHERE conversions > 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 nationality is Bill Robinzine?
### Context:
CREATE TABLE table_name_69 (nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_69 WHERE player = "bill robinzine"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.