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:
Name the number of semifinals for tt2
### Context:
CREATE TABLE table_18646111_13 (semifinals VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT COUNT(semifinals) FROM table_18646111_13 WHERE class = "TT2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drafted by the Baltimore Colts?
### Context:
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_2508633_3 WHERE nfl_team = "Baltimore Colts"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Rider has a Time of retirement, and a Grid larger than 5?
### Context:
CREATE TABLE table_name_61 (rider VARCHAR, time VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_61 WHERE time = "retirement" AND grid > 5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Year(s) won has a To par of +8?
### Context:
CREATE TABLE table_name_65 (year_s__won VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_65 WHERE to_par = "+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:
Name the film for award of £3,386
### Context:
CREATE TABLE table_name_66 (film VARCHAR, award VARCHAR)
### Response:
### Response:
SELECT film FROM table_name_66 WHERE award = "£3,386"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What chart positions did the album reach when ep was the format?
### Context:
CREATE TABLE table_name_1 (chart_positions VARCHAR, format VARCHAR)
### Response:
### Response:
SELECT chart_positions FROM table_name_1 WHERE format = "ep"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Saturday has a Sunday of yes and a Evening of yes?
### Context:
CREATE TABLE table_name_80 (saturday VARCHAR, sunday VARCHAR, evening VARCHAR)
### Response:
### Response:
SELECT saturday FROM table_name_80 WHERE sunday = "yes" AND evening = "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 is the top speed of the model 1.8 20v t?
### Context:
CREATE TABLE table_name_84 (top_speed__km_h_ INTEGER, model VARCHAR)
### Response:
### Response:
SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Heat Points, when Game is less than 80, and when Date is "April 26 (First Round)"?
### Context:
CREATE TABLE table_name_11 (heat_points VARCHAR, game VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT heat_points FROM table_name_11 WHERE game < 80 AND date = "april 26 (first round)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals for youth system and ita
### Context:
CREATE TABLE table_name_7 (goals INTEGER, nat VARCHAR, transfer_fee VARCHAR)
### Response:
### Response:
SELECT MAX(goals) FROM table_name_7 WHERE nat = "ita" AND transfer_fee = "youth 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:
What is the Score for 09-oct-2006?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_76 WHERE date = "09-oct-2006"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the nationality of bill robinzine?
### Context:
CREATE TABLE table_11545282_17 (nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_11545282_17 WHERE player = "Bill Robinzine"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
### Context:
CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for visayas
### Context:
CREATE TABLE table_15463188_16 (name VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT name FROM table_15463188_16 WHERE school_club_team = "Visayas"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2007 rating of the channel with a position of 6?
### Context:
CREATE TABLE table_name_28 (position VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_28 WHERE position = 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:
Tell me the player with econ of 4.23
### Context:
CREATE TABLE table_name_40 (player VARCHAR, econ VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_40 WHERE econ = "4.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:
On what date did Jesse Levine play on a hard surface?
### Context:
CREATE TABLE table_name_78 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_78 WHERE surface = "hard" AND opponent = "jesse levine"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 date settled for chifley?
### Context:
CREATE TABLE table_1174162_1 (date_first_settled_as_a_suburb INTEGER, suburb VARCHAR)
### Response:
### Response:
SELECT MIN(date_first_settled_as_a_suburb) FROM table_1174162_1 WHERE suburb = "Chifley"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par was less than 2, what was the score?
### Context:
CREATE TABLE table_name_51 (score VARCHAR, to_par INTEGER)
### Response:
### Response:
SELECT score FROM table_name_51 WHERE to_par < 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 county is the St. Augustine bridge in?
### Context:
CREATE TABLE table_name_98 (county VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT county FROM table_name_98 WHERE location = "st. augustine"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 October 14, 1996 who was the opponent in the final?
### Context:
CREATE TABLE table_name_47 (opponent_in_the_final VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent_in_the_final FROM table_name_47 WHERE date = "october 14, 1996"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the away team at Junction Oval?
### Context:
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_77 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 is the time of the rider with a speed of 102.962mph?
### Context:
CREATE TABLE table_name_92 (time VARCHAR, speed VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_92 WHERE speed = "102.962mph"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 date of the game at the delta center when the record was 35-14?
### Context:
CREATE TABLE table_name_35 (date VARCHAR, location_attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_35 WHERE location_attendance = "delta center" AND record = "35-14"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the diameter in km of the feature named Colette Patera?
### Context:
CREATE TABLE table_16799784_8 (diameter__km_ VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT diameter__km_ FROM table_16799784_8 WHERE name = "Colette Patera"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 professors do have a Ph.D. degree?
### Context:
CREATE TABLE professor (prof_high_degree VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.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:
Where was a 0-5 game played?
### Context:
CREATE TABLE table_name_7 (venue VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_7 WHERE result = "0-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 paper type that the one that was issued on 26 july 2007 done on?
### Context:
CREATE TABLE table_name_7 (paper_type VARCHAR, date_of_issue VARCHAR)
### Response:
### Response:
SELECT paper_type FROM table_name_7 WHERE date_of_issue = "26 july 2007"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Score of the match on August 23, 2004?
### Context:
CREATE TABLE table_name_71 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_71 WHERE date = "august 23, 2004"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year was the version with a remixes album?
### Context:
CREATE TABLE table_name_76 (year VARCHAR, album VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_76 WHERE album = "remixes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the player from dallas burn
### Context:
CREATE TABLE table_name_64 (player VARCHAR, mls_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_64 WHERE mls_team = "dallas burn"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 id of the city that hosted events in the most recent year?
### Context:
CREATE TABLE hosting_city (host_city VARCHAR, YEAR VARCHAR)
### Response:
### Response:
SELECT host_city FROM hosting_city ORDER BY YEAR 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 country had the publication, Drowned in Sound?
### Context:
CREATE TABLE table_name_22 (country VARCHAR, publication VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_22 WHERE publication = "drowned in sound"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opposing team in the game(s) that started at 7:30pm?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_97 WHERE time = "7:30pm"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 median income for population 2006 for 365540
### Context:
CREATE TABLE table_151994_1 (median_monthly_per_capita___labour_force_income__hkd_ VARCHAR, population__2006_est_ VARCHAR)
### Response:
### Response:
SELECT COUNT(median_monthly_per_capita___labour_force_income__hkd_) FROM table_151994_1 WHERE population__2006_est_ = 365540</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?
### Context:
CREATE TABLE table_name_80 (branding VARCHAR, owner VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.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 throws does PJ have?
### Context:
CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR)
### Response:
### Response:
SELECT throws FROM table_name_39 WHERE first = "pj"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 arranger for Ana Rouh?
### Context:
CREATE TABLE table_name_29 (arranger VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT arranger FROM table_name_29 WHERE title = "ana rouh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Parallel Bars of the united states with a Vault smaller than 63.85?
### Context:
CREATE TABLE table_name_61 (parallel_bars INTEGER, country VARCHAR, vault VARCHAR)
### Response:
### Response:
SELECT MAX(parallel_bars) FROM table_name_61 WHERE country = "united states" AND vault < 63.85</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many draws were there when the conceded goals was numbered at 45?
### Context:
CREATE TABLE table_18018248_2 (draws VARCHAR, goals_conceded VARCHAR)
### Response:
### Response:
SELECT COUNT(draws) FROM table_18018248_2 WHERE goals_conceded = 45</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tie no for the home team swansea city?
### Context:
CREATE TABLE table_name_26 (tie_no VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT tie_no FROM table_name_26 WHERE home_team = "swansea city"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the player with a 75-68-70=213 score?
### Context:
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_79 WHERE score = 75 - 68 - 70 = 213</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 is associated with the Spunk label?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, label VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_76 WHERE label = "spunk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 run ratio Japan, which has less than 58 runs and 5 wins, have?
### Context:
CREATE TABLE table_name_36 (run_ratio INTEGER, team VARCHAR, runs_allowed VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MAX(run_ratio) FROM table_name_36 WHERE runs_allowed < 58 AND wins = 5 AND team = "japan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what date was it announced that an asset was acquired for US$9 Million?
### Context:
CREATE TABLE table_1373542_1 (date_announced VARCHAR, reported_cost VARCHAR)
### Response:
### Response:
SELECT date_announced FROM table_1373542_1 WHERE reported_cost = "US$9 million"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2nd leg of team 1 Zamalek SC?
### Context:
CREATE TABLE table_name_31 (team_1 VARCHAR)
### Response:
### Response:
SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the winner is Bernhard Eisel, what is the stage maximum?
### Context:
CREATE TABLE table_22941863_19 (stage INTEGER, winner VARCHAR)
### Response:
### Response:
SELECT MAX(stage) FROM table_22941863_19 WHERE winner = "Bernhard Eisel"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all document ids and receipt dates of documents.
### Context:
CREATE TABLE Documents (document_id VARCHAR, receipt_date VARCHAR)
### Response:
### Response:
SELECT document_id, receipt_date FROM Documents</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What finals have grant brebner as the name?
### Context:
CREATE TABLE table_name_40 (finals VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT finals FROM table_name_40 WHERE name = "grant brebner"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 region 1 release that has july 20, 2009 as the region 2?
### Context:
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
### Response:
### Response:
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest total medals of russia, which has more than 1 silver and more than 6 bronze medals?
### Context:
CREATE TABLE table_name_83 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT MAX(total) FROM table_name_83 WHERE silver > 1 AND nation = "russia" AND bronze > 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 points difference for the team that has allowed 615 points against?
### Context:
CREATE TABLE table_name_39 (points_difference VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT points_difference FROM table_name_39 WHERE points_against = "615"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?
### Context:
CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE countries (countryid VARCHAR, countryname VARCHAR); CREATE TABLE car_makers (country VARCHAR, id VARCHAR)
### Response:
### Response:
SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 3 UNION SELECT t1.countryid, t1.countryname FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country JOIN model_list AS t3 ON t2.id = t3.maker WHERE t3.model = 'fiat'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What 2008 has 2013 for the year 2013?
### Context:
CREATE TABLE table_name_37 (Id VARCHAR)
### Response:
### Response:
SELECT 2008 FROM table_name_37 WHERE "2013" = "2013"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first elected
### Context:
CREATE TABLE table_2668347_17 (first_elected INTEGER)
### Response:
### Response:
SELECT MAX(first_elected) FROM table_2668347_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:
What is the least amount of Miss Airs any country has had?
### Context:
CREATE TABLE table_30008638_1 (miss_air INTEGER)
### Response:
### Response:
SELECT MIN(miss_air) FROM table_30008638_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 model for specification of dl-066
### Context:
CREATE TABLE table_name_54 (model VARCHAR, specification VARCHAR)
### Response:
### Response:
SELECT model FROM table_name_54 WHERE specification = "dl-066"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 person with a type of end of contract, nat of sco, and the Moving to is cardiff city?
### Context:
CREATE TABLE table_name_81 (name VARCHAR, moving_to VARCHAR, type VARCHAR, nat VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_81 WHERE type = "end of contract" AND nat = "sco" AND moving_to = "cardiff city"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against when the losing bonus is 0 and the club is banwen rfc?
### Context:
CREATE TABLE table_name_32 (points_against VARCHAR, losing_bonus VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT points_against FROM table_name_32 WHERE losing_bonus = "0" AND club = "banwen 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 distance did giovanni lombardi win after stage 5?
### Context:
CREATE TABLE table_name_10 (distance VARCHAR, stage VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT distance FROM table_name_10 WHERE stage > 5 AND winner = "giovanni lombardi"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What 2009 has grand slam tournaments of 2008?
### Context:
CREATE TABLE table_name_43 (Id VARCHAR)
### Response:
### Response:
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010, how many people lived in cities with a population density of 3,965.02?
### Context:
CREATE TABLE table_2004733_2 (population__2010_ VARCHAR, population_density__2010_ VARCHAR)
### Response:
### Response:
SELECT population__2010_ FROM table_2004733_2 WHERE population_density__2010_ = "3,965.02"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many wins when the pct, is .848?
### Context:
CREATE TABLE table_name_19 (wins VARCHAR, pct VARCHAR)
### Response:
### Response:
SELECT wins FROM table_name_19 WHERE pct = ".848"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For the Persian Title میم مثل مادر, what were the results?
### Context:
CREATE TABLE table_19625976_1 (result VARCHAR, persian_title VARCHAR)
### Response:
### Response:
SELECT result FROM table_19625976_1 WHERE persian_title = "میم مثل مادر"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of losses that a team who had an away record of 1-6 and more than 4 wins had?
### Context:
CREATE TABLE table_name_6 (losses INTEGER, away VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MAX(losses) FROM table_name_6 WHERE away = "1-6" AND wins > 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's the lowest avg/g for a GP-GS of 12-12 and a gain less than 16?
### Context:
CREATE TABLE table_name_10 (avg_g INTEGER, gp_gs VARCHAR, gain VARCHAR)
### Response:
### Response:
SELECT MIN(avg_g) FROM table_name_10 WHERE gp_gs = "12-12" AND gain < 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 nation are carolina hermann / daniel hermann from?
### Context:
CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_64 WHERE name = "carolina hermann / daniel hermann"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?
### Context:
CREATE TABLE table_name_66 (top_5 INTEGER, top_10 VARCHAR, wins VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Record that has a Loss of mays (0-3)?
### Context:
CREATE TABLE table_name_83 (record VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_83 WHERE loss = "mays (0-3)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Rank points has a Score points of olympic silver medalist?
### Context:
CREATE TABLE table_name_42 (rank_points VARCHAR, score_points VARCHAR)
### Response:
### Response:
SELECT rank_points FROM table_name_42 WHERE score_points = "olympic silver medalist"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA has a ICAO of slk?
### Context:
CREATE TABLE table_name_14 (iata VARCHAR, icao VARCHAR)
### Response:
### Response:
SELECT iata FROM table_name_14 WHERE icao = "slk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 california golden seals that where drafted by nhl teams played what positions
### Context:
CREATE TABLE table_1473672_7 (position VARCHAR, nhl_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_1473672_7 WHERE nhl_team = "California Golden Seals"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 venue that they away team Collingwood played at?
### Context:
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_95 WHERE away_team = "collingwood"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which constituency had the conservative party win in 2003?
### Context:
CREATE TABLE table_name_72 (constituency VARCHAR, winning_party_2003 VARCHAR)
### Response:
### Response:
SELECT constituency FROM table_name_72 WHERE winning_party_2003 = "conservative"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least 2 credits for straight hand
### Context:
CREATE TABLE table_148535_2 (hand VARCHAR)
### Response:
### Response:
SELECT MIN(2 AS _credits) FROM table_148535_2 WHERE hand = "Straight"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What in 2007 has a 2008 of sf, and a 2010 of f?
### Context:
CREATE TABLE table_name_95 (Id VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_95 WHERE 2008 = "sf" AND 2010 = "f"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 broadcast day and timings for tv saitama
### Context:
CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR)
### Response:
### Response:
SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 language for the movie "Late Bloomers"?
### Context:
CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR)
### Response:
### Response:
SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many laps resulted from a Qual of 165.229?
### Context:
CREATE TABLE table_name_17 (laps INTEGER, qual VARCHAR)
### Response:
### Response:
SELECT MAX(laps) FROM table_name_17 WHERE qual = "165.229"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the venue of the team race that was before 2010?
### Context:
CREATE TABLE table_name_13 (venue VARCHAR, notes VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_13 WHERE notes = "team" AND year < 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:
what is the team that played in 2006?
### Context:
CREATE TABLE table_name_70 (team VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_70 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:
What is Left Office, when Party is Vacant (1999-2001)?
### Context:
CREATE TABLE table_name_83 (left_office VARCHAR, party VARCHAR)
### Response:
### Response:
SELECT left_office FROM table_name_83 WHERE party = "vacant (1999-2001)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does geno hayes weigh?
### Context:
CREATE TABLE table_15592941_1 (weight VARCHAR, player_name VARCHAR)
### Response:
### Response:
SELECT weight FROM table_15592941_1 WHERE player_name = "Geno Hayes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 serials issued in 1982 with a format of ABC-123?
### Context:
CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR)
### Response:
### Response:
SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the To Par of Peter Senior from Australia?
### Context:
CREATE TABLE table_name_28 (to_par VARCHAR, country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_28 WHERE country = "australia" AND player = "peter senior"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PLAYER WITH A PICK OF 219?
### Context:
CREATE TABLE table_name_1 (player VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_1 WHERE pick = 219</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 heat for the time 57.97?
### Context:
CREATE TABLE table_name_62 (heat VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT heat FROM table_name_62 WHERE time = "57.97"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the name of the district is the Charyl Stockwell Academy, what is the county name?
### Context:
CREATE TABLE table_22665117_1 (county VARCHAR, district_name VARCHAR)
### Response:
### Response:
SELECT county FROM table_22665117_1 WHERE district_name = "Charyl Stockwell Academy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What club team was founded before 2011 and plays at the champion window field?
### Context:
CREATE TABLE table_name_27 (club VARCHAR, founded VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_27 WHERE founded < 2011 AND venue = "champion window 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:
For what tournament was Blaž Kavčič the opponent in the final?
### Context:
CREATE TABLE table_name_16 (tournament VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_16 WHERE opponent_in_the_final = "blaž kavčič"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?
### Context:
CREATE TABLE table_name_62 (round INTEGER, name VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_62 WHERE name = "justin forsett" AND pick > 233</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the venue where the margin is 4?
### Context:
CREATE TABLE table_1139835_1 (venue VARCHAR, margin VARCHAR)
### Response:
### Response:
SELECT venue FROM table_1139835_1 WHERE margin = 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 Website, when Last Release is 2009-08-09, 1.2.9?
### Context:
CREATE TABLE table_name_25 (website VARCHAR, last_release VARCHAR)
### Response:
### Response:
SELECT website FROM table_name_25 WHERE last_release = "2009-08-09, 1.2.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:
What kind of Surface has a Score of 6–4, 0–6, 6–2?
### Context:
CREATE TABLE table_name_68 (surface VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_68 WHERE score = "6–4, 0–6, 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 is the % of same-sex marriages for the year of 2011?
### Context:
CREATE TABLE table_19614212_1 (_percentage_same_sex_marriages VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT _percentage_same_sex_marriages FROM table_19614212_1 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 Result of the battle with Latin Commander Boniface of Montferrat?
### Context:
CREATE TABLE table_name_3 (result VARCHAR, latin_commander VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_3 WHERE latin_commander = "boniface of montferrat"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue for 2004 and position of 25th
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 2004</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How do you say Friday in Polish?
### Context:
CREATE TABLE table_1277350_5 (friday_fifth_day VARCHAR, day__see_irregularities__ VARCHAR)
### Response:
### Response:
SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = "Polish"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did South Melbourne play at home?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_3 WHERE home_team = "south 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:
What's the report of the race won by Michael Andretti, with Nigel Mansell driving the fastest lap?
### Context:
CREATE TABLE table_19908651_3 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR)
### Response:
### Response:
SELECT report FROM table_19908651_3 WHERE winning_driver = "Michael Andretti" AND fastest_lap = "Nigel Mansell"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.