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: Which professionals have done at least two treatments? List the professional's id, role, and first name. ### Context: CREATE TABLE Professionals (professional_id VARCHAR, role_code VARCHAR, first_name VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR) ### Response: ### Response: SELECT T1.professional_id, T1.role_code, T1.first_name FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id 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: Bronze smaller than 5, and a Silver larger than 0 is which nation? ### Context: CREATE TABLE table_name_66 (nation VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT nation FROM table_name_66 WHERE bronze < 5 AND silver > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different finales had the English title "Beyond the Realm of Conscience"? ### Context: CREATE TABLE table_19210674_1 (finale VARCHAR, english_title VARCHAR) ### Response: ### Response: SELECT COUNT(finale) FROM table_19210674_1 WHERE english_title = "Beyond the Realm of Conscience"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582? ### Context: CREATE TABLE table_name_22 (birth VARCHAR, ceased_to_be_duke_of_girona VARCHAR) ### Response: ### Response: SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue was Punt Road Oval, who was the Home Team? ### Context: CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_47 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: When cancelled is the fastest qualifying where is the location? ### Context: CREATE TABLE table_26358264_2 (location VARCHAR, fastest_qualifying VARCHAR) ### Response: ### Response: SELECT location FROM table_26358264_2 WHERE fastest_qualifying = "Cancelled"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 September 8, 1985 game? ### Context: CREATE TABLE table_name_3 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_3 WHERE date = "september 8, 1985"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, minimum and average years spent working on a school bus? ### Context: CREATE TABLE school_bus (years_working INTEGER) ### Response: ### Response: SELECT MAX(years_working), MIN(years_working), AVG(years_working) FROM school_bus</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reviewer id of Daniel Lewis? ### Context: CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR) ### Response: ### Response: SELECT rID FROM Reviewer WHERE name = "Daniel Lewis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 is a, 2009 is lq and 2012 is 1r? ### Context: CREATE TABLE table_name_65 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_65 WHERE 2011 = "a" AND 2009 = "lq" AND 2012 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome of the match played on carpet surface? ### Context: CREATE TABLE table_name_27 (outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_27 WHERE surface = "carpet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 studios have the catalog number "cal03 / 0091037137333"? ### Context: CREATE TABLE table_11222744_3 (studio VARCHAR, catalog_number VARCHAR) ### Response: ### Response: SELECT COUNT(studio) FROM table_11222744_3 WHERE catalog_number = "CAL03 / 0091037137333"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42? ### Context: CREATE TABLE table_name_58 (team VARCHAR, difference VARCHAR, lost VARCHAR, position VARCHAR) ### Response: ### Response: SELECT team FROM table_name_58 WHERE lost < 13 AND position < 4 AND difference = "42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Away team has a Tie no of 4? ### Context: CREATE TABLE table_name_38 (away_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_38 WHERE tie_no = "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 are the names, details and data types of the characteristics which are never used by any product? ### Context: CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR) ### Response: ### Response: SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_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: For the tournament played on 26 February 2006, what surface was used? ### Context: CREATE TABLE table_name_35 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_35 WHERE date = "26 february 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the latest year for Entrant of equipe talbot gitanes with less than 1 point? ### Context: CREATE TABLE table_name_68 (year INTEGER, entrant VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_68 WHERE entrant = "equipe talbot gitanes" AND points < 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 made the decision in the game played on December 26? ### Context: CREATE TABLE table_27537518_6 (decision VARCHAR, date VARCHAR) ### Response: ### Response: SELECT decision FROM table_27537518_6 WHERE date = "December 26"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number in the series had 2.528 million u.s. viewers? ### Context: CREATE TABLE table_24223834_3 (no_in_series VARCHAR, us_viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT no_in_series FROM table_24223834_3 WHERE us_viewers__in_millions_ = "2.528"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team replaced their manager on 9 December 2008? ### Context: CREATE TABLE table_name_77 (team VARCHAR, date_of_vacancy VARCHAR) ### Response: ### Response: SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 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: Who directed episode 2 of the season? ### Context: CREATE TABLE table_27988559_1 (directed_by VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_27988559_1 WHERE no_in_season = 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 Segment B when the Segment D is s Hammock? ### Context: CREATE TABLE table_15187735_6 (segment_b VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_b FROM table_15187735_6 WHERE segment_d = "s Hammock"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class AAA of the 1993-94 school year with a class AAAAA of Duncanville? ### Context: CREATE TABLE table_name_58 (class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR) ### Response: ### Response: SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fa cup goals when total apps is 10 (4)? ### Context: CREATE TABLE table_name_12 (fa_cup_goals INTEGER, total_apps VARCHAR) ### Response: ### Response: SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (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 Country has a ICAO of EKCH? ### Context: CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR) ### Response: ### Response: SELECT country FROM table_name_67 WHERE icao = "ekch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weight of all players? ### Context: CREATE TABLE Player (weight INTEGER) ### Response: ### Response: SELECT AVG(weight) FROM Player</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year did Morgan Brian win? ### Context: CREATE TABLE table_name_75 (year INTEGER, winner VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_75 WHERE winner = "morgan brian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Postseason of promoted runner-up? ### Context: CREATE TABLE table_name_33 (season VARCHAR, postseason VARCHAR) ### Response: ### Response: SELECT season FROM table_name_33 WHERE postseason = "promoted runner-up"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Regular Season Champion(s) has a Record of 9–0, and a Tournament Champion of north carolina? ### Context: CREATE TABLE table_name_16 (regular_season_champion_s_ VARCHAR, record VARCHAR, tournament_champion VARCHAR) ### Response: ### Response: SELECT regular_season_champion_s_ FROM table_name_16 WHERE record = "9–0" AND tournament_champion = "north carolina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has an Opponent of at Seattle mariners? ### Context: CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_75 WHERE opponent = "at seattle mariners"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226? ### Context: CREATE TABLE table_name_87 (college VARCHAR, position VARCHAR, overall VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT college FROM table_name_87 WHERE overall > 226 AND pick < 12 AND position = "ot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player that had the Position, guard-forward? ### Context: CREATE TABLE table_name_54 (player VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_54 WHERE position = "guard-forward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of barony for kilmore ### Context: CREATE TABLE table_30120559_1 (barony VARCHAR, townland VARCHAR) ### Response: ### Response: SELECT COUNT(barony) FROM table_30120559_1 WHERE townland = "Kilmore"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 geo code of the township with ANSI code 1759243? ### Context: CREATE TABLE table_18600760_9 (geo_id VARCHAR, ansi_code VARCHAR) ### Response: ### Response: SELECT geo_id FROM table_18600760_9 WHERE ansi_code = 1759243</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purpose of the Quay test blast? ### Context: CREATE TABLE table_name_54 (purpose VARCHAR, name VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_54 WHERE name = "quay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record of the game on July 3? ### Context: CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) ### Response: ### Response: SELECT record FROM table_name_44 WHERE date = "july 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: Find the name of amenities of the dorm where the student with last name Smith is living in. ### Context: CREATE TABLE student (stuid VARCHAR, lname VARCHAR); CREATE TABLE dorm (dormid VARCHAR); CREATE TABLE lives_in (dormid VARCHAR, stuid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenity_name VARCHAR, amenid VARCHAR) ### Response: ### Response: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid JOIN lives_in AS T4 ON T4.dormid = T1.dormid JOIN student AS T5 ON T5.stuid = T4.stuid WHERE T5.lname = 'Smith'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spacecraft was launched from the LC34 launch complex? ### Context: CREATE TABLE table_179174_2 (spacecraft VARCHAR, launch_complex VARCHAR) ### Response: ### Response: SELECT spacecraft FROM table_179174_2 WHERE launch_complex = "LC34"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 torque on the model with power of hp (kw; ps)@5800? ### Context: CREATE TABLE table_name_80 (torque VARCHAR, power VARCHAR) ### Response: ### Response: SELECT torque FROM table_name_80 WHERE power = "hp (kw; ps)@5800"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of spectators when Essendon played as the home team? ### Context: CREATE TABLE table_name_84 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT AVG(crowd) FROM table_name_84 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who did wilson reis fight against that lasted less than 3 rounds with a time of 1:02? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, round VARCHAR, time VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_25 WHERE round < 3 AND time = "1:02"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest rank for China Eastern Airlines, Korean Air with more passengers than 97,055? ### Context: CREATE TABLE table_name_89 (rank INTEGER, carriers VARCHAR, passengers VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_89 WHERE carriers = "china eastern airlines, korean air" AND passengers > 97 OFFSET 055</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Candidate of riikka manner has how many votes? ### Context: CREATE TABLE table_name_41 (votes VARCHAR, candidate VARCHAR) ### Response: ### Response: SELECT votes FROM table_name_41 WHERE candidate = "riikka manner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team in Sussex county located? ### Context: CREATE TABLE table_18461635_1 (location VARCHAR, county VARCHAR) ### Response: ### Response: SELECT location FROM table_18461635_1 WHERE county = "Sussex"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the time of 1-26.21? ### Context: CREATE TABLE table_20626467_1 (result VARCHAR, time VARCHAR) ### Response: ### Response: SELECT result FROM table_20626467_1 WHERE time = "1-26.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: Who appointed the representative that had a Presentation of Credentials on March 25, 1976? ### Context: CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR) ### Response: ### Response: SELECT appointed_by FROM table_name_72 WHERE presentation_of_credentials = "march 25, 1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Attendance of the game with a Result of L 20-14? ### Context: CREATE TABLE table_name_46 (attendance VARCHAR, result VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_46 WHERE result = "l 20-14"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the nationality of the journalist with the largest number of years working? ### Context: CREATE TABLE journalist (Nationality VARCHAR, Years_working VARCHAR) ### Response: ### Response: SELECT Nationality FROM journalist ORDER BY Years_working 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: Which school would you come across if you were in Kirksville? ### Context: CREATE TABLE table_2076463_2 (school VARCHAR, location_s_ VARCHAR) ### Response: ### Response: SELECT school FROM table_2076463_2 WHERE location_s_ = "Kirksville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 teams have a head coach named mahdi ali? ### Context: CREATE TABLE table_27631756_2 (team VARCHAR, head_coach VARCHAR) ### Response: ### Response: SELECT COUNT(team) FROM table_27631756_2 WHERE head_coach = "Mahdi Ali"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in UFC 66 who lasted for more than 1 round? ### Context: CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_75 WHERE round > 1 AND event = "ufc 66"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 east with ev landsberg as the west? ### Context: CREATE TABLE table_name_83 (east VARCHAR, west VARCHAR) ### Response: ### Response: SELECT east FROM table_name_83 WHERE west = "ev landsberg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Label was cataloged as alca-9013? ### Context: CREATE TABLE table_name_2 (label VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT label FROM table_name_2 WHERE catalog = "alca-9013"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 6th round match with home team Bahia, who was the away team? ### Context: CREATE TABLE table_name_96 (away_team VARCHAR, round VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_96 WHERE round = "6th" AND home_team = "bahia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round when the opponent is Andre Roberts? ### Context: CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT round FROM table_name_42 WHERE opponent = "andre roberts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, job title of all people ordered by their names. ### Context: CREATE TABLE Person (name VARCHAR, job VARCHAR) ### Response: ### Response: SELECT name, job FROM Person ORDER BY name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date was the ship with a Pennant number of Q144 commissioned? ### Context: CREATE TABLE table_name_8 (commissioned VARCHAR, pennant_number VARCHAR) ### Response: ### Response: SELECT commissioned FROM table_name_8 WHERE pennant_number = "q144"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum weight for each type of pet. List the maximum weight and pet type. ### Context: CREATE TABLE pets (petType VARCHAR, weight INTEGER) ### Response: ### Response: SELECT MAX(weight), petType FROM pets GROUP BY petType</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team score that played away team carlton? ### Context: CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1995 value with A in 1986 and 2r in 1992? ### Context: CREATE TABLE table_name_29 (Id VARCHAR) ### Response: ### Response: SELECT 1995 FROM table_name_29 WHERE 1986 = "a" AND 1992 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga? ### Context: CREATE TABLE table_name_22 (played INTEGER, team VARCHAR, lost VARCHAR, drawn VARCHAR) ### Response: ### Response: SELECT SUM(played) FROM table_name_22 WHERE lost > 14 AND drawn = 8 AND team = "ipatinga"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population when the capital is tarnopol ### Context: CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, capital VARCHAR) ### Response: ### Response: SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE capital = "Tarnopol"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 4 entry for class 7b? ### Context: CREATE TABLE table_name_88 (part_4 VARCHAR, class VARCHAR) ### Response: ### Response: SELECT part_4 FROM table_name_88 WHERE class = "7b"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2? ### Context: CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–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 time when the set 1 is 21–25? ### Context: CREATE TABLE table_name_48 (time VARCHAR, set_1 VARCHAR) ### Response: ### Response: SELECT time FROM table_name_48 WHERE set_1 = "21–25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player for l apps for 17 ### Context: CREATE TABLE table_22538587_3 (player VARCHAR, l_apps VARCHAR) ### Response: ### Response: SELECT player FROM table_22538587_3 WHERE l_apps = 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which name's height in centimeters is 178 when its weight in kilograms is less than 91? ### Context: CREATE TABLE table_name_24 (name VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) ### Response: ### Response: SELECT name FROM table_name_24 WHERE height__cm_ = 178 AND weight__kg_ < 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: Which score was for the Spurs as visitors with record of 35–16? ### Context: CREATE TABLE table_name_60 (score VARCHAR, visitor VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_60 WHERE visitor = "spurs" AND record = "35–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 date was the 1500 m freestyle competition? ### Context: CREATE TABLE table_name_97 (date VARCHAR, event VARCHAR) ### Response: ### Response: SELECT date FROM table_name_97 WHERE event = "1500 m freestyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visitor of the game with a Record of 21–17–13? ### Context: CREATE TABLE table_name_70 (visitor VARCHAR, record VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_70 WHERE record = "21–17–13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which championship after 1985 had a winning score of –8 (68-72-69-71=280)? ### Context: CREATE TABLE table_name_17 (championship VARCHAR, year VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_17 WHERE year > 1985 AND winning_score = –8(68 - 72 - 69 - 71 = 280)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score 5-2 with a loss of sele (3-2)? ### Context: CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_17 WHERE score = "5-2" AND loss = "sele (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: Who was the vacator when the reason for change was failure to elect? ### Context: CREATE TABLE table_225206_3 (vacator VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT vacator FROM table_225206_3 WHERE reason_for_change = "Failure to elect"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character was the version 5.1 and had a Greek capital letter Archaic Sampi? ### Context: CREATE TABLE table_name_21 (character VARCHAR, version VARCHAR, name VARCHAR) ### Response: ### Response: SELECT character FROM table_name_21 WHERE version = 5.1 AND name = "greek capital letter archaic sampi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Qaxmuğal village with a Malax village meşəbaş? ### Context: CREATE TABLE table_name_90 (qaxmuğal VARCHAR, malax VARCHAR) ### Response: ### Response: SELECT qaxmuğal FROM table_name_90 WHERE malax = "meşəbaş"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory of Steve Stricker as a runner up? ### Context: CREATE TABLE table_19630743_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_19630743_2 WHERE runner_s__up = "Steve Stricker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director name is the U.S. viewers is 2.22 million? ### Context: CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.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 Week 10 Nov 2 has a Week 14 Nov 30 of penn state (11-1)? ### Context: CREATE TABLE table_name_4 (week_10_nov_2 VARCHAR, week_14_nov_30 VARCHAR) ### Response: ### Response: SELECT week_10_nov_2 FROM table_name_4 WHERE week_14_nov_30 = "penn state (11-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 Score has an Opponent in the final of mehdi tahiri? ### Context: CREATE TABLE table_name_96 (score VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_96 WHERE opponent_in_the_final = "mehdi tahiri"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greatest draw that has 4th for place? ### Context: CREATE TABLE table_name_62 (draw INTEGER, place VARCHAR) ### Response: ### Response: SELECT MAX(draw) FROM table_name_62 WHERE place = "4th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List all the MCs with 5 appearances who were inducted in 2007? ### Context: CREATE TABLE table_29160596_1 (top_mc VARCHAR, appearances VARCHAR, year_inducted VARCHAR) ### Response: ### Response: SELECT top_mc FROM table_29160596_1 WHERE appearances = 5 AND year_inducted = 2007</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Tournament was against Daniel Elsner? ### Context: CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 delta center 19,639 ### Context: CREATE TABLE table_15869204_5 (high_assists VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_15869204_5 WHERE location_attendance = "Delta Center 19,639"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record after the bout lasting 4:15? ### Context: CREATE TABLE table_name_57 (record VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_57 WHERE time = "4: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: What is the type of the gps iif-10 satellite with an unknown date? ### Context: CREATE TABLE table_name_13 (type VARCHAR, date VARCHAR, satellite VARCHAR) ### Response: ### Response: SELECT type FROM table_name_13 WHERE date = "unknown" AND satellite = "gps iif-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: What was the outcome of the game when the partner is Rafael Osuna? ### Context: CREATE TABLE table_2215159_2 (outcome VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT outcome FROM table_2215159_2 WHERE partner = "Rafael Osuna"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purpose for on-air ID of 2xx ### Context: CREATE TABLE table_name_13 (purpose VARCHAR, on_air_id VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_13 WHERE on_air_id = "2xx"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps? ### Context: CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Prior to 1978, what is the Danish of the Film directed by Bent Christensen? ### Context: CREATE TABLE table_name_16 (danish_title VARCHAR, year VARCHAR, director VARCHAR) ### Response: ### Response: SELECT danish_title FROM table_name_16 WHERE year < 1978 AND director = "bent christensen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 equation is (10 times 8) + 4, what would be the 2nd throw? ### Context: CREATE TABLE table_17265535_6 (equation VARCHAR) ### Response: ### Response: SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 8) + 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: Which MWEHL team has player Ben Johnson? ### Context: CREATE TABLE table_name_29 (mwehl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT mwehl_team FROM table_name_29 WHERE player = "ben johnson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what date did the woman married to Louis II become consort? ### Context: CREATE TABLE table_name_86 (became_consort VARCHAR, spouse VARCHAR) ### Response: ### Response: SELECT became_consort FROM table_name_86 WHERE spouse = "louis ii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 M809 series for short wheelbase and M939 series of M931/932 ### Context: CREATE TABLE table_name_76 (m809_series VARCHAR, wheelbase VARCHAR, m939_series VARCHAR) ### Response: ### Response: SELECT m809_series FROM table_name_76 WHERE wheelbase = "short" AND m939_series = "m931/932"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Play-by-play when the color commentator was Eric Wynalda, earlier than 2005? ### Context: CREATE TABLE table_name_11 (play_by_play VARCHAR, color_commentator_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT play_by_play FROM table_name_11 WHERE color_commentator_s_ = "eric wynalda" AND year < 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the guest judge for first audition date being july 9, 2009 ### Context: CREATE TABLE table_22897967_1 (guest_judge VARCHAR, first_audition_date VARCHAR) ### Response: ### Response: SELECT COUNT(guest_judge) FROM table_22897967_1 WHERE first_audition_date = "July 9, 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the lowest squad number with more than 6 goals, fewer than 8 league goals, and more than 0 playoff goals? ### Context: CREATE TABLE table_name_28 (squad_no INTEGER, playoff_goals VARCHAR, total_goals VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT MIN(squad_no) FROM table_name_28 WHERE total_goals > 6 AND league_goals < 8 AND playoff_goals > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the company Investing Dragons, or tiny box? ### Context: CREATE TABLE table_name_21 (investing_dragon_s_ VARCHAR, company_or_product_name VARCHAR) ### Response: ### Response: SELECT investing_dragon_s_ FROM table_name_21 WHERE company_or_product_name = "tiny box"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winners have a runner-up of A. Karthikeyan? ### Context: CREATE TABLE table_22753439_1 (winner VARCHAR, runner_up_a VARCHAR) ### Response: ### Response: SELECT COUNT(winner) FROM table_22753439_1 WHERE runner_up_a = "A. Karthikeyan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 if the ratings is 1.92 million? ### Context: CREATE TABLE table_23705843_1 (original_air_date VARCHAR, ratings__millions_ VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_23705843_1 WHERE ratings__millions_ = "1.92"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game sites are there where the team record is 1–7? ### Context: CREATE TABLE table_25380472_2 (game_site VARCHAR, team_record VARCHAR) ### Response: ### Response: SELECT COUNT(game_site) FROM table_25380472_2 WHERE team_record = "1–7"</s>