db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
cre_Drama_Workshop_Groups | select store_name from drama_workshop_groups | Question: show all the store_name of drama workshop groups. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Produ... | show all the store_name of drama workshop groups. |
cre_Drama_Workshop_Groups | select store_name from drama_workshop_groups | Question: what are the store names of drama workshop groups? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Prod... | what are the store names of drama workshop groups? |
cre_Drama_Workshop_Groups | select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices | Question: show the minimum, average, maximum order quantity of all invoices. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Oth... | show the minimum, average, maximum order quantity of all invoices. |
cre_Drama_Workshop_Groups | select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices | Question: what are the minimum, average, and maximum quantities ordered? check all the invoices. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Tow... | what are the minimum, average, and maximum quantities ordered? check all the invoices. |
cre_Drama_Workshop_Groups | select distinct payment_method_code from invoices | Question: what are the distinct payment method codes in all the invoices? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_... | what are the distinct payment method codes in all the invoices? |
cre_Drama_Workshop_Groups | select distinct payment_method_code from invoices | Question: show me the distinct payment method codes from the invoice record. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Oth... | show me the distinct payment method codes from the invoice record. |
cre_Drama_Workshop_Groups | select marketing_region_descriptrion from marketing_regions where marketing_region_name = 'china' | Question: what is the description of the marketing region china? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. ... | what is the description of the marketing region china? |
cre_Drama_Workshop_Groups | select marketing_region_descriptrion from marketing_regions where marketing_region_name = 'china' | Question: find the marketing region description of china? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Product... | find the marketing region description of china? |
cre_Drama_Workshop_Groups | select distinct product_name from products where product_price > (select avg(product_price) from products) | Question: show all the distinct product names with price higher than the average. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County... | show all the distinct product names with price higher than the average. |
cre_Drama_Workshop_Groups | select distinct product_name from products where product_price > (select avg(product_price) from products) | Question: what are the distinct names of the products that cost more than the average? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_C... | what are the distinct names of the products that cost more than the average? |
cre_Drama_Workshop_Groups | select product_name from products order by product_price desc limit 1 | Question: what is the name of the most expensive product? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Product... | what is the name of the most expensive product? |
cre_Drama_Workshop_Groups | select product_name from products order by product_price desc limit 1 | Question: tell me the name of the most pricy product. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Products ->... | tell me the name of the most pricy product. |
cre_Drama_Workshop_Groups | select product_name from products order by product_price asc | Question: list all product names in ascending order of price. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Pro... | list all product names in ascending order of price. |
cre_Drama_Workshop_Groups | select product_name from products order by product_price asc | Question: sort the names of products in ascending order of their price. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_De... | sort the names of products in ascending order of their price. |
cre_Drama_Workshop_Groups | select customer_phone from performers where customer_name = 'ashley' | Question: what is the phone number of the performer ashley? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Produ... | what is the phone number of the performer ashley? |
cre_Drama_Workshop_Groups | select customer_phone from performers where customer_name = 'ashley' | Question: find the phone number of performer 'ashley'. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Products -... | find the phone number of performer 'ashley'. |
cre_Drama_Workshop_Groups | select payment_method_code , count(*) from invoices group by payment_method_code | Question: show all payment method codes and the number of orders for each code. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, ... | show all payment method codes and the number of orders for each code. |
cre_Drama_Workshop_Groups | select payment_method_code , count(*) from invoices group by payment_method_code | Question: list the distinct payment method codes with the number of orders made | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, ... | list the distinct payment method codes with the number of orders made |
cre_Drama_Workshop_Groups | select payment_method_code from invoices group by payment_method_code order by count(*) desc limit 1 | Question: what is the payment method code used by the most orders? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details... | what is the payment method code used by the most orders? |
cre_Drama_Workshop_Groups | select payment_method_code from invoices group by payment_method_code order by count(*) desc limit 1 | Question: find the payment method that is used the most often in all the invoices. give me its code. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City... | find the payment method that is used the most often in all the invoices. give me its code. |
cre_Drama_Workshop_Groups | select t1.city_town from addresses as t1 join stores as t2 on t1.address_id = t2.address_id where t2.store_name = 'fja filming' | Question: which city is the address of the store named 'fja filming' located in? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County,... | which city is the address of the store named 'fja filming' located in? |
cre_Drama_Workshop_Groups | select t1.city_town from addresses as t1 join stores as t2 on t1.address_id = t2.address_id where t2.store_name = 'fja filming' | Question: find the city the store named 'fja filming' is in. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Prod... | find the city the store named 'fja filming' is in. |
cre_Drama_Workshop_Groups | select t1.state_county from addresses as t1 join stores as t2 on t1.address_id = t2.address_id where t2.marketing_region_code = 'ca' | Question: what are the states or counties of the address of the stores with marketing region code 'ca'? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, C... | what are the states or counties of the address of the stores with marketing region code 'ca'? |
cre_Drama_Workshop_Groups | select t1.state_county from addresses as t1 join stores as t2 on t1.address_id = t2.address_id where t2.marketing_region_code = 'ca' | Question: find the states or counties where the stores with marketing region code 'ca' are located. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_... | find the states or counties where the stores with marketing region code 'ca' are located. |
cre_Drama_Workshop_Groups | select t1.marketing_region_name from marketing_regions as t1 join stores as t2 on t1.marketing_region_code = t2.marketing_region_code where t2.store_name = 'rob dinning' | Question: what is the name of the marketing region that the store rob dinning belongs to? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, Stat... | what is the name of the marketing region that the store rob dinning belongs to? |
cre_Drama_Workshop_Groups | select t1.marketing_region_name from marketing_regions as t1 join stores as t2 on t1.marketing_region_code = t2.marketing_region_code where t2.store_name = 'rob dinning' | Question: return the name of the marketing region the store rob dinning is located in. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_C... | return the name of the marketing region the store rob dinning is located in. |
cre_Drama_Workshop_Groups | select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_price > 100 | Question: what are the descriptions of the service types with product price above 100? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_C... | what are the descriptions of the service types with product price above 100? |
cre_Drama_Workshop_Groups | select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_price > 100 | Question: give me the descriptions of the service types that cost more than 100. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County,... | give me the descriptions of the service types that cost more than 100. |
cre_Drama_Workshop_Groups | select t1.service_type_description , t2.service_type_code , count(*) from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code group by t2.service_type_code | Question: what is the description, code and the corresponding count of each service type? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, Stat... | what is the description, code and the corresponding count of each service type? |
cre_Drama_Workshop_Groups | select t1.service_type_description , t2.service_type_code , count(*) from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code group by t2.service_type_code | Question: list the description, code and the number of services for each service type. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_C... | list the description, code and the number of services for each service type. |
cre_Drama_Workshop_Groups | select t1.service_type_description , t1.service_type_code from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code group by t1.service_type_code order by count(*) desc limit 1 | Question: what is the description and code of the type of service that is performed the most often? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_... | what is the description and code of the type of service that is performed the most often? |
cre_Drama_Workshop_Groups | select t1.service_type_description , t1.service_type_code from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code group by t1.service_type_code order by count(*) desc limit 1 | Question: find the description and code of the service type that is performed the most times. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, ... | find the description and code of the service type that is performed the most times. |
cre_Drama_Workshop_Groups | select t1.store_phone , t1.store_email_address from drama_workshop_groups as t1 join services as t2 on t1.workshop_group_id = t2.workshop_group_id | Question: what are the phones and emails of workshop groups in which services are performed? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, S... | what are the phones and emails of workshop groups in which services are performed? |
cre_Drama_Workshop_Groups | select t1.store_phone , t1.store_email_address from drama_workshop_groups as t1 join services as t2 on t1.workshop_group_id = t2.workshop_group_id | Question: give me all the phone numbers and email addresses of the workshop groups where services are performed. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, ... | give me all the phone numbers and email addresses of the workshop groups where services are performed. |
cre_Drama_Workshop_Groups | select t1.store_phone , t1.store_email_address from drama_workshop_groups as t1 join services as t2 on t1.workshop_group_id = t2.workshop_group_id where t2.product_name = 'film' | Question: what are the names of workshop groups in which services with product name 'film' are performed? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2,... | what are the names of workshop groups in which services with product name 'film' are performed? |
cre_Drama_Workshop_Groups | select t1.store_phone , t1.store_email_address from drama_workshop_groups as t1 join services as t2 on t1.workshop_group_id = t2.workshop_group_id where t2.product_name = 'film' | Question: find the names of the workshop groups where services with product name 'film' are performed. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, Ci... | find the names of the workshop groups where services with product name 'film' are performed. |
cre_Drama_Workshop_Groups | select product_name , avg(product_price) from products group by product_name | Question: what are the different product names? what is the average product price for each of them? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_... | what are the different product names? what is the average product price for each of them? |
cre_Drama_Workshop_Groups | select product_name , avg(product_price) from products group by product_name | Question: for each distinct product name, show its average product price. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_... | for each distinct product name, show its average product price. |
cre_Drama_Workshop_Groups | select product_name from products group by product_name having avg(product_price) < 1000000 | Question: what are the product names with average product price smaller than 1000000? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_Co... | what are the product names with average product price smaller than 1000000? |
cre_Drama_Workshop_Groups | select product_name from products group by product_name having avg(product_price) < 1000000 | Question: find the product names whose average product price is below 1000000. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, O... | find the product names whose average product price is below 1000000. |
cre_Drama_Workshop_Groups | select sum(t1.order_quantity) from order_items as t1 join products as t2 on t1.product_id = t2.product_id where t2.product_name = 'photo' | Question: what are the total order quantities of photo products? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. ... | what are the total order quantities of photo products? |
cre_Drama_Workshop_Groups | select sum(t1.order_quantity) from order_items as t1 join products as t2 on t1.product_id = t2.product_id where t2.product_name = 'photo' | Question: compute the total order quantities of the product 'photo'. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Detai... | compute the total order quantities of the product 'photo'. |
cre_Drama_Workshop_Groups | select t1.other_item_details from order_items as t1 join products as t2 on t1.product_id = t2.product_id where t2.product_price > 2000 | Question: what are the order details of the products with price higher than 2000? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County... | what are the order details of the products with price higher than 2000? |
cre_Drama_Workshop_Groups | select t1.other_item_details from order_items as t1 join products as t2 on t1.product_id = t2.product_id where t2.product_price > 2000 | Question: find the order detail for the products with price above 2000. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_De... | find the order detail for the products with price above 2000. |
cre_Drama_Workshop_Groups | select t1.actual_delivery_date from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t2.order_quantity = 1 | Question: what are the actual delivery dates of orders with quantity 1? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_De... | what are the actual delivery dates of orders with quantity 1? |
cre_Drama_Workshop_Groups | select t1.actual_delivery_date from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t2.order_quantity = 1 | Question: list the actual delivery date for all the orders with quantity 1 | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other... | list the actual delivery date for all the orders with quantity 1 |
cre_Drama_Workshop_Groups | select t1.order_date from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_price > 1000 | Question: what are the order dates of orders with price higher than 1000? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_... | what are the order dates of orders with price higher than 1000? |
cre_Drama_Workshop_Groups | select t1.order_date from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_price > 1000 | Question: find the order dates of the orders with price above 1000. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Detail... | find the order dates of the orders with price above 1000. |
cre_Drama_Workshop_Groups | select count(distinct currency_code) from drama_workshop_groups | Question: how many distinct currency codes are there for all drama workshop groups? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_Coun... | how many distinct currency codes are there for all drama workshop groups? |
cre_Drama_Workshop_Groups | select count(distinct currency_code) from drama_workshop_groups | Question: find the number of distinct currency codes used in drama workshop groups. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_Coun... | find the number of distinct currency codes used in drama workshop groups. |
cre_Drama_Workshop_Groups | select t2.store_name from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id where t1.city_town = 'feliciaberg' | Question: what are the names of the drama workshop groups with address in feliciaberg city? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, St... | what are the names of the drama workshop groups with address in feliciaberg city? |
cre_Drama_Workshop_Groups | select t2.store_name from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id where t1.city_town = 'feliciaberg' | Question: return the the names of the drama workshop groups that are located in feliciaberg city. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_To... | return the the names of the drama workshop groups that are located in feliciaberg city. |
cre_Drama_Workshop_Groups | select t2.store_email_address from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id where t1.state_county = 'alaska' | Question: what are the email addresses of the drama workshop groups with address in alaska state? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_To... | what are the email addresses of the drama workshop groups with address in alaska state? |
cre_Drama_Workshop_Groups | select t2.store_email_address from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id where t1.state_county = 'alaska' | Question: list the email addresses of the drama workshop groups located in alaska state. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State... | list the email addresses of the drama workshop groups located in alaska state. |
cre_Drama_Workshop_Groups | select t1.city_town , count(*) from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id group by t1.city_town | Question: show all cities along with the number of drama workshop groups in each city. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_C... | show all cities along with the number of drama workshop groups in each city. |
cre_Drama_Workshop_Groups | select t1.city_town , count(*) from addresses as t1 join drama_workshop_groups as t2 on t1.address_id = t2.address_id group by t1.city_town | Question: how many drama workshop groups are there in each city? return both the city and the count. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City... | how many drama workshop groups are there in each city? return both the city and the count. |
cre_Drama_Workshop_Groups | select marketing_region_code from drama_workshop_groups group by marketing_region_code order by count(*) desc limit 1 | Question: what is the marketing region code that has the most drama workshop groups? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_Cou... | what is the marketing region code that has the most drama workshop groups? |
cre_Drama_Workshop_Groups | select marketing_region_code from drama_workshop_groups group by marketing_region_code order by count(*) desc limit 1 | Question: which marketing region has the most drama workshop groups? give me the region code. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, ... | which marketing region has the most drama workshop groups? give me the region code. |
cre_Drama_Workshop_Groups | select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id | Question: show all cities where at least one customer lives in but no performer lives in. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, Stat... | show all cities where at least one customer lives in but no performer lives in. |
cre_Drama_Workshop_Groups | select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id | Question: which cities have at least one customer but no performer? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Detail... | which cities have at least one customer but no performer? |
cre_Drama_Workshop_Groups | select status_code from bookings group by status_code order by count(*) desc limit 1 | Question: what is the most frequent status of bookings? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Products ... | what is the most frequent status of bookings? |
cre_Drama_Workshop_Groups | select status_code from bookings group by status_code order by count(*) desc limit 1 | Question: which status code is the most common of all the bookings? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Detail... | which status code is the most common of all the bookings? |
cre_Drama_Workshop_Groups | select t2.store_name from bookings as t1 join drama_workshop_groups as t2 on t1.workshop_group_id = t2.workshop_group_id where t1.status_code = 'stop' | Question: what are the names of the workshop groups that have bookings with status code 'stop'? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town... | what are the names of the workshop groups that have bookings with status code 'stop'? |
cre_Drama_Workshop_Groups | select t2.store_name from bookings as t1 join drama_workshop_groups as t2 on t1.workshop_group_id = t2.workshop_group_id where t1.status_code = 'stop' | Question: which workshop groups have bookings with status code 'stop'? give me the names. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, Stat... | which workshop groups have bookings with status code 'stop'? give me the names. |
cre_Drama_Workshop_Groups | select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id | Question: show the names of all the clients with no booking. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_Details. Prod... | show the names of all the clients with no booking. |
cre_Drama_Workshop_Groups | select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id | Question: what are the names of the clients who do not have any booking? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_D... | what are the names of the clients who do not have any booking? |
cre_Drama_Workshop_Groups | select avg(order_quantity) from invoices where payment_method_code = 'mastercard' | Question: what is the average quantities ordered with payment method code 'mastercard' on invoices? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_... | what is the average quantities ordered with payment method code 'mastercard' on invoices? |
cre_Drama_Workshop_Groups | select avg(order_quantity) from invoices where payment_method_code = 'mastercard' | Question: check the invoices record and compute the average quantities ordered with the payment method 'mastercard'. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line... | check the invoices record and compute the average quantities ordered with the payment method 'mastercard'. |
cre_Drama_Workshop_Groups | select product_id from invoices group by product_id order by count(*) desc limit 1 | Question: what is the product id of the most frequently ordered item on invoices? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County... | what is the product id of the most frequently ordered item on invoices? |
cre_Drama_Workshop_Groups | select product_id from invoices group by product_id order by count(*) desc limit 1 | Question: find the id of the product ordered the most often on invoices. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, Line_2, City_Town, State_County, Other_D... | find the id of the product ordered the most often on invoices. |
cre_Drama_Workshop_Groups | select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'photo' intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.p... | Question: what is the description of the service type which offers both the photo product and the film product? | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, Line_1, L... | what is the description of the service type which offers both the photo product and the film product? |
cre_Drama_Workshop_Groups | select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'photo' intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.p... | Question: give me the description of the service type that offers not only the photo product but also the film product. | Tables: Ref_Payment_Methods -> payment_method_code, payment_method_description. Ref_Service_Types -> Service_Type_Code, Parent_Service_Type_Code, Service_Type_Description. Addresses -> Address_ID, L... | give me the description of the service type that offers not only the photo product but also the film product. |
music_2 | select count(*) from band | Question: how many bands are there? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | Join... | how many bands are there? |
music_2 | select count(*) from band | Question: find the number of bands. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | Join... | find the number of bands. |
music_2 | select distinct label from albums | Question: what are all the labels? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | Joins... | what are all the labels? |
music_2 | select distinct label from albums | Question: what are the different album labels listed? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Band... | what are the different album labels listed? |
music_2 | select * from albums where year = 2012 | Question: find all the albums in 2012. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | J... | find all the albums in 2012. |
music_2 | select * from albums where year = 2012 | Question: return all columns of the albums created in the year of 2012. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Voca... | return all columns of the albums created in the year of 2012. |
music_2 | select distinct t1.stageposition from performance as t1 join band as t2 on t1.bandmate = t2.id where firstname = 'solveig' | Question: find all the stage positions of the musicians with first name 'solveig' | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, So... | find all the stage positions of the musicians with first name 'solveig' |
music_2 | select distinct t1.stageposition from performance as t1 join band as t2 on t1.bandmate = t2.id where firstname = 'solveig' | Question: what are the different stage positions for all musicians whose first name is 'solveig'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> Album... | what are the different stage positions for all musicians whose first name is 'solveig'? |
music_2 | select count(*) from songs | Question: how many songs are there? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | Join... | how many songs are there? |
music_2 | select count(*) from songs | Question: count the number of songs. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate, Type. | Joi... | count the number of songs. |
music_2 | select t3.title from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t2.lastname = 'heilo' | Question: find all the songs performed by artist with last name 'heilo' | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Voca... | find all the songs performed by artist with last name 'heilo' |
music_2 | select t3.title from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t2.lastname = 'heilo' | Question: what are the names of the songs by the artist whose last name is 'heilo'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, ... | what are the names of the songs by the artist whose last name is 'heilo'? |
music_2 | select count(*) 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 = 'flash' | Question: hom many musicians performed in the song 'flash'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId... | hom many musicians performed in the song 'flash'? |
music_2 | select count(*) 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 = 'flash' | Question: how many musicians play in the song 'flash'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Ban... | how many musicians play in the song 'flash'? |
music_2 | select t3.title from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t2.firstname = 'marianne' | Question: find all the songs produced by artists with first name 'marianne'. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId.... | find all the songs produced by artists with first name 'marianne'. |
music_2 | select t3.title from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid where t2.firstname = 'marianne' | Question: what are the names of all songs produced by the artist with the first name 'marianne'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumI... | what are the names of all songs produced by the artist with the first name 'marianne'? |
music_2 | 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 = 'badlands' | Question: who performed the song named 'badlands'? show the first name and the last name. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Posi... | who performed the song named 'badlands'? show the first name and the last name. |
music_2 | 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 = 'badlands' | Question: what are the first and last names of the artist who perfomed the song 'badlands'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Po... | what are the first and last names of the artist who perfomed the song 'badlands'? |
music_2 | 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 = 'badlands' and t1.stageposition = 'back' | Question: who is performing in the back stage position for the song 'badlands'? show the first name and the last name. | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition... | who is performing in the back stage position for the song 'badlands'? show the first name and the last name. |
music_2 | 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 = 'badlands' and t1.stageposition = 'back' | Question: what are the first and last names of the performer who was in the back stage position for the song 'badlands'? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePositi... | what are the first and last names of the performer who was in the back stage position for the song 'badlands'? |
music_2 | select count(distinct label) from albums | Question: how many unique labels are there for albums? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Ban... | how many unique labels are there for albums? |
music_2 | select count(distinct label) from albums | Question: what are the unique labels for the albums? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandm... | what are the unique labels for the albums? |
music_2 | select label from albums group by label order by count(*) desc limit 1 | Question: what is the label that has the most albums? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Band... | what is the label that has the most albums? |
music_2 | select label from albums group by label order by count(*) desc limit 1 | Question: what is the label with the most albums? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. Vocals -> SongId, Bandmate... | what is the label with the most albums? |
music_2 | 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 | Question: what is the last name of the musician that have produced the most number of songs? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, P... | what is the last name of the musician that have produced the most number of songs? |
music_2 | 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 | Question: what is the last name of the musician who was in the most songs? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Position, SongId. V... | what is the last name of the musician who was in the most songs? |
music_2 | select t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id where stageposition = 'back' group by lastname order by count(*) desc limit 1 | Question: what is the last name of the musician that has been at the back position the most? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, P... | what is the last name of the musician that has been at the back position the most? |
music_2 | select t2.lastname from performance as t1 join band as t2 on t1.bandmate = t2.id where stageposition = 'back' group by lastname order by count(*) desc limit 1 | Question: what is the last name of the musicians who has played back position the most? | Tables: Songs -> SongId, Title. Albums -> AId, Title, Year, Label, Type. Band -> Id, Firstname, Lastname. Instruments -> SongId, BandmateId, Instrument. Performance -> SongId, Bandmate, StagePosition. Tracklists -> AlbumId, Positi... | what is the last name of the musicians who has played back position the most? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.