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 total gain for Brandon Mcrae with a loss less than 4, and an Avg/g less than -0.1? ### Context: CREATE TABLE table_name_90 (gain VARCHAR, avg_g VARCHAR, long VARCHAR, name VARCHAR) ### Response: ### Response: SELECT COUNT(gain) FROM table_name_90 WHERE long < 4 AND name = "brandon mcrae" AND avg_g < -0.1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of silver medals of the team with 0 gold, ranked 5, and more than 0 bronze medals? ### Context: CREATE TABLE table_name_84 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT SUM(silver) FROM table_name_84 WHERE gold = 0 AND rank = "5" AND bronze > 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 date was the opponents the Oakland Raiders? ### Context: CREATE TABLE table_name_88 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_88 WHERE opponent = "oakland raiders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year that the Belanger Motors had an Offenhauser l4 engine? ### Context: CREATE TABLE table_name_8 (year INTEGER, engine VARCHAR, entrant VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_8 WHERE engine = "offenhauser l4" AND entrant = "belanger motors"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 id of problems reported by the staff named Dameon Frami or Jolie Weber? ### Context: CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (reported_by_staff_id VARCHAR) ### Response: ### Response: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 statuses are there for the Durham district? ### Context: CREATE TABLE table_2801185_2 (status VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was Mario Elie picked in a round before 7? ### Context: CREATE TABLE table_name_75 (pick INTEGER, player VARCHAR, round VARCHAR) ### Response: ### Response: SELECT MAX(pick) FROM table_name_75 WHERE player = "mario elie" AND round < 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total number played with a difference of 22 and less than 34 against? ### Context: CREATE TABLE table_name_76 (played VARCHAR, difference VARCHAR, against VARCHAR) ### Response: ### Response: SELECT COUNT(played) FROM table_name_76 WHERE difference = "22" AND against < 34</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division record for riders ### Context: CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR) ### Response: ### Response: SELECT division_record FROM table_name_28 WHERE team = "riders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4–0? ### Context: CREATE TABLE table_name_88 (long INTEGER, avg_g VARCHAR, gp_gs VARCHAR) ### Response: ### Response: SELECT MAX(long) FROM table_name_88 WHERE avg_g < 8.4 AND gp_gs = "4–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 South Melbourne's score when they played as the home team? ### Context: CREATE TABLE table_name_9 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_9 WHERE home_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many schools with greyhounds as their nickname? ### Context: CREATE TABLE table_1969634_1 (institution VARCHAR, nickname VARCHAR) ### Response: ### Response: SELECT COUNT(institution) FROM table_1969634_1 WHERE nickname = "Greyhounds"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Type of primary, and a Call letters of kktx-fm has what average Frequency (MHz)? ### Context: CREATE TABLE table_name_40 (frequency__mhz_ INTEGER, type VARCHAR, call_letters VARCHAR) ### Response: ### Response: SELECT AVG(frequency__mhz_) FROM table_name_40 WHERE type = "primary" AND call_letters = "kktx-fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many championships does Evergreen Premier League have? ### Context: CREATE TABLE table_name_48 (championships INTEGER, league VARCHAR) ### Response: ### Response: SELECT MAX(championships) FROM table_name_48 WHERE league = "evergreen premier league"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2009, when 2011 is "Q2"? ### Context: CREATE TABLE table_name_62 (Id VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_62 WHERE 2011 = "q2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ethnic group has 5% of people categorizing religion as other? ### Context: CREATE TABLE table_name_98 (ethnic_group VARCHAR, other VARCHAR) ### Response: ### Response: SELECT ethnic_group FROM table_name_98 WHERE other = "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: Who were the Paraguay scorers on June 15, 2008? ### Context: CREATE TABLE table_name_1 (paraguay_scorers VARCHAR, date VARCHAR) ### Response: ### Response: SELECT paraguay_scorers FROM table_name_1 WHERE date = "june 15, 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: When aspect computing is the yacht what is the sail number? ### Context: CREATE TABLE table_1858574_2 (sail_number VARCHAR, yacht VARCHAR) ### Response: ### Response: SELECT sail_number FROM table_1858574_2 WHERE yacht = "Aspect Computing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what venue does tim southee bowl at? ### Context: CREATE TABLE table_name_14 (venue VARCHAR, player VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_14 WHERE player = "tim southee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 games lost when the against is greater than 1401, and the draws greater than 0? ### Context: CREATE TABLE table_name_9 (losses INTEGER, draws VARCHAR, against VARCHAR) ### Response: ### Response: SELECT MAX(losses) FROM table_name_9 WHERE draws > 0 AND against > 1401</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the archbishop that was born on February 10, 1858 ordained a bishop? ### Context: CREATE TABLE table_name_80 (ordained_bishop VARCHAR, born VARCHAR) ### Response: ### Response: SELECT ordained_bishop FROM table_name_80 WHERE born = "february 10, 1858"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 quantity of populace (2010) where location (km²) is 134.51 ### Context: CREATE TABLE table_255812_1 (population__2010_ VARCHAR, area__km²_ VARCHAR) ### Response: ### Response: SELECT COUNT(population__2010_) FROM table_255812_1 WHERE area__km²_ = "134.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: What is listed in tor floysvik when karianne gulliksen is 6? ### Context: CREATE TABLE table_28677723_10 (tor_fløysvik INTEGER, karianne_gulliksen VARCHAR) ### Response: ### Response: SELECT MIN(tor_fløysvik) FROM table_28677723_10 WHERE karianne_gulliksen = 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many joined this Private/Church of God institution? ### Context: CREATE TABLE table_255205_1 (joined VARCHAR, type VARCHAR) ### Response: ### Response: SELECT joined FROM table_255205_1 WHERE type = "Private/Church of God"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 remixed the version after 1999? ### Context: CREATE TABLE table_name_97 (remixed_by VARCHAR, year INTEGER) ### Response: ### Response: SELECT remixed_by FROM table_name_97 WHERE year > 1999</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Robert Dirk's team? ### Context: CREATE TABLE table_2850912_3 (college_junior_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_2850912_3 WHERE player = "Robert Dirk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team impul with the date of 8 july ### Context: CREATE TABLE table_name_64 (round INTEGER, team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_64 WHERE team = "team impul" AND date = "8 july"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on september 28? ### Context: CREATE TABLE table_name_58 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_58 WHERE date = "september 28"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for matches with a prize money amount of £3,000? ### Context: CREATE TABLE table_name_56 (matches INTEGER, prize_money VARCHAR) ### Response: ### Response: SELECT AVG(matches) FROM table_name_56 WHERE prize_money = "£3,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Human Resources & Operations person between 2003-2004? ### Context: CREATE TABLE table_name_14 (human_resources_ VARCHAR, _operations VARCHAR, year VARCHAR) ### Response: ### Response: SELECT human_resources_ & _operations FROM table_name_14 WHERE year = "2003-2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the team that have at least two technicians. ### Context: CREATE TABLE technician (Team VARCHAR) ### Response: ### Response: SELECT Team FROM technician GROUP BY Team HAVING COUNT(*) >= 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: Find the first names of students with age above 22. ### Context: CREATE TABLE STUDENT (Fname VARCHAR, Age INTEGER) ### Response: ### Response: SELECT Fname FROM STUDENT WHERE Age > 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which school has a Player of donte greene? ### Context: CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school FROM table_name_6 WHERE player = "donte greene"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Country, when Place is T6, and when Player is "Raymond Floyd"? ### Context: CREATE TABLE table_name_3 (country VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_3 WHERE place = "t6" AND player = "raymond floyd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent at the game in Belgrade with a 0:2 result? ### Context: CREATE TABLE table_name_28 (opponent VARCHAR, city VARCHAR, results¹ VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_28 WHERE city = "belgrade" AND results¹ = "0: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 Left Office, when Took Office is 2006? ### Context: CREATE TABLE table_name_82 (left_office VARCHAR, took_office VARCHAR) ### Response: ### Response: SELECT left_office FROM table_name_82 WHERE took_office = "2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many restaurant is the Sandwich type restaurant? ### Context: CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 primers annulus colors were there when the color of the bullet tip was white? ### Context: CREATE TABLE table_1036189_1 (primer_annulus_color VARCHAR, bullet_tip_color VARCHAR) ### Response: ### Response: SELECT COUNT(primer_annulus_color) FROM table_1036189_1 WHERE bullet_tip_color = "White"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What nationality has a higher round than 8? ### Context: CREATE TABLE table_name_86 (nationality VARCHAR, round INTEGER) ### Response: ### Response: SELECT nationality FROM table_name_86 WHERE round > 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: Find the first names of students studying in room 108. ### Context: CREATE TABLE list (firstname VARCHAR, classroom VARCHAR) ### Response: ### Response: SELECT firstname FROM list WHERE classroom = 108</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the low rank for hale irwin with under 32 wins? ### Context: CREATE TABLE table_name_37 (rank INTEGER, player VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_37 WHERE player = "hale irwin" AND wins < 32</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least selection for ron barnett ### Context: CREATE TABLE table_name_39 (selection INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(selection) FROM table_name_39 WHERE player = "ron barnett"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 hugh white's weight? ### Context: CREATE TABLE table_14342210_13 (weight INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(weight) FROM table_14342210_13 WHERE player = "Hugh White"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 long is the song titled burning love? ### Context: CREATE TABLE table_name_54 (time VARCHAR, song_title VARCHAR) ### Response: ### Response: SELECT time FROM table_name_54 WHERE song_title = "burning love"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the result of the game when the competition was a friendly match, and the Score was 1 – 1? ### Context: CREATE TABLE table_name_65 (result VARCHAR, competition VARCHAR, score VARCHAR) ### Response: ### Response: SELECT result FROM table_name_65 WHERE competition = "friendly match" AND score = "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 date was the Home team fitzroy? ### Context: CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_18 WHERE home_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 and age of the pilot who has won the most number of times among the pilots who are younger than 30. ### Context: CREATE TABLE MATCH (winning_pilot VARCHAR); CREATE TABLE pilot (name VARCHAR, age INTEGER, pilot_id VARCHAR) ### Response: ### Response: SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot WHERE t1.age < 30 GROUP BY t2.winning_pilot 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 lowest number of participants in 2012 when there were 72 in 2010 and less than 56 in 2013? ### Context: CREATE TABLE table_name_17 (Id VARCHAR) ### Response: ### Response: SELECT MIN(2012) FROM table_name_17 WHERE 2010 = 72 AND 2013 < 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: Find the policy type used by more than 4 customers. ### Context: CREATE TABLE available_policies (policy_type_code VARCHAR) ### Response: ### Response: SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING COUNT(*) > 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 tournament when the winning score is 2 and 1? ### Context: CREATE TABLE table_name_29 (tournament VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_29 WHERE winning_score = "2 and 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: Where is the margin of victory dated mar 28, 2004? ### Context: CREATE TABLE table_1121352_2 (margin_of_victory VARCHAR, date VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_1121352_2 WHERE date = "Mar 28, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name and number of followers for each user, and sort the results by the number of followers in descending order. ### Context: CREATE TABLE user_profiles (name VARCHAR, followers VARCHAR) ### Response: ### Response: SELECT name, followers FROM user_profiles ORDER BY followers DESC</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of Final year that has a Notes of replaced by i-96? ### Context: CREATE TABLE table_name_15 (final_year INTEGER, notes VARCHAR) ### Response: ### Response: SELECT SUM(final_year) FROM table_name_15 WHERE notes = "replaced by i-96"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 special notes value for years under 2009? ### Context: CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER) ### Response: ### Response: SELECT special_notes FROM table_name_56 WHERE year < 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: If the national trophy/rookie is Simone Iaquinta, what is the season total number? ### Context: CREATE TABLE table_25563779_4 (season VARCHAR, national_trophy_rookie VARCHAR) ### Response: ### Response: SELECT COUNT(season) FROM table_25563779_4 WHERE national_trophy_rookie = "Simone Iaquinta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year in which the winner record is Ireland 4 points? ### Context: CREATE TABLE table_28601467_1 (year INTEGER, winner VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_28601467_1 WHERE winner = "Ireland 4 points"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Per capita income where Median family income is $72,288? ### Context: CREATE TABLE table_name_7 (per_capita_income VARCHAR, median_family_income VARCHAR) ### Response: ### Response: SELECT per_capita_income FROM table_name_7 WHERE median_family_income = "$72,288"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 method against Paula Mataele? ### Context: CREATE TABLE table_name_26 (method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT method FROM table_name_26 WHERE opponent = "paula mataele"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the smallest silver with a Bronze smaller than 6, a Total of 3, and a Rank smaller than 9? ### Context: CREATE TABLE table_name_33 (silver INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_33 WHERE bronze < 6 AND total = 3 AND rank < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the highest up:down ratio with 4 mbit/s upstream? ### Context: CREATE TABLE table_name_72 (up INTEGER, upstream VARCHAR) ### Response: ### Response: SELECT MAX(up) AS :down_ratio FROM table_name_72 WHERE upstream = "4 mbit/s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many contestants had a starting bmi of 33.1? ### Context: CREATE TABLE table_28654454_5 (finale_weight VARCHAR, starting_bmi VARCHAR) ### Response: ### Response: SELECT COUNT(finale_weight) FROM table_28654454_5 WHERE starting_bmi = "33.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 frequency for the magazine that runs September 2, 2010? ### Context: CREATE TABLE table_name_62 (frequency VARCHAR, magazine_run VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_62 WHERE magazine_run = "september 2, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 5th, south western district 2 is the mens 2nd xi what is the season? ### Context: CREATE TABLE table_21576644_2 (season VARCHAR, mens_2nd_xi VARCHAR) ### Response: ### Response: SELECT season FROM table_21576644_2 WHERE mens_2nd_xi = "5th, South Western District 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When salyut 7 – ve-4 – eva 1 is the spacecraft, what is the duration? ### Context: CREATE TABLE table_245801_2 (duration VARCHAR, spacecraft VARCHAR) ### Response: ### Response: SELECT duration FROM table_245801_2 WHERE spacecraft = "Salyut 7 – VE-4 – EVA 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 method for a match with a Round larger than 2, he took a loss, and 15–3 was the record? ### Context: CREATE TABLE table_name_67 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR) ### Response: ### Response: SELECT method FROM table_name_67 WHERE round > 2 AND res = "loss" AND record = "15–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 highest amount of yards when the average is 9.5? ### Context: CREATE TABLE table_name_12 (yards INTEGER, average VARCHAR) ### Response: ### Response: SELECT MAX(yards) FROM table_name_12 WHERE average = 9.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: Who used the Ford Cosworth DFV 3.0 v8 engine in rounds 3-12, with a G tire? ### Context: CREATE TABLE table_name_22 (driver VARCHAR, tyre VARCHAR, engine VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_22 WHERE engine = "ford cosworth dfv 3.0 v8" AND rounds = "3-12" AND tyre = "g"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 July temperature where the annual precipitation is 514mm (20.2in)? ### Context: CREATE TABLE table_name_23 (july VARCHAR, annual_precipitation VARCHAR) ### Response: ### Response: SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country for ICAO tjvq ### Context: CREATE TABLE table_name_14 (country VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT country FROM table_name_14 WHERE icao = "tjvq"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Record description of maximum load to m (ft), and a Date of 23 september 1961 is what pilot? ### Context: CREATE TABLE table_name_89 (pilot VARCHAR, record_description VARCHAR, date VARCHAR) ### Response: ### Response: SELECT pilot FROM table_name_89 WHERE record_description = "maximum load to m (ft)" AND date = "23 september 1961"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did season 12 premiere? ### Context: CREATE TABLE table_2655016_4 (original_air_date VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_2655016_4 WHERE season__number = 12</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was South Melbourne's score as the away team? ### Context: CREATE TABLE table_name_50 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For which to par was the score 71-74-68=213? ### Context: CREATE TABLE table_name_11 (to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_11 WHERE score = 71 - 74 - 68 = 213</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which yacht name has a Combined elapsed time of 179d 11h 58m 14s? ### Context: CREATE TABLE table_name_50 (yacht_name VARCHAR, combined_elapsed_time VARCHAR) ### Response: ### Response: SELECT yacht_name FROM table_name_50 WHERE combined_elapsed_time = "179d 11h 58m 14s"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 people live in Gelderland district? ### Context: CREATE TABLE city (Population INTEGER, District VARCHAR) ### Response: ### Response: SELECT SUM(Population) FROM city WHERE District = "Gelderland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the NBC network, what was the new/returning/same network status? ### Context: CREATE TABLE table_169766_13 (new_returning_same_network VARCHAR, previous_network VARCHAR) ### Response: ### Response: SELECT new_returning_same_network FROM table_169766_13 WHERE previous_network = "NBC"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day were the Denver Broncos the opponent? ### Context: CREATE TABLE table_14655917_1 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_14655917_1 WHERE opponent = "Denver Broncos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT SCORE WAS ON SEPTEMBER 21? ### Context: CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_50 WHERE date = "september 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: How many points for did Bridgend Athletic RFC score? ### Context: CREATE TABLE table_name_86 (points_for VARCHAR, club VARCHAR) ### Response: ### Response: SELECT points_for FROM table_name_86 WHERE club = "bridgend athletic rfc"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74? ### Context: CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR) ### Response: ### Response: SELECT SUM(lane) FROM table_name_82 WHERE reaction_time < 0.218 AND time > 44.74 AND nationality = "great britain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the agg when team 2 was Cementarnica? ### Context: CREATE TABLE table_name_94 (agg VARCHAR, team_2 VARCHAR) ### Response: ### Response: SELECT agg FROM table_name_94 WHERE team_2 = "cementarnica"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Loss listed with a Score of 5-1? ### Context: CREATE TABLE table_name_60 (loss VARCHAR, score VARCHAR) ### Response: ### Response: SELECT loss FROM table_name_60 WHERE score = "5-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: Who built the car that has a Time/Retired of 1:36:38.887? ### Context: CREATE TABLE table_name_66 (constructor VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_66 WHERE time_retired = "1:36:38.887"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the game in Stuttgart, West Germany and a goal number of less than 9? ### Context: CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR) ### Response: ### Response: SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the guests on a show where the production code is 6152? ### Context: CREATE TABLE table_25691838_12 (guest VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT guest FROM table_25691838_12 WHERE production_code = 6152</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listed for Departure that has 1676 listed for the Kilometers? ### Context: CREATE TABLE table_name_88 (departure VARCHAR, kilometers VARCHAR) ### Response: ### Response: SELECT departure FROM table_name_88 WHERE kilometers = 1676</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Results, when First Elected is less than 1988? ### Context: CREATE TABLE table_name_93 (results VARCHAR, first_elected INTEGER) ### Response: ### Response: SELECT results FROM table_name_93 WHERE first_elected < 1988</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 match with Opponent in the final of Filip Polášek? ### Context: CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT date FROM table_name_49 WHERE opponent_in_the_final = "filip polášek"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 day of vacancy for vitória de guimarães? ### Context: CREATE TABLE table_name_78 (date_of_vacancy VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date_of_vacancy FROM table_name_78 WHERE team = "vitória de guimarães"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position for team corinthians with over 14 against? ### Context: CREATE TABLE table_name_90 (position INTEGER, team VARCHAR, against VARCHAR) ### Response: ### Response: SELECT AVG(position) FROM table_name_90 WHERE team = "corinthians" AND against > 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: On November 20, 1994, what was the result of the game? ### Context: CREATE TABLE table_name_65 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_65 WHERE date = "november 20, 1994"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the episode with 418 as the production code? ### Context: CREATE TABLE table_2818164_5 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_2818164_5 WHERE production_code = 418</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 League with a Year that is 1990/91? ### Context: CREATE TABLE table_name_64 (league VARCHAR, year VARCHAR) ### Response: ### Response: SELECT league FROM table_name_64 WHERE year = "1990/91"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 university that was established in 2000? ### Context: CREATE TABLE table_name_44 (location VARCHAR, established VARCHAR) ### Response: ### Response: SELECT location FROM table_name_44 WHERE established = 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series number that aired on november 11, 1996 ### Context: CREATE TABLE table_18646432_1 (series__number VARCHAR, original_air_date VARCHAR) ### Response: ### Response: SELECT series__number FROM table_18646432_1 WHERE original_air_date = "November 11, 1996"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which city's ICAO is WADD? ### Context: CREATE TABLE table_name_92 (city VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT city FROM table_name_92 WHERE icao = "wadd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 away team for the match at Punt Road Oval? ### Context: CREATE TABLE table_name_39 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_39 WHERE venue = "punt road 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: Which Chief Judge has Active service of 1873–1875? ### Context: CREATE TABLE table_name_23 (chief_judge VARCHAR, active_service VARCHAR) ### Response: ### Response: SELECT chief_judge FROM table_name_23 WHERE active_service = "1873–1875"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score in Kathmandu? ### Context: CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT score FROM table_name_96 WHERE venue = "kathmandu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: the names of models that launched between 2002 and 2004. ### Context: CREATE TABLE chip_model (Model_name VARCHAR, Launch_year INTEGER) ### Response: ### Response: SELECT Model_name FROM chip_model WHERE Launch_year BETWEEN 2002 AND 2004</s>