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 celebrity was famous for finishing 9th?
### Context:
CREATE TABLE table_name_52 (famous_for VARCHAR, finished VARCHAR)
### Response:
### Response:
SELECT famous_for FROM table_name_52 WHERE finished = "9th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 R.A. (J2000) has Apparent Magnitude of 11.7, and Dec. (J2000) of °07′06″?
### Context:
CREATE TABLE table_name_22 (ra___j2000__ VARCHAR, apparent_magnitude VARCHAR, dec___j2000__ VARCHAR)
### Response:
### Response:
SELECT ra___j2000__ FROM table_name_22 WHERE apparent_magnitude = 11.7 AND dec___j2000__ = "°07′06″"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the attendance of game 25 when the played the San Francisco Warriors?
### Context:
CREATE TABLE table_name_43 (location_attendance VARCHAR, opponent VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_name_43 WHERE opponent = "san francisco warriors" AND game = 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:
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen?
### Context:
CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of the game that tied at 3?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_56 WHERE tie_no = "3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which 2008 has a 2005 of 13–3?
### Context:
CREATE TABLE table_name_48 (Id VARCHAR)
### Response:
### Response:
SELECT 2008 FROM table_name_48 WHERE 2005 = "13–3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the to par when the player is roger maltbie?
### Context:
CREATE TABLE table_name_75 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_75 WHERE player = "roger maltbie"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height has a Player of mike bibby?
### Context:
CREATE TABLE table_name_43 (height VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT height FROM table_name_43 WHERE player = "mike bibby"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is 27
### Context:
CREATE TABLE table_19018191_5 (player VARCHAR, l_apps VARCHAR)
### Response:
### Response:
SELECT player FROM table_19018191_5 WHERE l_apps = 27</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Round has an Opponent of ryan bixler?
### Context:
CREATE TABLE table_name_6 (round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_6 WHERE opponent = "ryan bixler"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position is 1999?
### Context:
CREATE TABLE table_name_83 (position VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_83 WHERE year = 1999</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show different nominees and the number of musicals they have been nominated.
### Context:
CREATE TABLE musical (Nominee VARCHAR)
### Response:
### Response:
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score for the game played against the New York Knicks?
### Context:
CREATE TABLE table_name_11 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_11 WHERE opponent = "new york knicks"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episodes are numbered 4 in the season?
### Context:
CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR)
### Response:
### Response:
SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the name when the displacement is 8,305 t?
### Context:
CREATE TABLE table_name_12 (name VARCHAR, displacement VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_12 WHERE displacement = "8,305 t"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NGC number of everything with a Right ascension (J2000) of 05h33m30s?
### Context:
CREATE TABLE table_name_7 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
### Response:
### Response:
SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Driver has a +1.027 Time/Retired?
### Context:
CREATE TABLE table_name_86 (driver VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_86 WHERE time_retired = "+1.027"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?
### Context:
CREATE TABLE table_name_48 (state VARCHAR, member VARCHAR, term_in_office VARCHAR, party VARCHAR)
### Response:
### Response:
SELECT state FROM table_name_48 WHERE term_in_office = "1984–1996" AND party = "labor" AND member = "robert tickner"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of podiums before 2008 with a 5th position and more than 0 f/laps?
### Context:
CREATE TABLE table_name_62 (podiums INTEGER, f_laps VARCHAR, season VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT MAX(podiums) FROM table_name_62 WHERE season < 2008 AND position = "5th" AND f_laps > 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 color is the super-soft compound?
### Context:
CREATE TABLE table_name_31 (colour VARCHAR, compound_name VARCHAR)
### Response:
### Response:
SELECT colour FROM table_name_31 WHERE compound_name = "super-soft"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pinyin for the simplified 虞城县?
### Context:
CREATE TABLE table_2135222_2 (pinyin VARCHAR, simplified VARCHAR)
### Response:
### Response:
SELECT pinyin FROM table_2135222_2 WHERE simplified = "虞城县"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chapters did Elmer Clifton direct?
### Context:
CREATE TABLE table_name_86 (chapters VARCHAR, director VARCHAR)
### Response:
### Response:
SELECT COUNT(chapters) FROM table_name_86 WHERE director = "elmer clifton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased
### Context:
CREATE TABLE table_name_4 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR)
### Response:
### Response:
SELECT condition FROM table_name_4 WHERE partial_thromboplastin_time = "unaffected" AND prothrombin_time = "unaffected" AND platelet_count = "decreased"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average number of factories for the manufacturers that have more than 20 shops.
### Context:
CREATE TABLE manufacturer (Num_of_Factories INTEGER, num_of_shops INTEGER)
### Response:
### Response:
SELECT AVG(Num_of_Factories) FROM manufacturer WHERE num_of_shops > 20</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 source has a cardwell of 20%?
### Context:
CREATE TABLE table_name_18 (source VARCHAR, cardwell VARCHAR)
### Response:
### Response:
SELECT source FROM table_name_18 WHERE cardwell = "20%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 socialist workers ticket has malcolm wilson as the Republican ticket?
### Context:
CREATE TABLE table_name_71 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR)
### Response:
### Response:
SELECT socialist_workers_ticket FROM table_name_71 WHERE republican_ticket = "malcolm wilson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rufus guest for 15 december 2008
### Context:
CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, first_broadcast VARCHAR)
### Response:
### Response:
SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = "15 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:
Which party does the incumbent Mathias Morris belong to?
### Context:
CREATE TABLE table_2668169_2 (party VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT party FROM table_2668169_2 WHERE incumbent = "Mathias Morris"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?
### Context:
CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)
### Response:
### Response:
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "5 (4 in 32.66s)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height (ft) of the Churchill House with a Height (m) less than 59?
### Context:
CREATE TABLE table_name_12 (height__ft_ VARCHAR, name VARCHAR, height__m_ VARCHAR)
### Response:
### Response:
SELECT COUNT(height__ft_) FROM table_name_12 WHERE name = "churchill house" AND height__m_ < 59</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incorporated for principal activites of travel agency
### Context:
CREATE TABLE table_name_73 (incorporated_in VARCHAR, principal_activities VARCHAR)
### Response:
### Response:
SELECT incorporated_in FROM table_name_73 WHERE principal_activities = "travel agency"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kind of South Marquesan has a Sāmoan of /matua/?
### Context:
CREATE TABLE table_name_67 (south_marquesan VARCHAR, sāmoan VARCHAR)
### Response:
### Response:
SELECT south_marquesan FROM table_name_67 WHERE sāmoan = "/matua/"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid for giorgio pantano?
### Context:
CREATE TABLE table_name_70 (grid INTEGER, driver VARCHAR)
### Response:
### Response:
SELECT AVG(grid) FROM table_name_70 WHERE driver = "giorgio pantano"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of governments are in Africa?
### Context:
CREATE TABLE country (GovernmentForm VARCHAR, Continent VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT GovernmentForm) FROM country WHERE Continent = "Africa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Player of dan federman, and a Pick larger than 114 involves which highest round?
### Context:
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_name_59 WHERE player = "dan federman" AND pick > 114</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kind of Rank has a Bronze of 0 and a Total smaller than 3 and a Nation of austria?
### Context:
CREATE TABLE table_name_6 (rank INTEGER, nation VARCHAR, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_6 WHERE bronze = 0 AND total < 3 AND nation = "austria"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 students enrolled in 2005 at New Hampshire Institute of Art?
### Context:
CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT enrollment__2005_ FROM table_2076490_1 WHERE school = "New Hampshire Institute of Art"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has pick 45
### Context:
CREATE TABLE table_name_33 (college VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT college FROM table_name_33 WHERE pick = 45</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at the game where San Jose was the visitor on May 4?
### Context:
CREATE TABLE table_name_32 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_32 WHERE visitor = "san jose" AND date = "may 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:
How many courses in total are listed?
### Context:
CREATE TABLE Courses (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Courses</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface was used on 2 June 2003?
### Context:
CREATE TABLE table_name_94 (surface VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_94 WHERE date = "2 june 2003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins for Port Fairy and against more than 2333?
### Context:
CREATE TABLE table_name_81 (wins INTEGER, port_fairy_fl VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT MAX(wins) FROM table_name_81 WHERE port_fairy_fl = "port fairy" AND against > 2333</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the team that had a time of 6:41.45 and note FA?
### Context:
CREATE TABLE table_name_26 (rank INTEGER, notes VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT SUM(rank) FROM table_name_26 WHERE notes = "fa" AND time = "6:41.45"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest laps Alex Tagliani did for the Forsythe Racing team?
### Context:
CREATE TABLE table_name_79 (laps INTEGER, team VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT MIN(laps) FROM table_name_79 WHERE team = "forsythe racing" AND driver = "alex tagliani"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the value for oklahoma when nevada and colorado are clinton?
### Context:
CREATE TABLE table_name_94 (oklahoma VARCHAR, nevada VARCHAR, colorado VARCHAR)
### Response:
### Response:
SELECT oklahoma FROM table_name_94 WHERE nevada = "clinton" AND colorado = "clinton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exaltation has a domicile of Saturn and a fall of Jupiter?
### Context:
CREATE TABLE table_name_98 (exaltation VARCHAR, domicile VARCHAR, fall VARCHAR)
### Response:
### Response:
SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the result of the 2011 Concacaf Gold Cup competition?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_49 WHERE competition = "2011 concacaf gold cup"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine was made in 1991?
### Context:
CREATE TABLE table_name_41 (engine_s_ VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT engine_s_ FROM table_name_41 WHERE 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 player came from Cornell University (NCAA)?
### Context:
CREATE TABLE table_2897457_2 (player VARCHAR, college_junior_club_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_2897457_2 WHERE college_junior_club_team = "Cornell University (NCAA)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the customer last names that do not have invoice totals larger than 20.
### Context:
CREATE TABLE CUSTOMER (LastName VARCHAR); CREATE TABLE CUSTOMER (LastName VARCHAR, CustomerId VARCHAR); CREATE TABLE Invoice (CustomerId VARCHAR, total INTEGER)
### Response:
### Response:
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1 with team 2 Mount Cameroon FC?
### Context:
CREATE TABLE table_name_43 (team_1 VARCHAR, team_2 VARCHAR)
### Response:
### Response:
SELECT team_1 FROM table_name_43 WHERE team_2 = "mount cameroon fc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from the game where Dallas played Home and Edmonton was visiting?
### Context:
CREATE TABLE table_name_41 (score VARCHAR, home VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_41 WHERE home = "dallas" AND visitor = "edmonton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which player played in the united states and scored a total of 144 points?
### Context:
CREATE TABLE table_name_85 (player VARCHAR, country VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_85 WHERE country = "united states" AND total = 144</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Programming has a Video of audio only?
### Context:
CREATE TABLE table_name_62 (programming VARCHAR, video VARCHAR)
### Response:
### Response:
SELECT programming FROM table_name_62 WHERE video = "audio only"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue will hold the 2013 Concacaf Gold Cup competition?
### Context:
CREATE TABLE table_name_59 (venue VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_59 WHERE competition = "2013 concacaf gold cup"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is every school for the Adelaide location?
### Context:
CREATE TABLE table_22043925_1 (school VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT school FROM table_22043925_1 WHERE location = "Adelaide"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner when the runner-up was Chemnitzer FC II?
### Context:
CREATE TABLE table_name_86 (winners VARCHAR, runners_up VARCHAR)
### Response:
### Response:
SELECT winners FROM table_name_86 WHERE runners_up = "chemnitzer fc 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:
What award was Trent Tesoro nominated for in 2007?
### Context:
CREATE TABLE table_name_2 (award VARCHAR, result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_2 WHERE result = "nominated" AND year = 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:
Which totals tournament has the lowest wins and top-25 less than 4?
### Context:
CREATE TABLE table_name_66 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)
### Response:
### Response:
SELECT MIN(wins) FROM table_name_66 WHERE tournament = "totals" AND top_25 < 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the mascot whose school opened in 1970?
### Context:
CREATE TABLE table_name_51 (mascot VARCHAR, year_opened VARCHAR)
### Response:
### Response:
SELECT mascot FROM table_name_51 WHERE year_opened = "1970"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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's Fourth District has a Second District of bob springstead?
### Context:
CREATE TABLE table_name_72 (fourth_district VARCHAR, second_district VARCHAR)
### Response:
### Response:
SELECT fourth_district FROM table_name_72 WHERE second_district = "bob springstead"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the number of passengers when the capacity is 81.2%?
### Context:
CREATE TABLE table_name_88 (total_passengers INTEGER, capacity_in_use VARCHAR)
### Response:
### Response:
SELECT SUM(total_passengers) FROM table_name_88 WHERE capacity_in_use = "81.2%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which position had a pick larger than 80 and Walt Mainer as a player?
### Context:
CREATE TABLE table_name_7 (position VARCHAR, pick VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_7 WHERE pick > 80 AND player = "walt mainer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver earned 32 points from the Andretti Green team?
### Context:
CREATE TABLE table_name_91 (driver VARCHAR, team VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_91 WHERE team = "andretti green" AND points = "32"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was the score 6–7(9), 6–2, (10–7)?
### Context:
CREATE TABLE table_name_29 (date VARCHAR, score_in_final VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_29 WHERE score_in_final = "6–7(9), 6–2, (10–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 opponent had an attendance of 63,659?
### Context:
CREATE TABLE table_name_78 (opponent_number VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT opponent_number FROM table_name_78 WHERE attendance = "63,659"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?
### Context:
CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
### Response:
### Response:
SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 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:
What is the maximum miles per hour recorded when the CHI (Carvill Hurricane Index) is equal to 13.5
### Context:
CREATE TABLE table_15416002_1 (v_mph_ INTEGER, chi VARCHAR)
### Response:
### Response:
SELECT MAX(v_mph_) FROM table_15416002_1 WHERE chi = "13.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:
Name the score on august 21, 2007
### Context:
CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_46 WHERE date = "august 21, 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:
Which country has a population density of 50.3?
### Context:
CREATE TABLE table_name_46 (country VARCHAR, population_density__per_km²_ VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_46 WHERE population_density__per_km²_ = "50.3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the away team who played Footscray?
### Context:
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_23 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:
If the original air date is February 4, 2003, what is the episode title?
### Context:
CREATE TABLE table_228973_9 (title VARCHAR, original_air_date VARCHAR)
### Response:
### Response:
SELECT title FROM table_228973_9 WHERE original_air_date = "February 4, 2003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 F-A of the game on 6 march 1993?
### Context:
CREATE TABLE table_name_95 (result_f___a VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result_f___a FROM table_name_95 WHERE date = "6 march 1993"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has fewer than 2047.3 overs, more than 200 wickets and an average of 29.02?
### Context:
CREATE TABLE table_name_53 (name VARCHAR, average VARCHAR, overs VARCHAR, wickets VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_53 WHERE overs < 2047.3 AND wickets > 200 AND average > 29.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 correct year for # / county of 09 cass?
### Context:
CREATE TABLE table_name_65 (year_joined VARCHAR, _number___county VARCHAR)
### Response:
### Response:
SELECT year_joined FROM table_name_65 WHERE _number___county = "09 cass"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 code for rank 10?
### Context:
CREATE TABLE table_name_18 (code__iata_icao_ VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT code__iata_icao_ FROM table_name_18 WHERE rank = 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:
Who was the girl on week 1 that was previous to week 3's Ava Hart?
### Context:
CREATE TABLE table_name_23 (week_1 VARCHAR, week_3 VARCHAR)
### Response:
### Response:
SELECT week_1 FROM table_name_23 WHERE week_3 = "ava hart"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Date of Catalog 573 194-2?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_76 WHERE catalog = "573 194-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 times was the time 20' 05.19 112.703mph on Thurs Aug 26th?
### Context:
CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR)
### Response:
### Response:
SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = "20' 05.19 112.703mph"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opposing team for the second test?
### Context:
CREATE TABLE table_name_30 (opposing_team VARCHAR, status VARCHAR)
### Response:
### Response:
SELECT opposing_team FROM table_name_30 WHERE status = "second test"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did Mike Rockenfeller have the fastest lap?
### Context:
CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
### Response:
### Response:
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Q1+Q2 time for the driver whose Q1 order was 13?
### Context:
CREATE TABLE table_name_35 (q1 VARCHAR, q2_time VARCHAR, q1_order VARCHAR)
### Response:
### Response:
SELECT q1 + q2_time FROM table_name_35 WHERE q1_order = 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:
What is the highest Byes by Anakie who has an Against smaller than 2275?
### Context:
CREATE TABLE table_name_14 (byes INTEGER, geelong_dfl VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT MAX(byes) FROM table_name_14 WHERE geelong_dfl = "anakie" AND against < 2275</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tot officers were there on the date when the number of tot enlisted was 329640?
### Context:
CREATE TABLE table_23508196_2 (tot_officers VARCHAR, tot_enlisted VARCHAR)
### Response:
### Response:
SELECT tot_officers FROM table_23508196_2 WHERE tot_enlisted = 329640</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ergative for the dative chven?
### Context:
CREATE TABLE table_name_33 (ergative VARCHAR, dative VARCHAR)
### Response:
### Response:
SELECT ergative FROM table_name_33 WHERE dative = "chven"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 courses are offered by the Computer Info. Systems department?
### Context:
CREATE TABLE course (dept_code VARCHAR); CREATE TABLE department (dept_code VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code = T2.dept_code WHERE dept_name = "Computer Info. Systems"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position for eifelland racing
### Context:
CREATE TABLE table_25794532_1 (position VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT position FROM table_25794532_1 WHERE team = "Eifelland Racing"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Symbian/Series 40 is 0.40%, what is the percentage of "other"?
### Context:
CREATE TABLE table_11381701_3 (other VARCHAR, symbian___series_40 VARCHAR)
### Response:
### Response:
SELECT other FROM table_11381701_3 WHERE symbian___series_40 = "0.40%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player from the Detroit Red Wings?
### Context:
CREATE TABLE table_1213511_6 (nationality VARCHAR, nhl_team VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_1213511_6 WHERE nhl_team = "Detroit Red Wings"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times during the season were the seahawks 8-6?
### Context:
CREATE TABLE table_13259019_2 (result VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT COUNT(result) FROM table_13259019_2 WHERE record = "8-6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the batsmen at the Brit Oval location?
### Context:
CREATE TABLE table_name_76 (batsmen VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT batsmen FROM table_name_76 WHERE location = "the brit oval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the time (GMT) for the 12A Serial?
### Context:
CREATE TABLE table_name_9 (time___gmt__ VARCHAR, serial VARCHAR)
### Response:
### Response:
SELECT time___gmt__ FROM table_name_9 WHERE serial = "12a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Established has a Club of guelph rangers?
### Context:
CREATE TABLE table_name_61 (established VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT established FROM table_name_61 WHERE club = "guelph rangers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year did the movie Rango come out?
### Context:
CREATE TABLE table_name_3 (year INTEGER, film VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_3 WHERE film = "rango"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for the date of april 4?
### Context:
CREATE TABLE table_name_23 (attendance INTEGER, date VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_23 WHERE date = "april 4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest Week for october 12, 2008?
### Context:
CREATE TABLE table_name_67 (week INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MAX(week) FROM table_name_67 WHERE date = "october 12, 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:
what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம்
### Context:
CREATE TABLE table_201400_2 (kannada_name_ಕನ್ನಡ VARCHAR, tamil_name_தமிழ் VARCHAR)
### Response:
### Response:
SELECT kannada_name_ಕನ್ನಡ FROM table_201400_2 WHERE tamil_name_தமிழ் = "Anusham அனுஷம்"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Venue of the King's Cup 1998?
### Context:
CREATE TABLE table_name_3 (venue VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_3 WHERE competition = "king's cup 1998"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
According to W3Counter, what percentage of browsers used Firefox?
### Context:
CREATE TABLE table_name_60 (firefox VARCHAR, source VARCHAR)
### Response:
### Response:
SELECT firefox FROM table_name_60 WHERE source = "w3counter"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
display job title and average salary of employees.
### Context:
CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (job_id VARCHAR)
### Response:
### Response:
SELECT job_title, AVG(salary) FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id GROUP BY T2.job_title</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.