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: How many laps were in 1969? ### Context: CREATE TABLE table_name_95 (laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_95 WHERE year = "1969"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 regio has a date of 24 march 2006? ### Context: CREATE TABLE table_name_15 (region VARCHAR, date VARCHAR) ### Response: ### Response: SELECT region FROM table_name_15 WHERE date = "24 march 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 play is from the country Belgium? ### Context: CREATE TABLE table_name_18 (play VARCHAR, country VARCHAR) ### Response: ### Response: SELECT play FROM table_name_18 WHERE country = "belgium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Original air date for the episode directed by lev l. spiro, with a Production code of 07-00-109? ### Context: CREATE TABLE table_name_35 (original_air_date VARCHAR, directed_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_name_35 WHERE directed_by = "lev l. spiro" AND production_code = "07-00-109"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of assists for Ben Duggan with less than 7 points? ### Context: CREATE TABLE table_name_17 (assists INTEGER, name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MIN(assists) FROM table_name_17 WHERE name = "ben duggan" AND points < 7</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the visiting team on December 6? ### Context: CREATE TABLE table_name_31 (visiting_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visiting_team FROM table_name_31 WHERE date = "december 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: When did the player from Hawaii play for Toronto? ### Context: CREATE TABLE table_10015132_3 (years_in_toronto VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = "Hawaii"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? ### Context: CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR) ### Response: ### Response: SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winter pines is the fcsl team how many mlb teams are there? ### Context: CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) ### Response: ### Response: SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates in the district won by the incumbent Del Latta? ### Context: CREATE TABLE table_1341690_35 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1341690_35 WHERE incumbent = "Del Latta"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score of the game against the Boston Bruins and after game 68? ### Context: CREATE TABLE table_name_62 (score VARCHAR, game VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_62 WHERE game > 68 AND opponent = "boston bruins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stations own Bounce TV? ### Context: CREATE TABLE table_1404984_1 (station_ownership VARCHAR, network VARCHAR) ### Response: ### Response: SELECT COUNT(station_ownership) FROM table_1404984_1 WHERE network = "Bounce TV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents in the final have a Partner of daniella dominikovic? ### Context: CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 elevation for number 39? ### Context: CREATE TABLE table_2731431_1 (elevation__m_ INTEGER, no VARCHAR) ### Response: ### Response: SELECT MAX(elevation__m_) FROM table_2731431_1 WHERE no = 39</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away captain with result of wi by 9 wkts ### Context: CREATE TABLE table_name_69 (away_captain VARCHAR, result VARCHAR) ### Response: ### Response: SELECT away_captain FROM table_name_69 WHERE result = "wi by 9 wkts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total medals when the rank is 8? ### Context: CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR) ### Response: ### Response: SELECT MAX(total) FROM table_name_64 WHERE rank = "8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank of the match on October 19? ### Context: CREATE TABLE table_name_72 (rank__number VARCHAR, date VARCHAR) ### Response: ### Response: SELECT rank__number FROM table_name_72 WHERE date = "october 19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many successors were seated in the New York 20th district? ### Context: CREATE TABLE table_1199219_2 (successor VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(successor) FROM table_1199219_2 WHERE district = "New York 20th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129? ### Context: CREATE TABLE table_name_61 (opponent VARCHAR, game VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_61 WHERE game > 51 AND score = "99-129"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score vs. Protoss when the score vs. Terran is 10 wins? ### Context: CREATE TABLE table_name_97 (vs_protoss VARCHAR, vs_terran VARCHAR) ### Response: ### Response: SELECT vs_protoss FROM table_name_97 WHERE vs_terran = "10 wins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 days had both mean humidity above 50 and mean visibility above 8? ### Context: CREATE TABLE weather (mean_humidity VARCHAR, mean_visibility_miles VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM weather WHERE mean_humidity > 50 AND mean_visibility_miles > 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: Tell me the captain for 1774 and guns of 14 ### Context: CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR) ### Response: ### Response: SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "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: How many stages are there? ### Context: CREATE TABLE table_25655781_17 (stage INTEGER) ### Response: ### Response: SELECT MAX(stage) FROM table_25655781_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: Name the railway when class is j19 ### Context: CREATE TABLE table_15608800_2 (railway VARCHAR, class VARCHAR) ### Response: ### Response: SELECT railway FROM table_15608800_2 WHERE class = "J19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest number of points associated with more than 8 games? ### Context: CREATE TABLE table_name_95 (points INTEGER, games INTEGER) ### Response: ### Response: SELECT MIN(points) FROM table_name_95 WHERE games > 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score when the Celtics played Washington at home? ### Context: CREATE TABLE table_27722408_11 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_27722408_11 WHERE team = "Washington"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Last 5 has a Rank of 7? ### Context: CREATE TABLE table_name_31 (last_5 VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT last_5 FROM table_name_31 WHERE rank = 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 city was in 1889? ### Context: CREATE TABLE table_name_97 (city VARCHAR, year VARCHAR) ### Response: ### Response: SELECT city FROM table_name_97 WHERE year = 1889</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the highest silver for total of 4 for poland and gold less than 1 ### Context: CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MAX(silver) FROM table_name_7 WHERE total = 4 AND nation = "poland" AND gold < 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 email of the student with first name "Emma" and last name "Rohan"? ### Context: CREATE TABLE Students (email_address VARCHAR, first_name VARCHAR, last_name VARCHAR) ### Response: ### Response: SELECT email_address FROM Students WHERE first_name = "Emma" AND last_name = "Rohan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 shows for 1993 when 1991 is grand slams? ### Context: CREATE TABLE table_name_6 (Id VARCHAR) ### Response: ### Response: SELECT 1993 FROM table_name_6 WHERE 1991 = "grand slams"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries against were there when there was 961 points against? ### Context: CREATE TABLE table_name_29 (tries_against VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT tries_against FROM table_name_29 WHERE points_against = "961"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round has a Pick of 25 (via hamilton)? ### Context: CREATE TABLE table_name_88 (round INTEGER, pick VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_88 WHERE pick = "25 (via hamilton)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leading actor in the film with a supporting actor named Cecil Kellaway? ### Context: CREATE TABLE table_24225238_1 (leading_actor VARCHAR, supporting_actor VARCHAR) ### Response: ### Response: SELECT leading_actor FROM table_24225238_1 WHERE supporting_actor = "Cecil Kellaway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue has 16 against? ### Context: CREATE TABLE table_name_5 (venue VARCHAR, against VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_5 WHERE against = 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 is the signal power for JOAB-DTV? ### Context: CREATE TABLE table_2638104_1 (signal_power VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT signal_power FROM table_2638104_1 WHERE callsign = "JOAB-DTV"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 250 series on clay what were the scores? ### Context: CREATE TABLE table_29026564_10 (score VARCHAR, surface VARCHAR, category VARCHAR) ### Response: ### Response: SELECT score FROM table_29026564_10 WHERE surface = "Clay" AND category = "250 series"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pregame analysis in 2002? ### Context: CREATE TABLE table_17628022_2 (pregame_analysts VARCHAR, year VARCHAR) ### Response: ### Response: SELECT pregame_analysts FROM table_17628022_2 WHERE year = 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race did Glenn Seton win on the Sandown International Raceway circuit? ### Context: CREATE TABLE table_name_81 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT race_title FROM table_name_81 WHERE winner = "glenn seton" AND circuit = "sandown international raceway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of track with most number of races. ### Context: CREATE TABLE track (name VARCHAR, track_id VARCHAR); CREATE TABLE race (track_id VARCHAR) ### Response: ### Response: SELECT T2.name FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id 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: Name the listen owners for repairone ### Context: CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, primary_sponsor_s_ VARCHAR) ### Response: ### Response: SELECT listed_owner_s_ FROM table_2187178_1 WHERE primary_sponsor_s_ = "RepairOne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played total when the points against was 321? ### Context: CREATE TABLE table_13564637_4 (played VARCHAR, points_against VARCHAR) ### Response: ### Response: SELECT played FROM table_13564637_4 WHERE points_against = "321"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'. ### Context: CREATE TABLE Lessons (lesson_id VARCHAR, staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR, last_name VARCHAR) ### Response: ### Response: SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%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: What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1? ### Context: CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_87 WHERE silver > 1 AND nation = "germany (ger)" AND gold < 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 rory loy moving to? ### Context: CREATE TABLE table_name_17 (moving_to VARCHAR, name VARCHAR) ### Response: ### Response: SELECT moving_to FROM table_name_17 WHERE name = "rory loy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the stadiums which some concerts happened in the years of both 2014 and 2015. ### Context: CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR) ### Response: ### Response: SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total decile with an Authority of state, and a Name of newfield park school? ### Context: CREATE TABLE table_name_66 (decile INTEGER, authority VARCHAR, name VARCHAR) ### Response: ### Response: SELECT SUM(decile) FROM table_name_66 WHERE authority = "state" AND name = "newfield park school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average interview score from Kentucky? ### Context: CREATE TABLE table_name_27 (interview INTEGER, state VARCHAR) ### Response: ### Response: SELECT AVG(interview) FROM table_name_27 WHERE state = "kentucky"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the suns play on April 21? ### Context: CREATE TABLE table_29997127_4 (team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT team FROM table_29997127_4 WHERE date = "April 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of wins before the season in 1906 where there were 0 draws? ### Context: CREATE TABLE table_name_72 (wins INTEGER, season VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT AVG(wins) FROM table_name_72 WHERE season < 1906 AND draws < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Catalog, when Format is CD, when Region is US, when Date is before 2004, and when Label is Taang! Records? ### Context: CREATE TABLE table_name_32 (catalog VARCHAR, label VARCHAR, date VARCHAR, format VARCHAR, region VARCHAR) ### Response: ### Response: SELECT catalog FROM table_name_32 WHERE format = "cd" AND region = "us" AND date < 2004 AND label = "taang! records"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gender of the staff who has been assigned the job of Sales Person but never Clerical Staff. ### Context: CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR, job_title_code VARCHAR) ### Response: ### Response: SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Sales Person" EXCEPT SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.job_title_code = "Clerical Staff"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which city has a club called the Huntsville Stars? ### Context: CREATE TABLE table_name_96 (city VARCHAR, club VARCHAR) ### Response: ### Response: SELECT city FROM table_name_96 WHERE club = "huntsville stars"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of players for georgia tech ### Context: CREATE TABLE table_2508633_2 (player VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(player) FROM table_2508633_2 WHERE college = "Georgia Tech"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 From Club, when Player is "Robinho"? ### Context: CREATE TABLE table_name_80 (from_club VARCHAR, player VARCHAR) ### Response: ### Response: SELECT from_club FROM table_name_80 WHERE player = "robinho"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 age of the dogs who have gone through any treatments? ### Context: CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR) ### Response: ### Response: SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goalkeeper with fewer than 24 goals? ### Context: CREATE TABLE table_name_15 (goalkeeper VARCHAR, goals INTEGER) ### Response: ### Response: SELECT goalkeeper FROM table_name_15 WHERE goals < 24</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poles have 4 Starts of 4 and position of 46th? ### Context: CREATE TABLE table_name_20 (poles VARCHAR, starts VARCHAR, position VARCHAR) ### Response: ### Response: SELECT COUNT(poles) FROM table_name_20 WHERE starts = 4 AND position = "46th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: give the location of subtrate coproporphyrinogen iii ### Context: CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR) ### Response: ### Response: SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of planet has a semimajor axis of 0.07 AU? ### Context: CREATE TABLE table_name_51 (planet VARCHAR, semimajor_axis___au__ VARCHAR) ### Response: ### Response: SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the date April 11, what is the total game number? ### Context: CREATE TABLE table_name_4 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(game) FROM table_name_4 WHERE date = "april 11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament had a hard surface on February 25, 1996? ### Context: CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "february 25, 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: what is the average population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2? ### Context: CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) ### Response: ### Response: SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 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: How many runs were there when the high score was 55 and there were more than 12 innings? ### Context: CREATE TABLE table_name_34 (runs INTEGER, high_score VARCHAR, innings VARCHAR) ### Response: ### Response: SELECT SUM(runs) FROM table_name_34 WHERE high_score = 55 AND innings > 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 is the highest attendance for December 14, 1958 for after week 12 ### Context: CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 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: Did any team score games that totaled up to 860.5? ### Context: CREATE TABLE table_1059743_1 (play_off VARCHAR, points VARCHAR) ### Response: ### Response: SELECT play_off FROM table_1059743_1 WHERE points = "860.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: Cowansville has less than 16 regions and is a Brome-Missisquoi Municipality, what is their population? ### Context: CREATE TABLE table_name_38 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(population) FROM table_name_38 WHERE regional_county_municipality = "brome-missisquoi" AND name = "cowansville" AND region < 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 are the family relations of the king with the throne name 303? ### Context: CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR) ### Response: ### Response: SELECT family_relations FROM table_name_20 WHERE throne_name = "303"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 picks did Mike Zaher have? ### Context: CREATE TABLE table_name_17 (pick__number INTEGER, player VARCHAR) ### Response: ### Response: SELECT SUM(pick__number) FROM table_name_17 WHERE player = "mike zaher"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)? ### Context: CREATE TABLE table_173103_1 (max_pressure VARCHAR, muzzle_energy VARCHAR) ### Response: ### Response: SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = "201ft•lbf (273 J)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In the year (ceremony) 2009 (82nd), who are all the directors? ### Context: CREATE TABLE table_26385848_1 (director VARCHAR, year__ceremony_ VARCHAR) ### Response: ### Response: SELECT director FROM table_26385848_1 WHERE year__ceremony_ = "2009 (82nd)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8 ### Context: CREATE TABLE table_name_27 (rank INTEGER, total VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_27 WHERE bronze = 2 AND gold > 0 AND nation = "ynys môn/anglesey" AND total > 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What to Footscray score at home? ### Context: CREATE TABLE table_16387653_1 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_16387653_1 WHERE home_team = "Footscray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)? ### Context: CREATE TABLE table_name_94 (best_blocker VARCHAR, league_champion VARCHAR, cantsleep_award VARCHAR) ### Response: ### Response: SELECT best_blocker FROM table_name_94 WHERE league_champion = "queens of pain" AND cantsleep_award = "chassis crass (brooklyn)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team is from Birmingham & Telford? ### Context: CREATE TABLE table_name_17 (team VARCHAR, city_area VARCHAR) ### Response: ### Response: SELECT team FROM table_name_17 WHERE city_area = "birmingham & telford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the opponent when played in trieste before 2007? ### Context: CREATE TABLE table_name_90 (opponent VARCHAR, year VARCHAR, town VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_90 WHERE year < 2007 AND town = "trieste"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player did louisville pick when the round was below 8? ### Context: CREATE TABLE table_name_70 (player VARCHAR, round VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = "louisville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many years as tallest building was Independence Hall? ### Context: CREATE TABLE table_name_6 (years_as_tallest VARCHAR, name VARCHAR) ### Response: ### Response: SELECT years_as_tallest FROM table_name_6 WHERE name = "independence hall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chris haggard robbie koenig? ### Context: CREATE TABLE table_name_17 (score VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT score FROM table_name_17 WHERE opponent_in_the_final = "chris haggard robbie koenig"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on November 6, 1988? ### Context: CREATE TABLE table_name_61 (result VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_61 WHERE date = "november 6, 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: If the establishment is 49319, what is the sales, receipts or shipments maximum amount? ### Context: CREATE TABLE table_23802822_1 (_receipts VARCHAR, _or_shipments__$1 VARCHAR, sales INTEGER, establishments VARCHAR) ### Response: ### Response: SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis was used with the Chevrolet engine in 1991? ### Context: CREATE TABLE table_name_70 (chassis VARCHAR, engine VARCHAR, year VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_70 WHERE engine = "chevrolet" AND year = 1991</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest round number that Ian Forbes was picked in the draft? ### Context: CREATE TABLE table_name_43 (round INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_43 WHERE player = "ian forbes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pole position for france? ### Context: CREATE TABLE table_29686983_1 (pole_position VARCHAR, country VARCHAR) ### Response: ### Response: SELECT pole_position FROM table_29686983_1 WHERE country = "France"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the population in North Jeolla? ### Context: CREATE TABLE table_name_63 (population__2010_ VARCHAR, province VARCHAR) ### Response: ### Response: SELECT population__2010_ FROM table_name_63 WHERE province = "north jeolla"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assisted when the solo is 6 and sack is less than 5? ### Context: CREATE TABLE table_name_79 (assisted VARCHAR, solo VARCHAR, sack VARCHAR) ### Response: ### Response: SELECT assisted FROM table_name_79 WHERE solo = 6 AND sack < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the winning score for Tournament of linde german masters with a margin of victory of 1 stroke? ### Context: CREATE TABLE table_name_67 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_67 WHERE margin_of_victory = "1 stroke" AND tournament = "linde german masters"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place of a song by Henri Dès that has fewer than 8 points? ### Context: CREATE TABLE table_name_6 (place INTEGER, artist VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(place) FROM table_name_6 WHERE artist = "henri dès" AND points < 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the party that has the largest number of representatives? ### Context: CREATE TABLE representative (Party VARCHAR) ### Response: ### Response: SELECT Party, COUNT(*) FROM representative GROUP BY Party 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 Prize amount of Winner Dominik Nitsche? ### Context: CREATE TABLE table_name_15 (prize VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT prize FROM table_name_15 WHERE winner = "dominik nitsche"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for 2004 when A is the result for 2005, and the result of q1 when 2009? ### Context: CREATE TABLE table_name_32 (Id VARCHAR) ### Response: ### Response: SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007? ### Context: CREATE TABLE table_name_58 (glendale_principal VARCHAR, year VARCHAR, ms_principal VARCHAR, hs_principal VARCHAR) ### Response: ### Response: SELECT glendale_principal FROM table_name_58 WHERE ms_principal = "greg smorel" AND hs_principal = "joleen reinholz" AND year = "2006-2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team played on the road against the Buffalo Bills at home ? ### Context: CREATE TABLE table_name_21 (visiting_team VARCHAR, host_team VARCHAR) ### Response: ### Response: SELECT visiting_team FROM table_name_21 WHERE host_team = "buffalo bills"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the competition with a qualifying score of 58.425? ### Context: CREATE TABLE table_25143284_1 (location VARCHAR, score_qualifying VARCHAR) ### Response: ### Response: SELECT location FROM table_25143284_1 WHERE score_qualifying = "58.425"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 publisher released Martial Law: Substitutes? ### Context: CREATE TABLE table_name_47 (publisher VARCHAR, release_title VARCHAR) ### Response: ### Response: SELECT publisher FROM table_name_47 WHERE release_title = "martial law: substitutes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game played if the attendance is less than 6427.0? ### Context: CREATE TABLE table_16119656_1 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_16119656_1 WHERE attendance < 6427.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 opponent before game 5 with a 0-1-0 record? ### Context: CREATE TABLE table_name_31 (opponent VARCHAR, game VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_31 WHERE game < 5 AND record = "0-1-0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the minimum L if the GA is 272? ### Context: CREATE TABLE table_2233872_1 (l INTEGER, ga VARCHAR) ### Response: ### Response: SELECT MIN(l) FROM table_2233872_1 WHERE ga = 272</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 s mestizo with population being 29461933 ### Context: CREATE TABLE table_1333612_1 (s_mestizo VARCHAR, population VARCHAR) ### Response: ### Response: SELECT s_mestizo FROM table_1333612_1 WHERE population = 29461933</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 legs were own by alan tabern? ### Context: CREATE TABLE table_27906667_2 (legs_won INTEGER, player VARCHAR) ### Response: ### Response: SELECT MAX(legs_won) FROM table_27906667_2 WHERE player = "Alan Tabern"</s>