cnatale/presto-athena-txt-2-sql huggingface dataset:
What are the vocal types used in song 'Le Pop'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'
What are the types of vocals used in the song 'Le Pop'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'
Find the number of vocal types used in song 'Demon Kitty Rag'?
Additional table information: table: music_2
SQL: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Demon Kitty Rag'
What are the types of vocals used in the song 'Demon Kitty Rag'?
Additional table information: table: music_2
SQL: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Demon Kitty Rag'
How many songs have a lead vocal?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'lead'
How many songs have vocals of type lead?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'lead'
Which vocal type did the musician with first name 'Solveig' played in the song with title 'A Bar in Amsterdam'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = 'Solveig' AND T2.title = 'A Bar In Amsterdam'
What are the types of vocals that the musician with the first name 'Solveig' played in the song 'A Bar in Amsterdam'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.firstname = 'Solveig' AND T2.title = 'A Bar In Amsterdam'
Find all the songs that do not have a lead vocal.
Additional table information: table: music_2
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 = 'lead'
What are the names of the songs without a lead vocal?
Additional table information: table: music_2
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 = 'lead'
Find all the vocal types.
Additional table information: table: music_2
SQL: SELECT DISTINCT TYPE FROM vocals
What are the different types of vocals?
Additional table information: table: music_2
SQL: SELECT DISTINCT TYPE FROM vocals
What are the albums produced in year 2010?
Additional table information: table: music_2
SQL: SELECT * FROM Albums WHERE YEAR = 2010
What information is there on albums from 2010?
Additional table information: table: music_2
SQL: SELECT * FROM Albums WHERE YEAR = 2010
Who performed the song named 'Le Pop'?
Additional table information: table: music_2
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 = 'Le Pop'
What is the first and last name of artist who performed 'Le Pop'?
Additional table information: table: music_2
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 = 'Le Pop'
What is the last name of the musician that have produced the most songs?
Additional table information: table: music_2
SQL: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What is the last name of the artist who sang the most songs?
Additional table information: table: music_2
SQL: SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1
What instrument did the musician with last name 'Heilo' use in the song 'Badlands'?
Additional table information: table: music_2
SQL: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = 'Heilo' AND T3.title = 'Badlands'
What instruments did the musician with the last name 'Heilo' play in 'Badlands'?
Additional table information: table: music_2
SQL: SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = 'Heilo' AND T3.title = 'Badlands'
How many instruments does the song 'Badlands' use?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'
How many different instruments are used in the song 'Badlands'?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT instrument) FROM instruments AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'
What are the vocal types used in song 'Badlands'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'
What types of vocals are used in the song 'Badlands'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Badlands'
Find the number of vocal types used in song 'Le Pop'
Additional table information: table: music_2
SQL: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'
How many vocal types are used in the song 'Le Pop'?
Additional table information: table: music_2
SQL: SELECT COUNT(*) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE title = 'Le Pop'
How many songs have a shared vocal?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'shared'
How many different songs have shared vocals?
Additional table information: table: music_2
SQL: SELECT COUNT(DISTINCT title) FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid WHERE TYPE = 'shared'
Find all the songs that do not have a back vocal.
Additional table information: table: music_2
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'
What are the different names of all songs without back vocals?
Additional table information: table: music_2
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'
Which vocal type has the band mate with first name 'Solveig' played the most?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = 'Solveig' GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
What are the types of vocals that the band member with the first name 'Solveig' played the most?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE firstname = 'Solveig' GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type did the musician with last name 'Heilo' played in the song with title 'Der Kapitan'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = 'Heilo' AND T2.title = 'Der Kapitan'
What are the types of vocals that the musician with the last name 'Heilo' played in 'Der Kapitan'?
Additional table information: table: music_2
SQL: SELECT TYPE FROM vocals AS T1 JOIN songs AS T2 ON T1.songid = T2.songid JOIN band AS T3 ON T1.bandmate = T3.id WHERE T3.lastname = 'Heilo' AND T2.title = 'Der Kapitan'
Find the first name of the band mate that has performed in most songs.
Additional table information: table: music_2
SQL: SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1
What is the first name of the band mate who perfomed in the most songs?
Additional table information: table: music_2
SQL: SELECT t2.firstname FROM Performance AS t1 JOIN Band AS t2 ON t1.bandmate = t2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId GROUP BY firstname ORDER BY COUNT(*) DESC LIMIT 1
Which vocal type has the band mate with first name 'Marianne' played the most?
Additional table information: table: music_2
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
What is the vocal type of the band mate whose first name is 'Marianne' played the most?
Additional table information: table: music_2
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
Who is performing in the back stage position for the song 'Der Kapitan'? Show the first name and last name.
Additional table information: table: music_2
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'
What is the first and last name of the artist who performed back stage for the song 'Der Kapitan'?
Additional table information: table: music_2
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'
Find the name of songs that does not have a back vocal.
Additional table information: table: music_2
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'
What are the names of the songs that do not have back vocals?
Additional table information: table: music_2
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'
What are the songs in album 'A Kiss Before You Go: Live in Hamburg'?
Additional table information: table: music_2
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'
What are the song titles on the album 'A Kiss Before You Go: Live in Hamburg'?
Additional table information: table: music_2
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'
What are all the songs in albums under label 'Universal Music Group'?
Additional table information: table: music_2
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'
What are the names of all the songs whose album is under the label of 'Universal Music Group'?
Additional table information: table: music_2
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'
Find the number of songs in all the studio albums.
Additional table information: table: music_2
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'
How many songs appear in studio albums?
Additional table information: table: music_2
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'
Who is the founder of Sony?
Additional table information: table: manufactory_1
SQL: SELECT founder FROM manufacturers WHERE name = 'Sony'
Return the founder of Sony.
Additional table information: table: manufactory_1
SQL: SELECT founder FROM manufacturers WHERE name = 'Sony'
Where is the headquarter of the company founded by James?
Additional table information: table: manufactory_1
SQL: SELECT headquarter FROM manufacturers WHERE founder = 'James'
What is the headquarter of the company whose founder is James?
Additional table information: table: manufactory_1
SQL: SELECT headquarter FROM manufacturers WHERE founder = 'James'
Find all manufacturers' names and their headquarters, sorted by the ones with highest revenue first.
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC
What are the names and headquarters of all manufacturers, ordered by revenue descending?
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter FROM manufacturers ORDER BY revenue DESC
What are the average, maximum and total revenues of all companies?
Additional table information: table: manufactory_1
SQL: SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers
Return the average, maximum, and total revenues across all manufacturers.
Additional table information: table: manufactory_1
SQL: SELECT AVG(revenue), MAX(revenue), SUM(revenue) FROM manufacturers
How many companies were created by Andy?
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy'
Return the number of companies created by Andy.
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM manufacturers WHERE founder = 'Andy'
Find the total revenue created by the companies whose headquarter is located at Austin.
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'
What is the sum of revenue from companies with headquarters in Austin?
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin'
What are the different cities listed?
Additional table information: table: manufactory_1
SQL: SELECT DISTINCT headquarter FROM manufacturers
Give the distinct headquarters of manufacturers.
Additional table information: table: manufactory_1
SQL: SELECT DISTINCT headquarter FROM manufacturers
Find the number of manufactures that are based in Tokyo or Beijing.
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
How many manufacturers have headquarters in either Tokyo or Beijing?
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM manufacturers WHERE headquarter = 'Tokyo' OR headquarter = 'Beijing'
Find the founder of the company whose name begins with the letter 'S'.
Additional table information: table: manufactory_1
SQL: SELECT founder FROM manufacturers WHERE name LIKE 'S%'
Who is the founders of companies whose first letter is S?
Additional table information: table: manufactory_1
SQL: SELECT founder FROM manufacturers WHERE name LIKE 'S%'
Find the name of companies whose revenue is between 100 and 150.
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
What are the names of companies with revenue between 100 and 150?
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150
What is the total revenue of all companies whose main office is at Tokyo or Taiwan?
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
Return the total revenue of companies with headquarters in Tokyo or Taiwan.
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE Headquarter = 'Tokyo' OR Headquarter = 'Taiwan'
Find the name of product that is produced by both companies Creative Labs and Sony.
Additional table information: table: manufactory_1
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'
What are the names of products produced by both Creative Labs and Sony?
Additional table information: table: manufactory_1
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'
Find the name, headquarter and founder of the manufacturer that has the highest revenue.
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
What are the names, headquarters and founders of the company with the highest revenue?
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC
What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
Additional table information: table: manufactory_1
SQL: SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC
Find the name of companies whose revenue is greater than the average revenue of all companies.
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
What are the names of manufacturers with revenue greater than the average of all revenues?
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue > (SELECT AVG(revenue) FROM manufacturers)
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
Additional table information: table: manufactory_1
SQL: SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
Find the total revenue of companies of each founder.
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder
What is the total revenue of companies started by founder?
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue), founder FROM manufacturers GROUP BY founder
Find the name and revenue of the company that earns the highest revenue in each city.
Additional table information: table: manufactory_1
SQL: SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter
What are the names and revenues of the companies with the highest revenues in each headquarter city?
Additional table information: table: manufactory_1
SQL: SELECT name, MAX(revenue), Headquarter FROM manufacturers GROUP BY Headquarter
Find the total revenue for each manufacturer.
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue), name FROM manufacturers GROUP BY name
What is the total revenue of each manufacturer?
Additional table information: table: manufactory_1
SQL: SELECT SUM(revenue), name FROM manufacturers GROUP BY name
Find the average prices of all products from each manufacture, and list each company's name.
Additional table information: table: manufactory_1
SQL: SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
What are the average prices of products for each manufacturer?
Additional table information: table: manufactory_1
SQL: SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
Find the number of different products that are produced by companies at different headquarter cities.
Additional table information: table: manufactory_1
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
How many different products are produced in each headquarter city?
Additional table information: table: manufactory_1
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
Find number of products which Sony does not make.
Additional table information: table: manufactory_1
SQL: SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony')
How many products are not made by Sony?
Additional table information: table: manufactory_1
SQL: SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony')
Find the name of companies that do not make DVD drive.
Additional table information: table: manufactory_1
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'
What are the names of companies that do not make DVD drives?
Additional table information: table: manufactory_1
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'
Find the number of products for each manufacturer, showing the name of each company.
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
How many products are there for each manufacturer?
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
Select the names of all the products in the store.
Additional table information: table: manufactory_1
SQL: SELECT Name FROM Products
What are the names of all products?
Additional table information: table: manufactory_1
SQL: SELECT Name FROM Products
Select the names and the prices of all the products in the store.
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM products
What are the names and prices of all products in the store?
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM products
Select the name of the products with a price less than or equal to $200.
Additional table information: table: manufactory_1
SQL: SELECT name FROM products WHERE price <= 200
What are the names of products with price at most 200?
Additional table information: table: manufactory_1
SQL: SELECT name FROM products WHERE price <= 200
Find all information of all the products with a price between $60 and $120.
Additional table information: table: manufactory_1
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
What is all the information of all the products that have a price between 60 and 120?
Additional table information: table: manufactory_1
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Compute the average price of all the products.
Additional table information: table: manufactory_1
SQL: SELECT AVG(price) FROM products
What is the average price across all products?
Additional table information: table: manufactory_1
SQL: SELECT AVG(price) FROM products
Compute the average price of all products with manufacturer code equal to 2.
Additional table information: table: manufactory_1
SQL: SELECT AVG(price) FROM products WHERE manufacturer = 2
What is the average price of products with manufacturer codes equal to 2?
Additional table information: table: manufactory_1
SQL: SELECT AVG(price) FROM products WHERE manufacturer = 2
Compute the number of products with a price larger than or equal to $180.
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM products WHERE price >= 180
How many products have prices of at least 180?
Additional table information: table: manufactory_1
SQL: SELECT COUNT(*) FROM products WHERE price >= 180
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).
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name ASC NULLS FIRST
What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM products WHERE price >= 180 ORDER BY price DESC, name ASC NULLS FIRST
Select all the data from the products and each product's manufacturer.
Additional table information: table: manufactory_1
SQL: SELECT * FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code
What is all the product data, as well as  each product's manufacturer?
Additional table information: table: manufactory_1
SQL: SELECT * FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code
Select the average price of each manufacturer's products, showing only the manufacturer's code.
Additional table information: table: manufactory_1
SQL: SELECT AVG(Price), manufacturer FROM Products GROUP BY manufacturer
What are the average prices of products, grouped by manufacturer code?
Additional table information: table: manufactory_1
SQL: SELECT AVG(Price), manufacturer FROM Products GROUP BY manufacturer
Select the average price of each manufacturer's products, showing the manufacturer's name.
Additional table information: table: manufactory_1
SQL: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
What are the average prices of products, grouped by manufacturer name?
Additional table information: table: manufactory_1
SQL: SELECT AVG(T1.Price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name
Select the names of manufacturer whose products have an average price higher than or equal to $150.
Additional table information: table: manufactory_1
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
What are the names and average prices of products for manufacturers whose products cost on average 150 or more?
Additional table information: table: manufactory_1
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
Select the name and price of the cheapest product.
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM Products ORDER BY price ASC NULLS FIRST LIMIT 1
What is the name and price of the cheapest product?
Additional table information: table: manufactory_1
SQL: SELECT name, price FROM Products ORDER BY price ASC NULLS FIRST LIMIT 1
Select the name of each manufacturer along with the name and price of its most expensive product.
Additional table information: table: manufactory_1
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
For each manufacturer name, what are the names and prices of their most expensive product?
Additional table information: table: manufactory_1
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
Select the code of the product that is cheapest in each product category.
Additional table information: table: manufactory_1
SQL: SELECT code, name, MIN(price) FROM products GROUP BY name
What are the codes and names of the cheapest products in each category?
Additional table information: table: manufactory_1
SQL: SELECT code, name, MIN(price) FROM products GROUP BY name
What is the id of the problem log that is created most recently?
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
Which problem log was created most recently? Give me the log id.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
What is the oldest log id and its corresponding problem id?
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date NULLS FIRST LIMIT 1
Find the oldest log id and its corresponding problem id.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, problem_id FROM problem_log ORDER BY log_entry_date NULLS FIRST LIMIT 1
Find all the ids and dates of the logs for the problem whose id is 10.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10
For the problem with id 10, return the ids and dates of its problem logs.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, log_entry_date FROM problem_log WHERE problem_id = 10
List all the log ids and their descriptions from the problem logs.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, log_entry_description FROM problem_log
What are the log id and entry description of each problem?
Additional table information: table: tracking_software_problems
SQL: SELECT problem_log_id, log_entry_description FROM problem_log
List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
Additional table information: table: tracking_software_problems
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
Which staff members are assigned to the problem with id 1? Give me their first and last names.
Additional table information: table: tracking_software_problems
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
List the problem id and log id which are assigned to the staff named Rylan Homenick.
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = 'Rylan' AND T1.staff_last_name = 'Homenick'
Which problem id and log id are assigned to the staff named Rylan Homenick?
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = 'Rylan' AND T1.staff_last_name = 'Homenick'
How many problems are there for product voluptatem?
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = 'voluptatem'
How many problems did the product called 'voluptatem' have in record?
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = 'voluptatem'
How many problems does the product with the most problems have? List the number of the problems and product name.
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
Which product has the most problems? Give me the number of problems and the product name.
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop'
Which problems are reported by the staff with first name 'Christop'? Show the descriptions of the problems.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop'
Find the ids of the problems that are reported by the staff whose last name is Bosco.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = 'Bosco'
Which problems are reported by the staff with last name 'Bosco'? Show the ids of the problems.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = 'Bosco'
What are the ids of the problems which are reported after 1978-06-26?
Additional table information: table: tracking_software_problems
SQL: SELECT problem_id FROM problems WHERE date_problem_reported > '1978-06-26'
Find the ids of the problems reported after 1978-06-26.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_id FROM problems WHERE date_problem_reported > '1978-06-26'
What are the ids of the problems which are reported before 1978-06-26?
Additional table information: table: tracking_software_problems
SQL: SELECT problem_id FROM problems WHERE date_problem_reported < '1978-06-26'
Which problems are reported before 1978-06-26? Give me the ids of the problems.
Additional table information: table: tracking_software_problems
SQL: SELECT problem_id FROM problems WHERE date_problem_reported < '1978-06-26'
For each product which has problems, what are the number of problems and the product id?
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
For each product with some problems, list the count of problems and the product id.
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > '1986-11-13' GROUP BY T2.product_id
What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.
Additional table information: table: tracking_software_problems
SQL: SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > '1986-11-13' GROUP BY T2.product_id
List the names of all the distinct product names in alphabetical order?
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_name NULLS FIRST
Sort all the distinct product names in alphabetical order.
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_name NULLS FIRST
List all the distinct product names ordered by product id?
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_id NULLS FIRST
What is the list of distinct product names sorted by product id?
Additional table information: table: tracking_software_problems
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_id NULLS FIRST
What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
Additional table information: table: tracking_software_problems
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Dameon' AND T2.staff_last_name = 'Frami' UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Jolie' AND T2.staff_last_name = 'Weber'
Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
Additional table information: table: tracking_software_problems
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Dameon' AND T2.staff_last_name = 'Frami' UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Jolie' AND T2.staff_last_name = 'Weber'
What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
Additional table information: table: tracking_software_problems
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop' AND T2.staff_last_name = 'Berge' INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Ashley' AND T2.staff_last_name = 'Medhurst'
For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.
Additional table information: table: tracking_software_problems
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Christop' AND T2.staff_last_name = 'Berge' INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = 'Ashley' AND T2.staff_last_name = 'Medhurst'
What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Lysanne' AND T4.staff_last_name = 'Turcotte')
Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Lysanne' AND T4.staff_last_name = 'Turcotte')
What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Rylan' AND T4.staff_last_name = 'Homenick')
Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported > (SELECT MAX(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = 'Rylan' AND T4.staff_last_name = 'Homenick')
Find the top 3 products which have the largest number of problems?
Additional table information: table: tracking_software_problems
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3
What are the three products that have the most problems?s
Additional table information: table: tracking_software_problems
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY COUNT(*) DESC LIMIT 3
List the ids of the problems from the product 'voluptatem' that are reported after 1995?
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'voluptatem' AND T1.date_problem_reported > '1995'
What are the ids of the problems that are from the product 'voluptatem' and are reported after 1995?
Additional table information: table: tracking_software_problems
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = 'voluptatem' AND T1.date_problem_reported > '1995'
Find the first and last name of the staff members who reported problems from the product 'rem' but not 'aut'?
Additional table information: table: tracking_software_problems
SQL: SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'rem' EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'aut'
Which staff members who reported problems from the product 'rem' but not 'aut'? Give me their first and last names.
Additional table information: table: tracking_software_problems
SQL: SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'rem' EXCEPT SELECT T3.staff_first_name, T3.staff_last_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = 'aut'
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
Additional table information: table: tracking_software_problems
SQL: SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Lacey' AND T3.staff_last_name = 'Bosco' INTERSECT SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Kenton' AND T3.staff_last_name = 'Champlin'
Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?
Additional table information: table: tracking_software_problems
SQL: SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Lacey' AND T3.staff_last_name = 'Bosco' INTERSECT SELECT T2.product_name FROM problems AS T1, product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = 'Kenton' AND T3.staff_last_name = 'Champlin'
How many branches where have more than average number of memberships are there?
Additional table information: table: shop_membership
SQL: SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
What is the number of branches that have more than the average number of memberships?
Additional table information: table: shop_membership
SQL: SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
Show name, address road, and city for all branches sorted by open year.
Additional table information: table: shop_membership
SQL: SELECT name, address_road, city FROM branch ORDER BY open_year NULLS FIRST
What are the names, address roads, and cities of the branches ordered by opening year?
Additional table information: table: shop_membership
SQL: SELECT name, address_road, city FROM branch ORDER BY open_year NULLS FIRST
What are names for top three branches with most number of membership?
Additional table information: table: shop_membership
SQL: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
What are the names for the 3 branches that have the most memberships?
Additional table information: table: shop_membership
SQL: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
Show all distinct city where branches with at least 100 memberships are located.
Additional table information: table: shop_membership
SQL: SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
What are the different cities that have more than 100 memberships?
Additional table information: table: shop_membership
SQL: SELECT DISTINCT city FROM branch WHERE membership_amount >= 100
List all open years when at least two shops are opened.
Additional table information: table: shop_membership
SQL: SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2
What are the opening years in which at least two shops opened?
Additional table information: table: shop_membership
SQL: SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 2
Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
Additional table information: table: shop_membership
SQL: SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
Additional table information: table: shop_membership
SQL: SELECT MIN(membership_amount), MAX(membership_amount) FROM branch WHERE open_year = 2011 OR city = 'London'
Show the city and the number of branches opened before 2010 for each city.
Additional table information: table: shop_membership
SQL: SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city
For each city, how many branches opened before 2010?
Additional table information: table: shop_membership
SQL: SELECT city, COUNT(*) FROM branch WHERE open_year < 2010 GROUP BY city
How many different levels do members have?
Additional table information: table: shop_membership
SQL: SELECT COUNT(DISTINCT LEVEL) FROM member