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: Show all church names except for those that had a wedding in year 2015. ### Context: CREATE TABLE church (name VARCHAR); CREATE TABLE wedding (church_id VARCHAR, year VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR) ### Response: ### Response: SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 memeber has nsw as the state, a first elected of 1952, and alp as the party? ### Context: CREATE TABLE table_name_64 (member VARCHAR, party VARCHAR, state VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT member FROM table_name_64 WHERE state = "nsw" AND first_elected = "1952" AND party = "alp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode has stetson hats (part 1) under segment C? ### Context: CREATE TABLE table_name_22 (series_ep VARCHAR, segment_c VARCHAR) ### Response: ### Response: SELECT series_ep FROM table_name_22 WHERE segment_c = "stetson hats (part 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: Which Tournament has a Date of 22 january 1979? ### Context: CREATE TABLE table_name_6 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_6 WHERE date = "22 january 1979"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nominated work of popularity award (actor in a motion picture)? ### Context: CREATE TABLE table_name_29 (nominated_work VARCHAR, category VARCHAR) ### Response: ### Response: SELECT nominated_work FROM table_name_29 WHERE category = "popularity award (actor in a motion picture)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of tourist attraction that Alison visited but Rosalind did not visit? ### Context: CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE VISITORS (Tourist_Details VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR) ### Response: ### Response: SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 picked smaller than 220, with Alford Turner as a player? ### Context: CREATE TABLE table_name_79 (round INTEGER, pick VARCHAR, player VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_79 WHERE pick < 220 AND player = "alford turner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with a loss result in the Europe/Africa Group I, Round Robin competition in Murcia (esp) after 1998? ### Context: CREATE TABLE table_name_15 (date VARCHAR, year VARCHAR, location VARCHAR, result VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE result = "loss" AND competition = "europe/africa group i, round robin" AND location = "murcia (esp)" AND year > 1998</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What circuit was the British Grand Prix? ### Context: CREATE TABLE table_name_92 (circuit VARCHAR, race VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_92 WHERE race = "british grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Division does the City being jacksonville, florida belong to? ### Context: CREATE TABLE table_name_14 (division VARCHAR, city VARCHAR) ### Response: ### Response: SELECT division FROM table_name_14 WHERE city = "jacksonville, florida"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 economy of the player with BBI of 3/33? ### Context: CREATE TABLE table_28846752_13 (economy VARCHAR, bbi VARCHAR) ### Response: ### Response: SELECT economy FROM table_28846752_13 WHERE bbi = "3/33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 customers live in Prague city? ### Context: CREATE TABLE customers (city VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM customers WHERE city = "Prague"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championships did the team or teams established in 1976 win? ### Context: CREATE TABLE table_name_92 (championships INTEGER, established VARCHAR) ### Response: ### Response: SELECT SUM(championships) FROM table_name_92 WHERE established = 1976</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the name for the nationality total:? ### Context: CREATE TABLE table_name_1 (name VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT name FROM table_name_1 WHERE nationality = "total:"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During the play-off quarter-final which team scored position was the team that scored 56 points? ### Context: CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR) ### Response: ### Response: SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the person with a total of 22? ### Context: CREATE TABLE table_name_6 (name VARCHAR, total VARCHAR) ### Response: ### Response: SELECT name FROM table_name_6 WHERE total = 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: What is the record for the St. Louis team? ### Context: CREATE TABLE table_name_58 (record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT record FROM table_name_58 WHERE team = "st. louis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cover model(s) on the 4-05 issue? ### Context: CREATE TABLE table_1566852_6 (cover_model VARCHAR, date VARCHAR) ### Response: ### Response: SELECT cover_model FROM table_1566852_6 WHERE date = "4-05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date David Adams played on a Clay Surface with Brett Steven as Partner? ### Context: CREATE TABLE table_name_46 (date INTEGER, surface VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest pick for the kicker after round 12? ### Context: CREATE TABLE table_name_23 (pick INTEGER, round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_23 WHERE round > 12 AND position = "kicker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average Independent with a Green larger than 7, and a Conservative smaller than 0? ### Context: CREATE TABLE table_name_35 (independent INTEGER, green VARCHAR, conservative VARCHAR) ### Response: ### Response: SELECT AVG(independent) FROM table_name_35 WHERE green > 7 AND conservative < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which result was in the district of ohio 6? ### Context: CREATE TABLE table_name_15 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_name_15 WHERE district = "ohio 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: Who holds the time of 17:11.572? ### Context: CREATE TABLE table_name_88 (race VARCHAR, time VARCHAR) ### Response: ### Response: SELECT race FROM table_name_88 WHERE time = "17:11.572"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week 2 prior to the when Brittany Alyse was week 3? ### Context: CREATE TABLE table_name_60 (week_2 VARCHAR, week_3 VARCHAR) ### Response: ### Response: SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship in Wimbledon (2)? ### Context: CREATE TABLE table_1028356_3 (year VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT year FROM table_1028356_3 WHERE championship = "Wimbledon (2)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the host of the round at Hammons Student Center? ### Context: CREATE TABLE table_name_12 (host VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT host FROM table_name_12 WHERE venue = "hammons student center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team nickname of university of wisconsin-platteville? ### Context: CREATE TABLE table_name_93 (nickname VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT nickname FROM table_name_93 WHERE institution = "university of wisconsin-platteville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a score of 70-71-68-72=281? ### Context: CREATE TABLE table_name_88 (country VARCHAR, score VARCHAR) ### Response: ### Response: SELECT country FROM table_name_88 WHERE score = 70 - 71 - 68 - 72 = 281</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reg GP for rick vaive in round 1? ### Context: CREATE TABLE table_name_40 (reg_gp INTEGER, player VARCHAR, rd__number VARCHAR) ### Response: ### Response: SELECT SUM(reg_gp) FROM table_name_40 WHERE player = "rick vaive" AND rd__number > 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 were his points when he was in 8th position? ### Context: CREATE TABLE table_24998088_1 (points VARCHAR, position VARCHAR) ### Response: ### Response: SELECT points FROM table_24998088_1 WHERE position = "8th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Zach Banner is a player at which school? ### Context: CREATE TABLE table_11677691_5 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_11677691_5 WHERE player = "Zach Banner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to winning team when the tu winning team was joe amato carson baird? ### Context: CREATE TABLE table_13657883_2 (to_winning_team VARCHAR, tu_winning_team VARCHAR) ### Response: ### Response: SELECT to_winning_team FROM table_13657883_2 WHERE tu_winning_team = "Joe Amato Carson Baird"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Decile for a school with a roll smaller than 3? ### Context: CREATE TABLE table_name_40 (decile INTEGER, roll INTEGER) ### Response: ### Response: SELECT MIN(decile) FROM table_name_40 WHERE roll < 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's the currency name with highest monthly inflation rate being 29,500% ### Context: CREATE TABLE table_13681_2 (currency_name VARCHAR, highest_monthly_inflation_rate VARCHAR) ### Response: ### Response: SELECT currency_name FROM table_13681_2 WHERE highest_monthly_inflation_rate = "29,500%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue on June 8, 2005? ### Context: CREATE TABLE table_name_9 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_9 WHERE date = "june 8, 2005"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 extra points did Paul Jones score? ### Context: CREATE TABLE table_14342367_11 (extra_points VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(extra_points) FROM table_14342367_11 WHERE player = "Paul Jones"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840? ### Context: CREATE TABLE table_name_58 (population_2000_census VARCHAR, area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR) ### Response: ### Response: SELECT COUNT(population_2000_census) FROM table_name_58 WHERE area__km²_ = 464.5 AND population_density_2010___km²_ > 1840</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of different states which banks are located at. ### Context: CREATE TABLE bank (state VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT state) FROM bank</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drawn result with a league position of 15th and a lost result that is more than 17? ### Context: CREATE TABLE table_name_36 (drawn INTEGER, league_pos VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT SUM(drawn) FROM table_name_36 WHERE league_pos = "15th" AND lost > 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: How many times is the new points 2690? ### Context: CREATE TABLE table_24431348_20 (status VARCHAR, new_points VARCHAR) ### Response: ### Response: SELECT COUNT(status) FROM table_24431348_20 WHERE new_points = 2690</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were there more than 19,600 people in attendance? ### Context: CREATE TABLE table_name_49 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_name_49 WHERE attendance > 19 OFFSET 600</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first names of professors who are not playing Canoeing or Kayaking. ### Context: CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR) ### Response: ### Response: SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games that led to a record of 12-4-2 after November 22? ### Context: CREATE TABLE table_name_48 (game VARCHAR, record VARCHAR, november VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_48 WHERE record = "12-4-2" AND november > 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: What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6? ### Context: CREATE TABLE table_name_15 (oklahoma_vs VARCHAR, current_streak VARCHAR, at_neutral_site VARCHAR) ### Response: ### Response: SELECT oklahoma_vs FROM table_name_15 WHERE current_streak = "l 1" AND at_neutral_site = "osu, 7-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: For events with values of exactly 1, and 0 cuts made, what is the fewest number of top-10s? ### Context: CREATE TABLE table_name_79 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR) ### Response: ### Response: SELECT MIN(top_10) FROM table_name_79 WHERE events = 1 AND cuts_made > 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 cyrillic name when the settlement is ašanja? ### Context: CREATE TABLE table_2562572_52 (cyrillic_name VARCHAR, settlement VARCHAR) ### Response: ### Response: SELECT cyrillic_name FROM table_2562572_52 WHERE settlement = "Ašanja"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor for the race with Nigel Mansell as the fastest lap? ### Context: CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located? ### Context: CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR) ### Response: ### Response: SELECT district FROM table_name_3 WHERE weblink = "http://www.annauniv.edu" AND college_or_campus_name = "anna university - tiruchirappalli campus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number for Andrew Quarless? ### Context: CREATE TABLE table_26077092_7 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(pick__number) FROM table_26077092_7 WHERE player = "Andrew Quarless"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the school named Brisbane Girls' Grammar School? ### Context: CREATE TABLE table_11318462_29 (location VARCHAR, school VARCHAR) ### Response: ### Response: SELECT location FROM table_11318462_29 WHERE school = "Brisbane Girls' Grammar school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club teams had more than 14 people? ### Context: CREATE TABLE table_name_52 (club_team_s_ VARCHAR, team_number INTEGER) ### Response: ### Response: SELECT club_team_s_ FROM table_name_52 WHERE team_number > 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In how many games were the high rebounds made by Derrick Favors (8)? ### Context: CREATE TABLE table_27700375_6 (game VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Round of joe patterson? ### Context: CREATE TABLE table_name_79 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_79 WHERE player = "joe patterson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name and id of the team with the most victories in 2008 postseason? ### Context: CREATE TABLE postseason (team_id_winner VARCHAR, year VARCHAR); CREATE TABLE team (name VARCHAR, team_id_br VARCHAR) ### Response: ### Response: SELECT T2.name, T1.team_id_winner FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T1.year = 2008 GROUP BY T1.team_id_winner ORDER BY 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: How many laps did Duke Nelson complete when his qualifying time was 136.498? ### Context: CREATE TABLE table_name_9 (laps INTEGER, qual VARCHAR) ### Response: ### Response: SELECT MAX(laps) FROM table_name_9 WHERE qual = "136.498"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home is Atlético Tucumán, what is the name of the first leg? ### Context: CREATE TABLE table_17968229_1 (home__2nd_leg_ VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_17968229_1 WHERE home__2nd_leg_ = "Atlético Tucumán"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was the match against carlisle united? ### Context: CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_65 WHERE away_team = "carlisle united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg that had a 4-2 aggregate? ### Context: CREATE TABLE table_name_33 (aggregate VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_name_33 WHERE aggregate = "4-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 Streak is in new orleans arena and a Record of 31–33? ### Context: CREATE TABLE table_name_75 (streak VARCHAR, location_attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT streak FROM table_name_75 WHERE location_attendance = "new orleans arena" AND record = "31–33"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tuf competitor when the method id decision (unanimous)? ### Context: CREATE TABLE table_name_37 (tuf_competitor VARCHAR, method VARCHAR) ### Response: ### Response: SELECT tuf_competitor FROM table_name_37 WHERE method = "decision (unanimous)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winning Driver has an Event of 200 miles of norisring? ### Context: CREATE TABLE table_name_82 (winning_driver VARCHAR, event VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_82 WHERE event = "200 miles of norisring"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 womens singles for 1999 rio de janeiro ### Context: CREATE TABLE table_28138035_4 (womens_singles VARCHAR, year_location VARCHAR) ### Response: ### Response: SELECT COUNT(womens_singles) FROM table_28138035_4 WHERE year_location = "1999 Rio de Janeiro"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who drives for the sponsor w.h. bolin? ### Context: CREATE TABLE table_name_82 (driver VARCHAR, sponsor VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_82 WHERE sponsor = "w.h. bolin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue Corio Oval, who was the away team? ### Context: CREATE TABLE table_name_97 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_97 WHERE venue = "corio 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 tournament when in 2012 the performance was 2r? ### Context: CREATE TABLE table_name_38 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_38 WHERE 2012 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conference did the player with the position of rb play in? ### Context: CREATE TABLE table_name_44 (conf VARCHAR, pos VARCHAR) ### Response: ### Response: SELECT conf FROM table_name_44 WHERE pos = "rb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the original code for victorian rules? ### Context: CREATE TABLE table_name_64 (location VARCHAR, original_code VARCHAR) ### Response: ### Response: SELECT location FROM table_name_64 WHERE original_code = "victorian rules"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 states were there when there was an enrollment of 2789? ### Context: CREATE TABLE table_27961684_1 (state VARCHAR, enrollment VARCHAR) ### Response: ### Response: SELECT COUNT(state) FROM table_27961684_1 WHERE enrollment = 2789</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 previous br number for number 21 ### Context: CREATE TABLE table_2079664_3 (previous_br_no VARCHAR, number VARCHAR) ### Response: ### Response: SELECT COUNT(previous_br_no) FROM table_2079664_3 WHERE number = "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 is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0? ### Context: CREATE TABLE table_23248869_10 (score VARCHAR, location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_23248869_10 WHERE location_attendance = "Madison Square Garden 19,763" AND game < 80.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 was the date of appointment for Christos Kassianos who belonged to AEK? ### Context: CREATE TABLE table_name_38 (date_of_appointment VARCHAR, team VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Draw 5 have? ### Context: CREATE TABLE table_name_67 (points VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT points FROM table_name_67 WHERE draw = 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: How many Bronze medals did the team ranked 1 win? ### Context: CREATE TABLE table_name_32 (bronze VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_32 WHERE rank = "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: Which UK base has 441st tcg Troop carrier group and 14 as their seir serial? ### Context: CREATE TABLE table_name_9 (uk_base VARCHAR, troop_carrier_group VARCHAR, serial VARCHAR) ### Response: ### Response: SELECT uk_base FROM table_name_9 WHERE troop_carrier_group = "441st tcg" AND serial = "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: If the driver is Milka Duno, what is the name of the team? ### Context: CREATE TABLE table_17693171_1 (team VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT team FROM table_17693171_1 WHERE driver = "Milka Duno"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 longitude more than 103.8 and latitude of -11.4 ### Context: CREATE TABLE table_name_80 (name VARCHAR, longitude VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT name FROM table_name_80 WHERE longitude > 103.8 AND latitude = -11.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: Name the young rider classification with laudelino cubino ### Context: CREATE TABLE table_12261806_2 (young_rider_classification VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT young_rider_classification FROM table_12261806_2 WHERE winner = "Laudelino Cubino"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a friendly competition, hosted in Dubai, result in a draw? ### Context: CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT date FROM table_name_79 WHERE result = "draw" AND competition = "friendly" AND venue = "dubai"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week of the game on November 9, 1997? ### Context: CREATE TABLE table_name_1 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_1 WHERE date = "november 9, 1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lane total when rank is 2? ### Context: CREATE TABLE table_name_89 (lane INTEGER, rank VARCHAR) ### Response: ### Response: SELECT SUM(lane) FROM table_name_89 WHERE rank = 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 17th c., when American is "ə"? ### Context: CREATE TABLE table_name_25 (american VARCHAR) ### Response: ### Response: SELECT 17 AS th_c FROM table_name_25 WHERE american = "ə"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Worst score for Mario Lopez as the Best dancer and Tango as the Dance? ### Context: CREATE TABLE table_name_81 (worst_score INTEGER, best_dancer VARCHAR, dance VARCHAR) ### Response: ### Response: SELECT AVG(worst_score) FROM table_name_81 WHERE best_dancer = "mario lopez" AND dance = "tango"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 networks whose version of the show includes the judges batuhan zeynioğlu piatti murat bozok erol kaynar? ### Context: CREATE TABLE table_28190363_1 (network VARCHAR, judges VARCHAR) ### Response: ### Response: SELECT network FROM table_28190363_1 WHERE judges = "Batuhan Zeynioğlu Piatti Murat Bozok Erol Kaynar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What years did Omar Sneed play? ### Context: CREATE TABLE table_name_9 (season VARCHAR, name VARCHAR) ### Response: ### Response: SELECT season FROM table_name_9 WHERE name = "omar sneed"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Club/province has a Player of david penalva? ### Context: CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR) ### Response: ### Response: SELECT club_province FROM table_name_41 WHERE player = "david penalva"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 label is in download format in the United States? ### Context: CREATE TABLE table_name_88 (label VARCHAR, region VARCHAR, format VARCHAR) ### Response: ### Response: SELECT label FROM table_name_88 WHERE region = "united states" AND format = "download"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want the game site for week of 11 ### Context: CREATE TABLE table_name_17 (game_site VARCHAR, week VARCHAR) ### Response: ### Response: SELECT game_site FROM table_name_17 WHERE week = 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many available features are there in total? ### Context: CREATE TABLE Other_Available_Features (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Other_Available_Features</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 box score has a Loss of capuano (5–5)? ### Context: CREATE TABLE table_name_82 (boxscore VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT boxscore FROM table_name_82 WHERE loss = "capuano (5–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 Score, when Away Team is "Newcastle Benfield"? ### Context: CREATE TABLE table_name_18 (score VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_18 WHERE away_team = "newcastle benfield"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Regions center has a rank less than 11, what is the greatest number o floors? ### Context: CREATE TABLE table_name_62 (floors INTEGER, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(floors) FROM table_name_62 WHERE name = "regions center" AND rank < 11</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the sum of Draws that had the Wins smaller than 3, and the Byes larger than 2? ### Context: CREATE TABLE table_name_15 (draws INTEGER, wins VARCHAR, byes VARCHAR) ### Response: ### Response: SELECT SUM(draws) FROM table_name_15 WHERE wins < 3 AND byes > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was Canada's skip? ### Context: CREATE TABLE table_name_68 (skip VARCHAR, country VARCHAR) ### Response: ### Response: SELECT skip FROM table_name_68 WHERE country = "canada"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team's score at princes park? ### Context: CREATE TABLE table_name_49 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_49 WHERE venue = "princes park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the max pressure for the 468ft•lbf (634 j) muzzle energy? ### Context: CREATE TABLE table_name_99 (max_pressure VARCHAR, muzzle_energy VARCHAR) ### Response: ### Response: SELECT max_pressure FROM table_name_99 WHERE muzzle_energy = "468ft•lbf (634 j)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the names of conductors and the orchestras they have conducted. ### Context: CREATE TABLE conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR) ### Response: ### Response: SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year had a record of 4-21? ### Context: CREATE TABLE table_name_32 (year VARCHAR, record VARCHAR) ### Response: ### Response: SELECT year FROM table_name_32 WHERE record = "4-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 is Glider, when Speed is "147.3km/h"? ### Context: CREATE TABLE table_name_40 (glider VARCHAR, speed VARCHAR) ### Response: ### Response: SELECT glider FROM table_name_40 WHERE speed = "147.3km/h"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sweet for voice actor saki fujita? ### Context: CREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR) ### Response: ### Response: SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Tom Kite from? ### Context: CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_95 WHERE player = "tom kite"</s>