inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date released when the Left Bloc had 3.2%? ### Context: CREATE TABLE table_name_35 (date_released VARCHAR, left_bloc VARCHAR) ### Response: ### Response: SELECT date_released FROM table_name_35 WHERE left_bloc = "3.2%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Political group for p. maelius capitolinus? ### Context: CREATE TABLE table_name_58 (political_group VARCHAR, name VARCHAR) ### Response: ### Response: SELECT political_group FROM table_name_58 WHERE name = "p. maelius capitolinus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number is 2-01 what is the original UK air date? ### Context: CREATE TABLE table_2570269_2 (original_air_date__uk_ VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT original_air_date__uk_ FROM table_2570269_2 WHERE episode__number = "2-01"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record is 5-5, what is the game maximum? ### Context: CREATE TABLE table_23285805_4 (game INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_23285805_4 WHERE record = "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: Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no? ### Context: CREATE TABLE table_name_24 (gold_coast VARCHAR, melbourne VARCHAR, auckland VARCHAR, adelaide VARCHAR) ### Response: ### Response: SELECT gold_coast FROM table_name_24 WHERE auckland = "no" AND adelaide = "yes" AND melbourne = "no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date that ended in a record of 8-25-7? ### Context: CREATE TABLE table_name_21 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_21 WHERE record = "8-25-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: Name the tournament of beijing ### Context: CREATE TABLE table_name_71 (tournament VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_71 WHERE tournament = "beijing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the First Issue date of Soul Eater? ### Context: CREATE TABLE table_name_85 (first_issue VARCHAR, title VARCHAR) ### Response: ### Response: SELECT first_issue FROM table_name_85 WHERE title = "soul eater"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 value for utah when colorado and new mexico are bush? ### Context: CREATE TABLE table_name_7 (utah VARCHAR, colorado VARCHAR, new_mexico VARCHAR) ### Response: ### Response: SELECT utah FROM table_name_7 WHERE colorado = "bush" AND new_mexico = "bush"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title that received 1.211 million total viewers? ### Context: CREATE TABLE table_12419515_4 (written_by VARCHAR, total_viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT written_by FROM table_12419515_4 WHERE total_viewers__in_millions_ = "1.211"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for rebeka dremelj ### Context: CREATE TABLE table_21378339_5 (score VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT score FROM table_21378339_5 WHERE artist = "Rebeka Dremelj"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis had 16 points? ### Context: CREATE TABLE table_name_43 (chassis VARCHAR, points VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_43 WHERE points = 16</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many product # have episode 1? ### Context: CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR) ### Response: ### Response: SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__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: In the match where newcastle jets was the away team, what was the crown attendance? ### Context: CREATE TABLE table_name_79 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_79 WHERE away_team = "newcastle jets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year for score being 6–3, 6–2, 6–4 ### Context: CREATE TABLE table_22597626_6 (year VARCHAR, score_in_the_final VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_22597626_6 WHERE score_in_the_final = "6–3, 6–2, 6–4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number of values for "Teleplay by" category for series # 35? ### Context: CREATE TABLE table_14346950_1 (teleplay_by VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT COUNT(teleplay_by) FROM table_14346950_1 WHERE series__number = 35</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What college did the Rookie of the Year from the Columbus Crew attend? ### Context: CREATE TABLE table_1004033_1 (college VARCHAR, team VARCHAR) ### Response: ### Response: SELECT college FROM table_1004033_1 WHERE team = "Columbus Crew"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Jovy Sese play? ### Context: CREATE TABLE table_name_7 (season VARCHAR, name VARCHAR) ### Response: ### Response: SELECT season FROM table_name_7 WHERE name = "jovy sese"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team for the game that has a Tie value of 3? ### Context: CREATE TABLE table_name_36 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_36 WHERE tie_no = "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 name of the shipping agent of the document with id 2? ### Context: CREATE TABLE Documents (Id VARCHAR); CREATE TABLE Ref_Shipping_Agents (Id VARCHAR) ### Response: ### Response: SELECT Ref_Shipping_Agents.shipping_agent_name FROM Ref_Shipping_Agents JOIN Documents ON Documents.shipping_agent_code = Ref_Shipping_Agents.shipping_agent_code WHERE Documents.document_id = 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the mascot at Borden? ### Context: CREATE TABLE table_name_48 (mascot VARCHAR, school VARCHAR) ### Response: ### Response: SELECT mascot FROM table_name_48 WHERE school = "borden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the private/presbyterian institute ### Context: CREATE TABLE table_1974632_1 (location VARCHAR, type VARCHAR) ### Response: ### Response: SELECT location FROM table_1974632_1 WHERE type = "Private/Presbyterian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 regionalliga nord with regionalliga süd being 1. fc nuremberg spvgg greuther fürth ### Context: CREATE TABLE table_14242137_11 (regionalliga_nord VARCHAR, regionalliga_süd VARCHAR) ### Response: ### Response: SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_süd = "1. FC Nuremberg SpVgg Greuther Fürth"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 monthly rentals of student addresses in Texas state? ### Context: CREATE TABLE Addresses (address_id VARCHAR, state_province_county VARCHAR); CREATE TABLE Student_Addresses (monthly_rental VARCHAR, address_id VARCHAR) ### Response: ### Response: SELECT T2.monthly_rental FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id WHERE T1.state_province_county = "Texas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the to par of player vijay singh? ### Context: CREATE TABLE table_name_31 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_31 WHERE player = "vijay singh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a pick# of 11, a position of offensive tackle, and overall less than 414? ### Context: CREATE TABLE table_name_24 (round INTEGER, position VARCHAR, pick__number VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_name_24 WHERE pick__number = 11 AND overall < 414 AND position = "offensive tackle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3rd ru does Costa Rica have? ### Context: CREATE TABLE table_17522854_6 (country VARCHAR) ### Response: ### Response: SELECT MAX(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Costa Rica"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Brian Mateer's Speed? ### Context: CREATE TABLE table_name_1 (speed VARCHAR, rider VARCHAR) ### Response: ### Response: SELECT speed FROM table_name_1 WHERE rider = "brian mateer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 replication site when the species is enveloped and is of the bunyaviridae family? ### Context: CREATE TABLE table_name_58 (replication_site VARCHAR, envelopment VARCHAR, family VARCHAR) ### Response: ### Response: SELECT replication_site FROM table_name_58 WHERE envelopment = "enveloped" AND family = "bunyaviridae"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last names are both used by customers and by staff? ### Context: CREATE TABLE Customers (last_name VARCHAR); CREATE TABLE Staff (last_name VARCHAR) ### Response: ### Response: SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Series of the Filmography with a Release date of 1946-03-16? ### Context: CREATE TABLE table_name_85 (series VARCHAR, release_date VARCHAR) ### Response: ### Response: SELECT series FROM table_name_85 WHERE release_date = "1946-03-16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player had an overall pick of 130? ### Context: CREATE TABLE table_name_53 (player VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT player FROM table_name_53 WHERE overall = "130"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2014, what are the id and rank of the team that has the largest average number of attendance? ### Context: CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) 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's the highest time for the 1995 200 metres event? ### Context: CREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR) ### Response: ### Response: SELECT MAX(time) FROM table_name_31 WHERE year = 1995 AND event = "200 metres"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 song choice when the theme is not aired? ### Context: CREATE TABLE table_12175755_1 (theme VARCHAR, song_choice VARCHAR) ### Response: ### Response: SELECT theme FROM table_12175755_1 WHERE song_choice = "Not Aired"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population in the city of Pomorskie? ### Context: CREATE TABLE table_11654169_1 (population_in_1000__1931_ VARCHAR, voivodeship_separate_city VARCHAR) ### Response: ### Response: SELECT population_in_1000__1931_ FROM table_11654169_1 WHERE voivodeship_separate_city = "pomorskie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0? ### Context: CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-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 name of department where has the largest number of professors with a Ph.D. degree? ### Context: CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) ### Response: ### Response: SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code 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: What is the statue of the aat gene, which has an intramuscular route of administration? ### Context: CREATE TABLE table_name_98 (status VARCHAR, route_of_administration VARCHAR, gene VARCHAR) ### Response: ### Response: SELECT status FROM table_name_98 WHERE route_of_administration = "intramuscular" AND gene = "aat"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bronze when the rank is 3 and the total is more than 2? ### Context: CREATE TABLE table_name_24 (bronze INTEGER, rank VARCHAR, total VARCHAR) ### Response: ### Response: SELECT SUM(bronze) FROM table_name_24 WHERE rank = "3" AND total > 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 team's position when the new manager was Lucas Alcaraz? ### Context: CREATE TABLE table_17201869_3 (position_in_table VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT position_in_table FROM table_17201869_3 WHERE replaced_by = "Lucas Alcaraz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the outcome from the 2009 match in the final against Chong Wei Feng? ### Context: CREATE TABLE table_name_44 (outcome VARCHAR, year VARCHAR, opponent_in_final VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_44 WHERE year = 2009 AND opponent_in_final = "chong wei feng"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for 26 may 1997 ### Context: CREATE TABLE table_name_4 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_4 WHERE date = "26 may 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: Where was match which had Joe Lauzon as an opponent? ### Context: CREATE TABLE table_name_76 (location VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT location FROM table_name_76 WHERE opponent = "joe lauzon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won the silver medal in the games where Hong Chia-yuh took home bronze? ### Context: CREATE TABLE table_name_5 (silver VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT silver FROM table_name_5 WHERE bronze = "hong chia-yuh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game number with a score of 116–138? ### Context: CREATE TABLE table_name_31 (game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_31 WHERE score = "116–138"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Pick # of 331 went to which college? ### Context: CREATE TABLE table_name_36 (college VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT college FROM table_name_36 WHERE pick__number = 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: What catalog uses the stereo compact cassette format? ### Context: CREATE TABLE table_name_10 (catalog VARCHAR, format VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_10 WHERE format = "stereo compact cassette"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner-up is listed as Gigi Fernández Natalia Zvereva and the week is 26 June 2 weeks, who are the semi finalists? ### Context: CREATE TABLE table_name_25 (semi_finalists VARCHAR, runner_up VARCHAR, week_of VARCHAR) ### Response: ### Response: SELECT semi_finalists FROM table_name_25 WHERE runner_up = "gigi fernández natalia zvereva" AND week_of = "26 june 2 weeks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 assembly segment with a constituency number of 214? ### Context: CREATE TABLE table_name_55 (name VARCHAR, constituency_number VARCHAR) ### Response: ### Response: SELECT name FROM table_name_55 WHERE constituency_number = "214"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What round was the player Ty Lawson with a pick earlier than 18? ### Context: CREATE TABLE table_name_90 (round INTEGER, player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT AVG(round) FROM table_name_90 WHERE player = "ty lawson" AND pick < 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: When 21' 18.87 106.209mph is Tuesday August 24th what is Monday August 23rd? ### Context: CREATE TABLE table_26986076_5 (mon_23_aug VARCHAR, tues_24_aug VARCHAR) ### Response: ### Response: SELECT mon_23_aug FROM table_26986076_5 WHERE tues_24_aug = "21' 18.87 106.209mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the venue where the opponent scored 51? ### Context: CREATE TABLE table_14877831_2 (venue VARCHAR, opponents VARCHAR) ### Response: ### Response: SELECT venue FROM table_14877831_2 WHERE opponents = 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: Find the name of all students who were in the tryout sorted in alphabetic order. ### Context: CREATE TABLE tryout (pID VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### Response: ### Response: SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match report has l 7-30 as the result/score? ### Context: CREATE TABLE table_name_98 (match_report VARCHAR, result_score VARCHAR) ### Response: ### Response: SELECT match_report FROM table_name_98 WHERE result_score = "l 7-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: Where is the venue with more than 245 runs? ### Context: CREATE TABLE table_name_71 (venue VARCHAR, runs VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_71 WHERE runs = "245"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 largest amount of spectators when St Kilda was the away team? ### Context: CREATE TABLE table_name_36 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_36 WHERE away_team = "st kilda"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which album was on June 1998? ### Context: CREATE TABLE table_name_27 (album VARCHAR, year VARCHAR) ### Response: ### Response: SELECT album FROM table_name_27 WHERE year = "june 1998"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes? ### Context: CREATE TABLE table_17356106_1 (series__number INTEGER, directed_by VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT MAX(series__number) FROM table_17356106_1 WHERE directed_by = "Laura Innes" AND season__number < 7.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 districts does john j. douglass represent? ### Context: CREATE TABLE table_1342379_20 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Douglass"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high assists for 70 game ### Context: CREATE TABLE table_17001658_9 (high_assists VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_17001658_9 WHERE game = 70</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Group by ships by flag, and return number of ships that have each flag. ### Context: CREATE TABLE ship (flag VARCHAR) ### Response: ### Response: SELECT COUNT(*), flag FROM ship GROUP BY flag</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrant when the points is 42 (45) and the chassis is brabham bt20? ### Context: CREATE TABLE table_name_25 (entrant VARCHAR, points VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_25 WHERE points = "42 (45)" AND chassis = "brabham bt20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name is on the of fc sète olympique de marseille? ### Context: CREATE TABLE table_name_39 (name VARCHAR, teams VARCHAR) ### Response: ### Response: SELECT name FROM table_name_39 WHERE teams = "fc sète olympique de marseille"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 each product which has problems, what are the number of problems and the product id? ### Context: CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_id VARCHAR) ### Response: ### Response: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_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: Name all of the february ### Context: CREATE TABLE table_1539201_1 (february VARCHAR) ### Response: ### Response: SELECT february FROM table_1539201_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: On what date were the NY Rangers home? ### Context: CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR) ### Response: ### Response: SELECT date FROM table_name_98 WHERE home = "ny rangers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Alicja Rosolska Partnered with when the Score in Final was 4–6, 3–6? ### Context: CREATE TABLE table_name_97 (partnered_with VARCHAR, score_in_final VARCHAR) ### Response: ### Response: SELECT partnered_with FROM table_name_97 WHERE score_in_final = "4–6, 3–6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the City of license that has a ERP kW more than 4.5 and w23dr-d? ### Context: CREATE TABLE table_name_45 (city_of_license VARCHAR, erp_kw VARCHAR, station VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_45 WHERE erp_kw > 4.5 AND station = "w23dr-d"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of Top-25 when there are more than 0 wins? ### Context: CREATE TABLE table_name_46 (top_25 INTEGER, wins INTEGER) ### Response: ### Response: SELECT SUM(top_25) FROM table_name_46 WHERE wins > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008? ### Context: CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what round was a defensive tackle drafted with an overall pick smaller than 149? ### Context: CREATE TABLE table_name_25 (round VARCHAR, position VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_name_25 WHERE position = "defensive tackle" AND overall < 149</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 place and when was the year when the women's doubles womens were Bai yang Niu Jianfeng? ### Context: CREATE TABLE table_28138035_33 (year_location VARCHAR, womens_doubles VARCHAR) ### Response: ### Response: SELECT year_location FROM table_28138035_33 WHERE womens_doubles = "Bai Yang Niu Jianfeng"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 original air date for production code 1ark79? ### Context: CREATE TABLE table_22835602_1 (original_air_date VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_22835602_1 WHERE production_code = "1ARK79"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the qualifying score 60.750? ### Context: CREATE TABLE table_13114949_3 (event VARCHAR, qualifying_score VARCHAR) ### Response: ### Response: SELECT COUNT(event) FROM table_13114949_3 WHERE qualifying_score = "60.750"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What opponent has tomko (1-1) as a loss? ### Context: CREATE TABLE table_name_24 (opponent VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_24 WHERE loss = "tomko (1-1)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What role did Pick # 10 have? ### Context: CREATE TABLE table_name_22 (role VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT role FROM table_name_22 WHERE pick__number = 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals? ### Context: CREATE TABLE table_name_78 (cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR) ### Response: ### Response: SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was the game that resulted in L 30-27? ### Context: CREATE TABLE table_name_34 (date VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_34 WHERE result = "l 30-27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report for bugatti and brooklands ### Context: CREATE TABLE table_name_96 (report VARCHAR, winning_constructor VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT report FROM table_name_96 WHERE winning_constructor = "bugatti" AND circuit = "brooklands"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which player has a pick# over 47? ### Context: CREATE TABLE table_name_87 (player VARCHAR, pick__number INTEGER) ### Response: ### Response: SELECT player FROM table_name_87 WHERE pick__number > 47</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regular season for final playoffs ### Context: CREATE TABLE table_2361911_2 (regular_season VARCHAR, playoffs VARCHAR) ### Response: ### Response: SELECT regular_season FROM table_2361911_2 WHERE playoffs = "Final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)? ### Context: CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR) ### Response: ### Response: SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "233.4 (16)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country is player thomas bjørn from? ### Context: CREATE TABLE table_name_96 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_96 WHERE player = "thomas bjørn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with original air date being september23,1995 ### Context: CREATE TABLE table_14637853_3 (written_by VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT written_by FROM table_14637853_3 WHERE original_air_date = "September23,1995"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Pilot, when Weapon is "35mm fire", and when Date is "4 May 1982"? ### Context: CREATE TABLE table_name_48 (pilot VARCHAR, weapon VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pilot FROM table_name_48 WHERE weapon = "35mm fire" AND date = "4 may 1982"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the most recent date founded in elk county? ### Context: CREATE TABLE table_name_6 (date_founded INTEGER, county_or_counties VARCHAR) ### Response: ### Response: SELECT MAX(date_founded) FROM table_name_6 WHERE county_or_counties = "elk county"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Car number 15 earned what time? ### Context: CREATE TABLE table_17244483_1 (time_retired VARCHAR, car_no VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_17244483_1 WHERE car_no = 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: Tell me the sum of longitude for diameter being 22.6 and latitude less than -12.4 ### Context: CREATE TABLE table_name_65 (longitude INTEGER, diameter__km_ VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT SUM(longitude) FROM table_name_65 WHERE diameter__km_ = 22.6 AND latitude < -12.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: Tell me the average Grid for driver of Luca Badoer and Laps more than 69 ### Context: CREATE TABLE table_name_73 (grid INTEGER, driver VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT AVG(grid) FROM table_name_73 WHERE driver = "luca badoer" AND laps > 69</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Michigan State's position? ### Context: CREATE TABLE table_name_59 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_59 WHERE school_club_team = "michigan state"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of games? ### Context: CREATE TABLE table_name_13 (game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_13 WHERE score = "new york yankees – 2, brooklyn dodgers – 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 Builder of Locomotive 2? ### Context: CREATE TABLE table_name_6 (builder VARCHAR, locomotive VARCHAR) ### Response: ### Response: SELECT builder FROM table_name_6 WHERE locomotive = "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: Can you tell me the average Total votes that has the # of seats won smaller than 0? ### Context: CREATE TABLE table_name_75 (total_votes INTEGER, _number_of_seats_won INTEGER) ### Response: ### Response: SELECT AVG(total_votes) FROM table_name_75 WHERE _number_of_seats_won < 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 average number of Gold medals when there are 5 bronze medals? ### Context: CREATE TABLE table_name_82 (gold INTEGER, bronze VARCHAR) ### Response: ### Response: SELECT AVG(gold) FROM table_name_82 WHERE bronze = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total code number for places with a population greater than 87,585? ### Context: CREATE TABLE table_name_41 (code VARCHAR, population INTEGER) ### Response: ### Response: SELECT COUNT(code) FROM table_name_41 WHERE population > 87 OFFSET 585</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GTO winning team in round 5 when the GTU winning team was #59 Brumos Porsche - Audi? ### Context: CREATE TABLE table_13642023_2 (gto_winning_team VARCHAR, rnd VARCHAR, gtu_winning_team VARCHAR) ### Response: ### Response: SELECT gto_winning_team FROM table_13642023_2 WHERE rnd = 5 AND gtu_winning_team = "#59 Brumos Porsche - Audi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance for Week 1? ### Context: CREATE TABLE table_name_48 (attendance VARCHAR, week VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_48 WHERE week = 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 guest performer has a track length of 5:49? ### Context: CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR) ### Response: ### Response: SELECT guest_performer FROM table_name_8 WHERE time = "5:49"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position has a player at Arizona state? ### Context: CREATE TABLE table_name_95 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_95 WHERE school_club_team = "arizona state"</s>