inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the opponent for game 30?
### Context:
CREATE TABLE table_name_10 (opponent VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_10 WHERE game = 30</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many opponents did the Sun Devils play when they scored 41 points?
### Context:
CREATE TABLE table_21007615_1 (opponent VARCHAR, sun_devils_points VARCHAR)
### Response:
### Response:
SELECT COUNT(opponent) FROM table_21007615_1 WHERE sun_devils_points = 41</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 J.P. Viernes' last performance?
### Context:
CREATE TABLE table_name_26 (last_performance VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT last_performance FROM table_name_26 WHERE name = "j.p. viernes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for first elected more than 1988 and district of mason
### Context:
CREATE TABLE table_name_4 (name VARCHAR, first_elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_4 WHERE first_elected > 1988 AND district = "mason"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Result of 1st, and an Extra of 4 x 400 m relay is in what lowest year?
### Context:
CREATE TABLE table_name_3 (year INTEGER, result VARCHAR, extra VARCHAR)
### Response:
### Response:
SELECT MIN(year) FROM table_name_3 WHERE result = "1st" AND extra = "4 x 400 m relay"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007?
### Context:
CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR)
### Response:
### Response:
SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-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 County has a Median Family Income of $79,331?
### Context:
CREATE TABLE table_name_3 (county VARCHAR, median_family_income VARCHAR)
### Response:
### Response:
SELECT county FROM table_name_3 WHERE median_family_income = "$79,331"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date for week 9
### Context:
CREATE TABLE table_15607589_2 (date VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT date FROM table_15607589_2 WHERE week = 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 is the region for tv uskana?
### Context:
CREATE TABLE table_name_5 (region VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT region FROM table_name_5 WHERE name = "tv uskana"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Cavaliers have a record of 9-14?
### Context:
CREATE TABLE table_name_44 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_44 WHERE record = "9-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 series did the racer earn 68 points in?
### Context:
CREATE TABLE table_24585157_1 (series VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT series FROM table_24585157_1 WHERE points = "68"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of positions with goal difference more than -17 and played less than 38
### Context:
CREATE TABLE table_name_12 (position VARCHAR, goal_difference VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT COUNT(position) FROM table_name_12 WHERE goal_difference > -17 AND played < 38</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 spartak when played is 102 and draw is less than 19?
### Context:
CREATE TABLE table_name_54 (spartak INTEGER, played VARCHAR, draw VARCHAR)
### Response:
### Response:
SELECT SUM(spartak) FROM table_name_54 WHERE played = 102 AND draw < 19</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event has a Year of 1986?
### Context:
CREATE TABLE table_name_36 (event VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_36 WHERE year = 1986</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conference record where seed is 3 and record is 24-9
### Context:
CREATE TABLE table_16295365_2 (conf_record VARCHAR, seed VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT conf_record FROM table_16295365_2 WHERE seed = "3" AND record = "24-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:
Which event was held in Brazil?
### Context:
CREATE TABLE table_name_31 (event VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_31 WHERE country = "brazil"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nation had a time of 48.38?
### Context:
CREATE TABLE table_name_9 (nation VARCHAR, time__sec_ VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_9 WHERE time__sec_ = 48.38</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year larger than 1987?
### Context:
CREATE TABLE table_name_37 (pts INTEGER, engine VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT SUM(pts) FROM table_name_37 WHERE engine = "ferrari tipo 033 v6 tc" 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 Player in the Int'l Debut of 1974?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_41 WHERE year = "1974"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What structure is in Chile?
### Context:
CREATE TABLE table_name_88 (structure VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT structure FROM table_name_88 WHERE country = "chile"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where Iquitos is located?
### Context:
CREATE TABLE table_1672804_2 (region VARCHAR, name_of_city VARCHAR)
### Response:
### Response:
SELECT region FROM table_1672804_2 WHERE name_of_city = "Iquitos"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest average when Fuml was 0?
### Context:
CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER)
### Response:
### Response:
SELECT MAX(avg) FROM table_name_57 WHERE fuml < 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 Player, when Place is "1"?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_66 WHERE place = "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 season finale date has 2.02 million u.s. Viewers?
### Context:
CREATE TABLE table_19188562_2 (season VARCHAR, us_viewers__in_millions_ VARCHAR)
### Response:
### Response:
SELECT season AS finale FROM table_19188562_2 WHERE us_viewers__in_millions_ = "2.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:
What is the Date with an Opponent that is indiana state college?
### Context:
CREATE TABLE table_name_71 (date VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_71 WHERE opponent = "indiana state college"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golds does Germany have with more than 1 silver?
### Context:
CREATE TABLE table_name_74 (gold INTEGER, silver VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_74 WHERE silver > 1 AND nation = "germany"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average attendance when marathon was the away team?
### Context:
CREATE TABLE table_name_6 (attendance INTEGER, away VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_6 WHERE away = "marathon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Name, when Moving To is "NEC Nijmegen"?
### Context:
CREATE TABLE table_name_30 (name VARCHAR, moving_to VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_30 WHERE moving_to = "nec nijmegen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kim Fogh replace the previous manager?
### Context:
CREATE TABLE table_27782699_3 (date_of_appointment VARCHAR, replaced_by VARCHAR)
### Response:
### Response:
SELECT date_of_appointment FROM table_27782699_3 WHERE replaced_by = "Kim Fogh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie #18, who was the away team?
### Context:
CREATE TABLE table_name_76 (away_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_76 WHERE tie_no = "18"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many years were there with 348 attempts?
### Context:
CREATE TABLE table_1037590_1 (yards VARCHAR, attempts VARCHAR)
### Response:
### Response:
SELECT COUNT(yards) FROM table_1037590_1 WHERE attempts = 348</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player has money of (£) 159,500, and france is the country?
### Context:
CREATE TABLE table_name_99 (player VARCHAR, money___£__ VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_99 WHERE money___£__ = "159,500" AND country = "france"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the score at Olympia fields, illinois?
### Context:
CREATE TABLE table_name_80 (score VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_80 WHERE location = "olympia fields, illinois"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average Season, when F/Laps is 1, and when Poles is less than 0?
### Context:
CREATE TABLE table_name_14 (season INTEGER, f_laps VARCHAR, poles VARCHAR)
### Response:
### Response:
SELECT AVG(season) FROM table_name_14 WHERE f_laps = 1 AND poles < 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
### Context:
CREATE TABLE table_name_68 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_68 WHERE grid > 7 AND constructor = "lotus - ford" AND time_retired = "+ 2 laps"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 male student ids who don't play football.
### Context:
CREATE TABLE Sportsinfo (StuID VARCHAR, sex VARCHAR, sportname VARCHAR); CREATE TABLE Student (StuID VARCHAR, sex VARCHAR, sportname VARCHAR)
### Response:
### Response:
SELECT StuID FROM Student WHERE sex = 'M' EXCEPT SELECT StuID FROM Sportsinfo WHERE sportname = "Football"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 First Elected, when Party is "Democratic", and when District is "Tennessee 5"?
### Context:
CREATE TABLE table_name_28 (first_elected VARCHAR, party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT COUNT(first_elected) FROM table_name_28 WHERE party = "democratic" AND district = "tennessee 5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the rating in Brisbane the week it was 276000 in Melbourne?
### Context:
CREATE TABLE table_24291077_8 (brisbane INTEGER, melbourne VARCHAR)
### Response:
### Response:
SELECT MAX(brisbane) FROM table_24291077_8 WHERE melbourne = 276000</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rounds have a Defensive End Pick?
### Context:
CREATE TABLE table_name_16 (round VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_16 WHERE position = "defensive end"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for christer tornell where the total is 30?
### Context:
CREATE TABLE table_28677723_11 (christer_tornell VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT COUNT(christer_tornell) FROM table_28677723_11 WHERE total = 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:
Name the D 47 which has D 42 of d 22
### Context:
CREATE TABLE table_name_10 (d_47 VARCHAR, d_42 VARCHAR)
### Response:
### Response:
SELECT d_47 FROM table_name_10 WHERE d_42 = "d 22"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which authors have a Unit of densuș-ciula formation?
### Context:
CREATE TABLE table_name_42 (authors VARCHAR, unit VARCHAR)
### Response:
### Response:
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the IFA: Clash of the Champions?
### Context:
CREATE TABLE table_name_71 (opponent VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_71 WHERE event = "ifa: clash of the champions"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total goals have 0 (3) as total apps, with league goals less than 0?
### Context:
CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)
### Response:
### Response:
SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_goals < 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 score of the game against the baltimore bullets on March 14?
### Context:
CREATE TABLE table_name_4 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_4 WHERE opponent = "baltimore bullets" AND date = "march 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:
Where is Interlake located?
### Context:
CREATE TABLE table_13759592_2 (location VARCHAR, institution VARCHAR)
### Response:
### Response:
SELECT location FROM table_13759592_2 WHERE institution = "Interlake"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 network broadcast the game when the Western Bulldogs played melbourne?
### Context:
CREATE TABLE table_24919137_2 (broadcaster VARCHAR, opposition VARCHAR)
### Response:
### Response:
SELECT broadcaster FROM table_24919137_2 WHERE opposition = "Melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the highest Year which has a Venue of narbonne , france?
### Context:
CREATE TABLE table_name_95 (year INTEGER, venue VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_95 WHERE venue = "narbonne , france"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE TOTAL WITH WARD LARGER THAN 60?
### Context:
CREATE TABLE table_name_96 (total INTEGER, ward INTEGER)
### Response:
### Response:
SELECT MIN(total) FROM table_name_96 WHERE ward > 60</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?
### Context:
CREATE TABLE table_name_50 (november VARCHAR, september VARCHAR, february VARCHAR, march VARCHAR)
### Response:
### Response:
SELECT COUNT(november) FROM table_name_50 WHERE february > 8.53 AND march = 20.21 AND september < 7.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:
Which country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004?
### Context:
CREATE TABLE table_name_18 (country VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_18 WHERE 2012 > 0 AND 2009 > 0 AND 2008 = 0 AND 2004 > 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote the last episode (episode 15) of season 3?
### Context:
CREATE TABLE table_17861265_1 (written_by VARCHAR, no_in_season VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_17861265_1 WHERE no_in_season = 15</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the developer when the pre-release is no*?
### Context:
CREATE TABLE table_name_70 (kinka_developer VARCHAR, kinka_pre_release VARCHAR)
### Response:
### Response:
SELECT kinka_developer FROM table_name_70 WHERE kinka_pre_release = "no*"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which report corresponds to the State Sports Centre?
### Context:
CREATE TABLE table_name_89 (report VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_89 WHERE venue = "state sports centre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Away team has the Golden point(s) scorer Trent Hodkinson and the Home of Manly-Warringah Sea Eagles?
### Context:
CREATE TABLE table_name_71 (away VARCHAR, golden_point_s__scorer VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT away FROM table_name_71 WHERE golden_point_s__scorer = "trent hodkinson" AND home = "manly-warringah sea eagles"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 internet when the position is more than 13?
### Context:
CREATE TABLE table_name_12 (internet VARCHAR, position INTEGER)
### Response:
### Response:
SELECT internet FROM table_name_12 WHERE position > 13</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the quantity of the fleet information for DWWR 50 and 51?
### Context:
CREATE TABLE table_name_4 (quantity_made VARCHAR, fleet_numbers VARCHAR)
### Response:
### Response:
SELECT quantity_made FROM table_name_4 WHERE fleet_numbers = "dwwr 50 and 51"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season was one of the players rated +98?
### Context:
CREATE TABLE table_name_6 (season VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_6 WHERE rating = "+98"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many games did they play in 1905?
### Context:
CREATE TABLE table_name_83 (played INTEGER, years VARCHAR)
### Response:
### Response:
SELECT AVG(played) FROM table_name_83 WHERE years = "1905"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 CFL teams are from York college?
### Context:
CREATE TABLE table_10975034_4 (cfl_team VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT COUNT(cfl_team) FROM table_10975034_4 WHERE college = "York"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lanes used for races with winners from Austria?
### Context:
CREATE TABLE table_name_75 (lane VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT COUNT(lane) FROM table_name_75 WHERE country = "austria"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Mike Weir's To par?
### Context:
CREATE TABLE table_name_79 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_79 WHERE player = "mike weir"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 railway was built in 1909?
### Context:
CREATE TABLE table_name_63 (railway VARCHAR, built VARCHAR)
### Response:
### Response:
SELECT railway FROM table_name_63 WHERE built = "1909"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who played for 1987-89?
### Context:
CREATE TABLE table_11545282_17 (nationality VARCHAR, years_for_jazz VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_11545282_17 WHERE years_for_jazz = "1987-89"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What record occurred on April 3?
### Context:
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_17 WHERE date = "april 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 earliest year with fewer than 5 wins and 89 points?
### Context:
CREATE TABLE table_name_12 (year INTEGER, wins VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT MIN(year) FROM table_name_12 WHERE wins < 5 AND points = 89</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the most high rebounds in the game where Sales (17) did the high points?
### Context:
CREATE TABLE table_18904831_5 (high_rebounds VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_18904831_5 WHERE high_points = "Sales (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:
Which of the participating clubs had 73 tries for?
### Context:
CREATE TABLE table_name_73 (club VARCHAR, tries_for VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_73 WHERE tries_for = "73"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which championship had a Circuit of le mans?
### Context:
CREATE TABLE table_name_39 (championship VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT championship FROM table_name_39 WHERE circuit = "le mans"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What type of engine does the BF Racing Marron Excavations have that also has Monaco as chassis and Lee Filliponi as the driver?
### Context:
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR, team VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT engine FROM table_name_94 WHERE team = "bf racing marron excavations" AND chassis = "monaco" AND driver = "lee filliponi"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the fight against Gray Maynard?
### Context:
CREATE TABLE table_name_63 (location VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_63 WHERE opponent = "gray maynard"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the 2012 (85th) Ceremony, what was the Original title of the film not nominated?
### Context:
CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
### Response:
### Response:
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver for the team with more than 2 bronze and more than 7 gold?
### Context:
CREATE TABLE table_name_53 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT COUNT(silver) FROM table_name_53 WHERE bronze > 2 AND gold > 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:
Who is the opponent for the 1985 World Group i edition?
### Context:
CREATE TABLE table_name_68 (opponent VARCHAR, edition VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_68 WHERE edition = "1985 world group 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 is the yield, neutrons per fission of the group with decay constants less than 0.301, a half-life of 22.72, and a group number larger than 2?
### Context:
CREATE TABLE table_name_77 (_neutrons_per_fission VARCHAR, yield INTEGER, group VARCHAR, decay_constant__s_−1__ VARCHAR, half_life__s_ VARCHAR)
### Response:
### Response:
SELECT SUM(yield), _neutrons_per_fission FROM table_name_77 WHERE decay_constant__s_−1__ < 0.301 AND half_life__s_ = 22.72 AND group > 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which date has an A venue with an Opponent of stoke city?
### Context:
CREATE TABLE table_name_61 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_61 WHERE venue = "a" AND opponent = "stoke 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:
Find the name of the document that has been accessed the greatest number of times, as well as the count of how many times it has been accessed?
### Context:
CREATE TABLE documents (document_name VARCHAR, access_count VARCHAR)
### Response:
### Response:
SELECT document_name, access_count FROM documents ORDER BY access_count 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 was the final score for the game with 65,309 people in attendance?
### Context:
CREATE TABLE table_name_28 (final_score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT final_score FROM table_name_28 WHERE attendance = "65,309"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 occurence has the matrix sim marked as 0.925?
### Context:
CREATE TABLE table_26708105_2 (occurrence VARCHAR, matrix_sim VARCHAR)
### Response:
### Response:
SELECT occurrence FROM table_26708105_2 WHERE matrix_sim = "0.925"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 round for the Minnesota Junior Stars (Mjhl)?
### Context:
CREATE TABLE table_name_60 (round INTEGER, college_junior_club_team__league_ VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_60 WHERE college_junior_club_team__league_ = "minnesota junior stars (mjhl)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Number has a Name of hill, lucius t.?
### Context:
CREATE TABLE table_name_41 (number INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MAX(number) FROM table_name_41 WHERE name = "hill, lucius 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's the province where member is frederick merriman category:articles with hcards
### Context:
CREATE TABLE table_1193568_1 (province VARCHAR, member VARCHAR)
### Response:
### Response:
SELECT province FROM table_1193568_1 WHERE member = "Frederick Merriman Category:Articles with hCards"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 release date of production number 1327?
### Context:
CREATE TABLE table_name_60 (release_date VARCHAR, production_number VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_60 WHERE production_number = 1327</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
when the area (km²) is 22721, what is the pop./ km²?
### Context:
CREATE TABLE table_2252745_1 (pop__km² VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT pop__km² FROM table_2252745_1 WHERE area__km²_ = 22721</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected has a Incumbent of none (new seat)?
### Context:
CREATE TABLE table_name_15 (first_elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_name_15 WHERE incumbent = "none (new seat)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the final on 14 august 1994?
### Context:
CREATE TABLE table_name_36 (score_in_the_final VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score_in_the_final FROM table_name_36 WHERE date = "14 august 1994"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date written by michael s. chernuchin & joe morgenstern?
### Context:
CREATE TABLE table_2618072_1 (original_air_date VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_2618072_1 WHERE written_by = "Michael S. Chernuchin & Joe Morgenstern"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total has a Silver smaller than 0?
### Context:
CREATE TABLE table_name_38 (total VARCHAR, silver INTEGER)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_38 WHERE silver < 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 total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?
### Context:
CREATE TABLE table_name_23 (squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 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 total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?
### Context:
CREATE TABLE table_name_7 (draws VARCHAR, golden_rivers VARCHAR, losses VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT COUNT(draws) FROM table_name_7 WHERE losses > 11 AND wins < 4 AND golden_rivers = "wakool"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 aircraft names and number of flights for each aircraft.
### Context:
CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR); CREATE TABLE Flight (aid VARCHAR)
### Response:
### Response:
SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the match against Sanaz Marand?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_54 WHERE opponent = "sanaz marand"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average wins that have great britain as the team?
### Context:
CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR)
### Response:
### Response:
SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many aircrafts are there?
### Context:
CREATE TABLE aircraft (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM aircraft</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of week for result of l 24–21
### Context:
CREATE TABLE table_name_15 (week INTEGER, result VARCHAR)
### Response:
### Response:
SELECT SUM(week) FROM table_name_15 WHERE result = "l 24–21"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What day has a record of 25–30–13 and less than 63 points?
### Context:
CREATE TABLE table_name_70 (march INTEGER, record VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT AVG(march) FROM table_name_70 WHERE record = "25–30–13" AND points < 63</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the film where Hannah Gal was the director?
### Context:
CREATE TABLE table_name_67 (film VARCHAR, director_s_ VARCHAR)
### Response:
### Response:
SELECT film FROM table_name_67 WHERE director_s_ = "hannah gal"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What joined year does Dropped Athletics have?
### Context:
CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR)
### Response:
### Response:
SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = "Dropped athletics"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college/junior club team for ian turnbull
### Context:
CREATE TABLE table_1965650_1 (college_junior_club_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college_junior_club_team FROM table_1965650_1 WHERE player = "Ian Turnbull"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sSpec Number of the model with a 1ghz frequency?
### Context:
CREATE TABLE table_name_52 (sspec_number VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT sspec_number FROM table_name_52 WHERE frequency = "1ghz"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.