target-benchmark/spider-queries huggingface dataset:
Database: music_2 (tables: band, vocals)
Question: Which vocal type has the band mate with first name "Marianne" played the most?
SQL: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "Marianne" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Database: music_2 (tables: band, vocals)
Question: What is the vocal type of the band mate whose first name is "Marianne" played the most?
SQL: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate  =  T2.id WHERE firstname  =  "Marianne" GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
Database: music_2 (tables: band, songs, performance)
Question: Who is performing in the back stage position for the song "Der Kapitan"? Show the first name and last name.
SQL: SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  "Der Kapitan" AND T1.StagePosition  =  "back"
Database: music_2 (tables: band, songs, performance)
Question: What is the first and last name of the artist who performed back stage for the song "Der Kapitan"?
SQL: SELECT T2.firstname ,  T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate  =  T2.id JOIN Songs AS T3 ON T3.SongId  =  T1.SongId WHERE T3.Title  =  "Der Kapitan" AND T1.StagePosition  =  "back"
Database: music_2 (tables: songs, vocals)
Question: Find the name of songs that does not have a back vocal.
SQL: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "back"
Database: music_2 (tables: songs, vocals)
Question: What are the names of the songs that do not have back vocals?
SQL: SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid  =  t2.songid WHERE TYPE  =  "back"
Database: music_2 (tables: tracklists, albums, songs)
Question: What are the songs in album "A Kiss Before You Go: Live in Hamburg"?
SQL: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  "A Kiss Before You Go: Live in Hamburg"
Database: music_2 (tables: tracklists, albums, songs)
Question: What are the song titles on the album "A Kiss Before You Go: Live in Hamburg"?
SQL: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE T1.title  =  "A Kiss Before You Go: Live in Hamburg"
Database: music_2 (tables: tracklists, albums, songs)
Question: What are all the songs in albums under label "Universal Music Group"?
SQL: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  "Universal Music Group"
Database: music_2 (tables: tracklists, albums, songs)
Question: What are the names of all the songs whose album is under the label of "Universal Music Group"?
SQL: SELECT T3.title FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.label  =  "Universal Music Group"
Database: music_2 (tables: tracklists, albums, songs)
Question: Find the number of songs in all the studio albums.
SQL: SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.type  =  "Studio"
Database: music_2 (tables: tracklists, albums, songs)
Question: How many songs appear in studio albums?
SQL: SELECT count(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid  =  T2.albumid JOIN songs AS T3 ON T2.songid  =  T3.songid WHERE t1.type  =  "Studio"
Database: manufactory_1 (tables: manufacturers)
Question: Who is the founder of Sony?
SQL: SELECT founder FROM manufacturers WHERE name  =  'Sony'
Database: manufactory_1 (tables: manufacturers)
Question: Return the founder of Sony.
SQL: SELECT founder FROM manufacturers WHERE name  =  'Sony'
Database: manufactory_1 (tables: manufacturers)
Question: Where is the headquarter of the company founded by James?
SQL: SELECT headquarter FROM manufacturers WHERE founder  =  'James'
Database: manufactory_1 (tables: manufacturers)
Question: What is the headquarter of the company whose founder is James?
SQL: SELECT headquarter FROM manufacturers WHERE founder  =  'James'
Database: manufactory_1 (tables: manufacturers)
Question: Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.
SQL: SELECT name ,  headquarter FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1 (tables: manufacturers)
Question: What are the names and headquarters of all manufacturers, ordered by revenue descending?
SQL: SELECT name ,  headquarter FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1 (tables: manufacturers)
Question: What are the average, maximum and total revenues of all companies?
SQL: SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers
Database: manufactory_1 (tables: manufacturers)
Question: Return the average, maximum, and total revenues across all manufacturers.
SQL: SELECT avg(revenue) ,  max(revenue) ,  sum(revenue) FROM manufacturers
Database: manufactory_1 (tables: manufacturers)
Question: How many companies were created by Andy?
SQL: SELECT count(*) FROM manufacturers WHERE founder  =  'Andy'
Database: manufactory_1 (tables: manufacturers)
Question: Return the number of companies created by Andy.
SQL: SELECT count(*) FROM manufacturers WHERE founder  =  'Andy'
Database: manufactory_1 (tables: manufacturers)
Question: Find the total revenue created by the companies whose headquarter is located at Austin.
SQL: SELECT sum(revenue) FROM manufacturers WHERE headquarter  =  'Austin'
Database: manufactory_1 (tables: manufacturers)
Question: What is the sum of revenue from companies with headquarters in Austin?
SQL: SELECT sum(revenue) FROM manufacturers WHERE headquarter  =  'Austin'
Database: manufactory_1 (tables: manufacturers)
Question: What are the different cities listed?
SQL: SELECT DISTINCT headquarter FROM manufacturers
Database: manufactory_1 (tables: manufacturers)
Question: Give the distinct headquarters of manufacturers.
SQL: SELECT DISTINCT headquarter FROM manufacturers
Database: manufactory_1 (tables: manufacturers)
Question: Find the number of manufactures that are based in Tokyo or Beijing.
SQL: SELECT count(*) FROM manufacturers WHERE headquarter  =  'Tokyo' OR headquarter  =  'Beijing'
Database: manufactory_1 (tables: manufacturers)
Question: How many manufacturers have headquarters in either Tokyo or Beijing?
SQL: SELECT count(*) FROM manufacturers WHERE headquarter  =  'Tokyo' OR headquarter  =  'Beijing'
Database: manufactory_1 (tables: manufacturers)
Question: Find the founder of the company whose name begins with the letter 'S'.
SQL: SELECT founder FROM manufacturers WHERE name LIKE 'S%'
Database: manufactory_1 (tables: manufacturers)
Question: Who is the founders of companies whose first letter is S?
SQL: SELECT founder FROM manufacturers WHERE name LIKE 'S%'
Database: manufactory_1 (tables: manufacturers)
Question: Find the name of companies whose revenue is between 100 and 150.
SQL: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Database: manufactory_1 (tables: manufacturers)
Question: What are the names of companies with revenue between 100 and 150?
SQL: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
Database: manufactory_1 (tables: manufacturers)
Question: What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
SQL: SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  'Tokyo' OR Headquarter  =  'Taiwan'
Database: manufactory_1 (tables: manufacturers)
Question: Return the total revenue of companies with headquarters in Tokyo or Taiwan.
SQL: SELECT sum(revenue) FROM manufacturers WHERE Headquarter  =  'Tokyo' OR Headquarter  =  'Taiwan'
Database: manufactory_1 (tables: manufacturers, products)
Question: Find the name of product that is produced by both companies Creative Labs and Sony.
SQL: SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony'
Database: manufactory_1 (tables: manufacturers, products)
Question: What are the names of products produced by both Creative Labs and Sony?
SQL: SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony'
Database: manufactory_1 (tables: manufacturers)
Question: Find the name, headquarter and founder of the manufacturer that has the highest revenue.
SQL: SELECT name ,  headquarter ,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Database: manufactory_1 (tables: manufacturers)
Question: What are the names, headquarters and founders of the company with the highest revenue?
SQL: SELECT name ,  headquarter ,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Database: manufactory_1 (tables: manufacturers)
Question: Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
SQL: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1 (tables: manufacturers)
Question: What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
SQL: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1 (tables: manufacturers)
Question: Find the name of companies whose revenue is greater than the average revenue of all companies.
SQL: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Database: manufactory_1 (tables: manufacturers)
Question: What are the names of manufacturers with revenue greater than the average of all revenues?
SQL: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Database: manufactory_1 (tables: manufacturers)
Question: Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
SQL: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1 (tables: manufacturers)
Question: What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
SQL: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1 (tables: manufacturers)
Question: Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
SQL: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1 (tables: manufacturers)
Question: What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?
SQL: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1 (tables: manufacturers)
Question: Find the total revenue of companies of each founder.
SQL: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Database: manufactory_1 (tables: manufacturers)
Question: What is the total revenue of companies started by founder?
SQL: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Database: manufactory_1 (tables: manufacturers)
Question: Find the name and revenue of the company that earns the highest revenue in each city.
SQL: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Database: manufactory_1 (tables: manufacturers)
Question: What are the names and revenues of the companies with the highest revenues in each headquarter city?
SQL: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Database: manufactory_1 (tables: manufacturers)
Question: Find the total revenue for each manufacturer.
SQL: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Database: manufactory_1 (tables: manufacturers)
Question: What is the total revenue of each manufacturer?
SQL: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Database: manufactory_1 (tables: manufacturers, products)
Question: Find the average prices of all products from each manufacture, and list each company's name.
SQL: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: What are the average prices of products for each manufacturer?
SQL: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: Find the number of different products that are produced by companies at different headquarter cities.
SQL: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Database: manufactory_1 (tables: manufacturers, products)
Question: How many different products are produced in each headquarter city?
SQL: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Database: manufactory_1 (tables: manufacturers, products)
Question: Find number of products which Sony does not make.
SQL: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')
Database: manufactory_1 (tables: manufacturers, products)
Question: How many products are not made by Sony?
SQL: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')
Database: manufactory_1 (tables: manufacturers, products)
Question: Find the name of companies that do not make DVD drive.
SQL: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'
Database: manufactory_1 (tables: manufacturers, products)
Question: What are the names of companies that do not make DVD drives?
SQL: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'
Database: manufactory_1 (tables: manufacturers, products)
Question: Find the number of products for each manufacturer, showing the name of each company.
SQL: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: How many products are there for each manufacturer?
SQL: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: products)
Question: Select the names of all the products in the store.
SQL: SELECT Name FROM Products
Database: manufactory_1 (tables: products)
Question: What are the names of all products?
SQL: SELECT Name FROM Products
Database: manufactory_1 (tables: products)
Question: Select the names and the prices of all the products in the store.
SQL: SELECT name ,  price FROM products
Database: manufactory_1 (tables: products)
Question: What are the names and prices of all products in the store?
SQL: SELECT name ,  price FROM products
Database: manufactory_1 (tables: products)
Question: Select the name of the products with a price less than or equal to $200.
SQL: SELECT name FROM products WHERE price  <=  200
Database: manufactory_1 (tables: products)
Question: What are the names of products with price at most 200?
SQL: SELECT name FROM products WHERE price  <=  200
Database: manufactory_1 (tables: products)
Question: Find all information of all the products with a price between $60 and $120.
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Database: manufactory_1 (tables: products)
Question: What is all the information of all the products that have a price between 60 and 120?
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Database: manufactory_1 (tables: products)
Question: Compute the average price of all the products.
SQL: SELECT avg(price) FROM products
Database: manufactory_1 (tables: products)
Question: What is the average price across all products?
SQL: SELECT avg(price) FROM products
Database: manufactory_1 (tables: products)
Question: Compute the average price of all products with manufacturer code equal to 2.
SQL: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Database: manufactory_1 (tables: products)
Question: What is the average price of products with manufacturer codes equal to 2?
SQL: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Database: manufactory_1 (tables: products)
Question: Compute the number of products with a price larger than or equal to $180.
SQL: SELECT count(*) FROM products WHERE price >= 180
Database: manufactory_1 (tables: products)
Question: How many products have prices of at least 180?
SQL: SELECT count(*) FROM products WHERE price >= 180
Database: manufactory_1 (tables: products)
Question: Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name  (in ascending order).
SQL: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Database: manufactory_1 (tables: products)
Question: What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
SQL: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Database: manufactory_1 (tables: manufacturers, products)
Question: Select all the data from the products and each product's manufacturer.
SQL: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Database: manufactory_1 (tables: manufacturers, products)
Question: What is all the product data, as well as  each product's manufacturer?
SQL: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Database: manufactory_1 (tables: products)
Question: Select the average price of each manufacturer's products, showing only the manufacturer's code.
SQL: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Database: manufactory_1 (tables: products)
Question: What are the average prices of products, grouped by manufacturer code?
SQL: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Database: manufactory_1 (tables: manufacturers, products)
Question: Select the average price of each manufacturer's products, showing the manufacturer's name.
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: What are the average prices of products, grouped by manufacturer name?
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: Select the names of manufacturer whose products have an average price higher than or equal to $150.
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
Database: manufactory_1 (tables: manufacturers, products)
Question: What are the names and average prices of products for manufacturers whose products cost on average 150 or more?
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
Database: manufactory_1 (tables: products)
Question: Select the name and price of the cheapest product.
SQL: SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1
Database: manufactory_1 (tables: products)
Question: What is the name and price of the cheapest product?
SQL: SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1
Database: manufactory_1 (tables: manufacturers, products)
Question: Select the name of each manufacturer along with the name and price of its most expensive product.
SQL: SELECT T1.Name ,  max(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: manufacturers, products)
Question: For each manufacturer name, what are the names and prices of their most expensive product?
SQL: SELECT T1.Name ,  max(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1 (tables: products)
Question: Select the code of the product that is cheapest in each product category.
SQL: SELECT code ,  name ,  min(price) FROM products GROUP BY name
Database: manufactory_1 (tables: products)
Question: What are the codes and names of the cheapest products in each category?
SQL: SELECT code ,  name ,  min(price) FROM products GROUP BY name
Database: tracking_software_problems (tables: problem_log)
Question: What is the id of the problem log that is created most recently?
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
Database: tracking_software_problems (tables: problem_log)
Question: Which problem log was created most recently? Give me the log id.
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
Database: tracking_software_problems (tables: problem_log)
Question: What is the oldest log id and its corresponding problem id?
SQL: SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
Database: tracking_software_problems (tables: problem_log)
Question: Find the oldest log id and its corresponding problem id.
SQL: SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
Database: tracking_software_problems (tables: problem_log)
Question: Find all the ids and dates of the logs for the problem whose id is 10.
SQL: SELECT problem_log_id ,  log_entry_date FROM problem_log WHERE problem_id = 10
Database: tracking_software_problems (tables: problem_log)
Question: For the problem with id 10, return the ids and dates of its problem logs.
SQL: SELECT problem_log_id ,  log_entry_date FROM problem_log WHERE problem_id = 10
Database: tracking_software_problems (tables: problem_log)
Question: List all the log ids and their descriptions from the problem logs.
SQL: SELECT problem_log_id ,  log_entry_description FROM problem_log
Database: tracking_software_problems (tables: problem_log)
Question: What are the log id and entry description of each problem?
SQL: SELECT problem_log_id ,  log_entry_description FROM problem_log
Database: tracking_software_problems (tables: problem_log, staff)
Question: List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
SQL: SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
Database: tracking_software_problems (tables: problem_log, staff)
Question: Which staff members are assigned to the problem with id 1? Give me their first and last names.
SQL: SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1