SpiderQuestion
stringlengths
16
224
query
stringlengths
18
577
SpiderSynQuestion
stringlengths
19
222
db_id
stringlengths
4
31
Find the id of the customer who made the most orders.
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Find the id of the client who made the most orders.
tracking_orders
Give me a list of id and status of orders which belong to the customer named "Jeramie".
SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
Give me a list of id and status of orders which belong to the client named "Jeramie".
tracking_orders
Which orders are made by the customer named "Jeramie"? Give me the order ids and status.
SELECT T2.order_id , T2.order_status FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
Which orders are made by the client named "Jeramie"? Give me the order ids and status.
tracking_orders
Find the dates of orders which belong to the customer named "Jeramie".
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
Find the day of orders which belong to the client named "Jeramie".
tracking_orders
What are the dates of the orders made by the customer named "Jeramie"?
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie"
What are the day of the orders made by the client named "Jeramie"?
tracking_orders
Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
Give me the names of clients who have placed orders between 2009-01-01 and 2010-01-01.
tracking_orders
Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.date_order_placed >= "2009-01-01" AND T2.date_order_placed <= "2010-01-01"
Which clients made orders between 2009-01-01 and 2010-01-01? Find their names.
tracking_orders
Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?
SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
Give me a list of different goods ids from orders placed between 1975-01-01 and 1976-01-01?
tracking_orders
What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??
SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
What are the different ids of goods ordered between 1975-01-01 and 1976-01-01??
tracking_orders
Find the names of the customers who have order status both "On Road" and "Shipped".
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
Find the names of the clients who have order status both "On Road" and "Shipped".
tracking_orders
Which customers have both "On Road" and "Shipped" as order status? List the customer names.
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
Which clients have both "On Road" and "Shipped" as order status? List the client names.
tracking_orders
Find the id of the customers who have order status both "On Road" and "Shipped".
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
Find the id of the clients who have order status both "On Road" and "Shipped".
tracking_orders
Which customers have both "On Road" and "Shipped" as order status? List the customer ids.
SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" INTERSECT SELECT T1.customer_id FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Shipped"
Which clients have both "On Road" and "Shipped" as order status? List the client ids.
tracking_orders
When was the order placed whose shipment tracking number is 3452? Give me the date.
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
When was the order placed whose shipment tracking number is 3452? Give me the day.
tracking_orders
On which day was the order placed whose shipment tracking number is 3452?
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.shipment_tracking_number = 3452
On which day was the order placed whose shipment tracking number is 3452?
tracking_orders
What is the placement date of the order whose invoice number is 10?
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
What is the placement day of the order whose invoice number is 10?
tracking_orders
On what day was the order with invoice number 10 placed?
SELECT T1.date_order_placed FROM orders AS T1 JOIN shipments AS T2 ON T1.order_id = T2.order_id WHERE T2.invoice_number = 10
On what day was the order with invoice number 10 placed?
tracking_orders
List the count and id of each product in all the orders.
SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
List the count and id of each goods in all the orders.
tracking_orders
For each product, return its id and the number of times it was ordered.
SELECT count(*) , T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
For each goods, return its id and the number of times it was ordered.
tracking_orders
List the name and count of each product in all orders.
SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
List the name and count of each goods in all orders.
tracking_orders
For each product, show its name and the number of times it was ordered.
SELECT T3.product_name , count(*) FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
For each goods, show its name and the number of times it was ordered.
tracking_orders
Find the ids of orders which are shipped after 2000-01-01.
SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"
Find the ids of orders which are shipped after 2000-01-01.
tracking_orders
Which orders have shipment after 2000-01-01? Give me the order ids.
SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01"
Which orders have shipment after 2000-01-01? Give me the order ids.
tracking_orders
Find the id of the order which is shipped most recently.
SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)
Find the id of the order which is shipped most recently.
tracking_orders
Which order has the most recent shipment? Give me the order id.
SELECT order_id FROM shipments WHERE shipment_date = (SELECT max(shipment_date) FROM shipments)
Which order has the most recent shipment? Give me the order id.
tracking_orders
List the names of all distinct products in alphabetical order.
SELECT DISTINCT product_name FROM products ORDER BY product_name
List the names of all different goods in alphabetical order.
tracking_orders
Sort all the distinct products in alphabetical order.
SELECT DISTINCT product_name FROM products ORDER BY product_name
Sort all the different goods in alphabetical order.
tracking_orders
List the ids of all distinct orders ordered by placed date.
SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
List the ids of all different orders ordered by placed day.
tracking_orders
What are ids of the all distinct orders, sorted by placement date?
SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed
What are ids of the all different orders, sorted by placement day?
tracking_orders
What is the id of the order which has the most items?
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1
What is the id of the order which has the most items?
tracking_orders
Which order deals with the most items? Return the order id.
SELECT T1.order_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id GROUP BY T1.order_id ORDER BY count(*) DESC LIMIT 1
Which order deals with the most items? Return the order id.
tracking_orders
What is the name of the customer who has the largest number of orders?
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
What is the name of the client who has the largest number of orders?
tracking_orders
Find the name of the customer who made the most orders.
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY count(*) DESC LIMIT 1
Find the name of the client who made the most orders.
tracking_orders
Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.
SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.
tracking_orders
What are the invoice numbers created before 1989-09-03 or after 2007-12-25?
SELECT invoice_number FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
What are the invoice numbers created before 1989-09-03 or after 2007-12-25?
tracking_orders
Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
Find the different information of invoices which are created before 1989-09-03 or after 2007-12-25.
tracking_orders
What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?
SELECT DISTINCT invoice_details FROM invoices WHERE invoice_date < "1989-09-03" OR invoice_date > "2007-12-25"
What are the different information of invoices created before 1989-09-03 or after 2007-12-25?
tracking_orders
For each customer who has at least two orders, find the customer name and number of orders made.
SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2
For each client who has at least two orders, find the client name and number of orders made.
tracking_orders
Which customers have made at least two orders? Give me each customer name and number of orders made.
SELECT T2.customer_name , count(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) >= 2
Which clients have made at least two orders? Give me each client name and number of orders made.
tracking_orders
Find the name of the customers who have at most two orders.
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2
Find the name of the clients who have at most two orders.
tracking_orders
What are the names of the customers who have made two or less orders?
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING count(*) <= 2
What are the names of the clients who have made two or less orders?
tracking_orders
List the names of the customers who have once bought product "food".
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING count(*) >= 1
List the names of the clients who have once bought product "food".
tracking_orders
What are the names of the customers who bought product "food" at least once?
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING count(*) >= 1
What are the names of the clients who bought product "food" at least once?
tracking_orders
List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING count(*) >= 1
List the names of clients who have once canceled the purchase of the product "food" (the item status is "Cancel").
tracking_orders
Which customers have ever canceled the purchase of the product "food" (the item status is "Cancel")?
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_id HAVING count(*) >= 1
Which clients have ever canceled the purchase of the product "food" (the item status is "Cancel")?
tracking_orders
How many architects are female?
SELECT count(*) FROM architect WHERE gender = 'female'
count the number of female architectural designers?
architecture
List the name, nationality and id of all male architects ordered by their names lexicographically.
SELECT name , nationality , id FROM architect WHERE gender = 'male' ORDER BY name
List the name, nation and id of all male architects ordered by their names lexicographically.
architecture
What is the maximum length in meters for the bridges and what are the architects' names?
SELECT max(T1.length_meters) , T2.name FROM bridge AS T1 JOIN architect AS T2 ON T1.architect_id = T2.id
What is the maximum length in meters for the bridges and what are the architects' names?
architecture
What is the average length in feet of the bridges?
SELECT avg(length_feet) FROM bridge
What is the average length in feet of the bridges?
architecture
What are the names and year of construction for the mills of 'Grondzeiler' type?
SELECT name , built_year FROM mill WHERE TYPE = 'Grondzeiler'
What are the names and year of construction for the mills of 'Grondzeiler' type?
architecture
What are the distinct names and nationalities of the architects who have ever built a mill?
SELECT DISTINCT T1.name , T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id
What are the different names and nations of the architects who have ever built a mill?
architecture
What are the names of the mills which are not located in 'Donceel'?
SELECT name FROM mill WHERE LOCATION != 'Donceel'
What are the names of the mills which are not located in 'Donceel'?
architecture
What are the distinct types of mills that are built by American or Canadian architects?
SELECT DISTINCT T1.type FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id WHERE T2.nationality = 'American' OR T2.nationality = 'Canadian'
What are the different categories of mills that are built by American or Canadian architects?
architecture
What are the ids and names of the architects who built at least 3 bridges ?
SELECT T1.id , T1.name FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) >= 3
What are the ids and names of the architects who built at least 3 bridges ?
architecture
What is the id, name and nationality of the architect who built most mills?
SELECT T1.id , T1.name , T1.nationality FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1
What is the id, name and nation of the architect who built most mills?
architecture
What are the ids, names and genders of the architects who built two bridges or one mill?
SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 2 UNION SELECT T1.id , T1.name , T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING count(*) = 1
What are the ids, names and sex of the architects who built two bridges or one mill?
architecture
What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?
SELECT LOCATION FROM bridge WHERE name = 'Kolob Arch' OR name = 'Rainbow Bridge'
What is the position of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?
architecture
Which of the mill names contains the french word 'Moulin'?
SELECT name FROM mill WHERE name LIKE '%Moulin%'
Which of the mill names contains the french word 'Moulin'?
architecture
What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?
SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
What are the different name of the mills built by the architects who have also built a bridge longer than 80 meters?
architecture
What is the most common mill type, and how many are there?
SELECT TYPE , count(*) FROM mill GROUP BY TYPE ORDER BY count(*) DESC LIMIT 1
What is the most common mill category, and how many are there?
architecture
How many architects haven't built a mill before year 1850?
SELECT count(*) FROM architect WHERE id NOT IN ( SELECT architect_id FROM mill WHERE built_year < 1850 );
How many architects haven't built a mill before year 1850?
architecture
show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.
SELECT t1.name FROM bridge AS t1 JOIN architect AS t2 ON t1.architect_id = t2.id WHERE t2.nationality = 'American' ORDER BY t1.length_feet
show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.
architecture
How many book clubs are there?
SELECT count(*) FROM book_club
How many book clubs are there?
culture_company
Count the number of book clubs.
SELECT count(*) FROM book_club
Count the number of book clubs.
culture_company
show the titles, and authors or editors for all books made after the year 1989.
SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989
show the names, and writers or editors for all books made after the year 1989.
culture_company
What are the titles and authors or editors that correspond to books made after 1989?
SELECT book_title , author_or_editor FROM book_club WHERE YEAR > 1989
What are the names and writers or editors that correspond to books made after 1989?
culture_company
Show all distinct publishers for books.
SELECT DISTINCT publisher FROM book_club
Show all different publishers for books.
culture_company
What are all the different book publishers?
SELECT DISTINCT publisher FROM book_club
What are all the different book publishers?
culture_company
Show the years, book titles, and publishers for all books, in descending order by year.
SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC
Show the years, book names, and publishers for all books, in descending order by year.
culture_company
What are the years, titles, and publishers for all books, ordered by year descending?
SELECT YEAR , book_title , publisher FROM book_club ORDER BY YEAR DESC
What are the years, names, and publishers for all books, ordered by year descending?
culture_company
Show all publishers and the number of books for each publisher.
SELECT publisher , count(*) FROM book_club GROUP BY publisher
Show all publishers and the number of books for each publisher.
culture_company
How many books are there for each publisher?
SELECT publisher , count(*) FROM book_club GROUP BY publisher
How many books are there for each publisher?
culture_company
What is the publisher with most number of books?
SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1
What is the publisher with most number of books?
culture_company
Return the publisher that has published the most books.
SELECT publisher FROM book_club GROUP BY publisher ORDER BY count(*) DESC LIMIT 1
Return the publisher that has published the most books.
culture_company
Show all book categories and the number of books in each category.
SELECT category , count(*) FROM book_club GROUP BY category
Show all book types and the number of books in each type.
culture_company
How many books fall into each category?
SELECT category , count(*) FROM book_club GROUP BY category
How many books fall into each type?
culture_company
List categories that have at least two books after year 1989.
SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2
List types that have at least two books after year 1989.
culture_company
What categories have two or more corresponding books that were made after 1989?
SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING count(*) >= 2
What types have two or more corresponding books that were made after 1989?
culture_company
Show publishers with a book published in 1989 and a book in 1990.
SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990
Show publishers with a book published in 1989 and a book in 1990.
culture_company
What are the publishers who have published a book in both 1989 and 1990?
SELECT publisher FROM book_club WHERE YEAR = 1989 INTERSECT SELECT publisher FROM book_club WHERE YEAR = 1990
What are the publishers who have published a book in both 1989 and 1990?
culture_company
Show all publishers which do not have a book in 1989.
SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989
Show all publishers which do not have a book in 1989.
culture_company
Which publishers did not publish a book in 1989?
SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989
Which publishers did not publish a book in 1989?
culture_company
Show all movie titles, years, and directors, ordered by budget.
SELECT title , YEAR , director FROM movie ORDER BY budget_million
Show all film names, years, and directors, ordered by budget.
culture_company
What are the titles, years, and directors of all movies, ordered by budget in millions?
SELECT title , YEAR , director FROM movie ORDER BY budget_million
What are the names, years, and directors of all films, ordered by budget in millions?
culture_company
How many movie directors are there?
SELECT COUNT (DISTINCT director) FROM movie
How many film directors are there?
culture_company
Count the number of different directors.
SELECT COUNT (DISTINCT director) FROM movie
Count the number of different directors.
culture_company
What is the title and director for the movie with highest worldwide gross in the year 2000 or before?
SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1
What is the name and director for the film with highest worldwide gross in the year 2000 or before?
culture_company
Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.
SELECT title , director FROM movie WHERE YEAR <= 2000 ORDER BY gross_worldwide DESC LIMIT 1
Return the name and director of the film released in the year 2000 or earlier that had the highest worldwide gross.
culture_company
Show all director names who have a movie in both year 1999 and 2000.
SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999
Show all director names who have a film in both year 1999 and 2000.
culture_company
Which directors had a movie both in the year 1999 and 2000?
SELECT director FROM movie WHERE YEAR = 2000 INTERSECT SELECT director FROM movie WHERE YEAR = 1999
Which directors had a film both in the year 1999 and 2000?
culture_company
Show all director names who have a movie in the year 1999 or 2000.
SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000
Show all director names who have a film in the year 1999 or 2000.
culture_company
Which directors had a movie in either 1999 or 2000?
SELECT director FROM movie WHERE YEAR = 1999 OR YEAR = 2000
Which directors had a film in either 1999 or 2000?
culture_company
What is the average, maximum, and minimum budget for all movies before 2000.
SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000
What is the average, maximum, and minimum expenditure estimate for all films before 2000.
culture_company
Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.
SELECT avg(budget_million) , max(budget_million) , min(budget_million) FROM movie WHERE YEAR < 2000
Return the average, maximum, and minimum expenditure estimate in millions for films made before the year 2000.
culture_company
List all company names with a book published by Alyson.
SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'
List all enterprise names with a book published by Alyson.
culture_company
What are all the company names that have a book published by Alyson?
SELECT T1.company_name FROM culture_company AS T1 JOIN book_club AS T2 ON T1.book_club_id = T2.book_club_id WHERE T2.publisher = 'Alyson'
What are all the enterprise names that have a book published by Alyson?
culture_company
Show the movie titles and book titles for all companies in China.
SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
Show the film names and book names for all enterprise in China.
culture_company
What are the titles of movies and books corresponding to companies incorporated in China?
SELECT T1.title , T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China'
What are the names of films and books corresponding to companies incorporated in China?
culture_company
Show all company names with a movie directed in year 1999.
SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999
Show all enterprise names with a film directed in year 1999.
culture_company
What are all company names that have a corresponding movie directed in the year 1999?
SELECT T2.company_name FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.year = 1999
What are all enterprise names that have a corresponding film directed in the year 1999?
culture_company