db_id
stringlengths 3
31
| query
stringlengths 18
577
| question
stringlengths 3
224
| schema
stringlengths 177
6.14k
| primary_keys
stringlengths 16
545
| foreign_keys
stringlengths 16
1.48k
|
---|---|---|---|---|---|
cre_Drama_Workshop_Groups | SELECT Store_Name FROM Drama_Workshop_Groups | Show all the Store_Name of drama workshop groups. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Store_Name FROM Drama_Workshop_Groups | What are the store names of drama workshop groups? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES | Show the minimum, average, maximum order quantity of all invoices. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT min(Order_Quantity) , avg(Order_Quantity) , max(Order_Quantity) FROM INVOICES | What are the minimum, average, and maximum quantities ordered? Check all the invoices. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT DISTINCT payment_method_code FROM INVOICES | What are the distinct payment method codes in all the invoices? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT DISTINCT payment_method_code FROM INVOICES | Show me the distinct payment method codes from the invoice record. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" | What is the description of the marketing region China? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" | Find the marketing region description of China? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS) | Show all the distinct product names with price higher than the average. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT DISTINCT Product_Name FROM PRODUCTS WHERE Product_Price > (SELECT avg(Product_Price) FROM PRODUCTS) | What are the distinct names of the products that cost more than the average? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 | What is the name of the most expensive product? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM PRODUCTS ORDER BY Product_Price DESC LIMIT 1 | Tell me the name of the most pricy product. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM Products ORDER BY Product_Price ASC | List all product names in ascending order of price. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM Products ORDER BY Product_Price ASC | Sort the names of products in ascending order of their price. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley" | What is the phone number of the performer Ashley? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Customer_Phone FROM PERFORMERS WHERE Customer_Name = "Ashley" | Find the phone number of performer "Ashley". | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code | Show all payment method codes and the number of orders for each code. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT payment_method_code , count(*) FROM INVOICES GROUP BY payment_method_code | List the distinct payment method codes with the number of orders made | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 | What is the payment method code used by the most orders? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1 | Find the payment method that is used the most often in all the invoices. Give me its code. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Which city is the address of the store named "FJA Filming" located in? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Find the city the store named "FJA Filming" is in. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the states or counties of the address of the stores with marketing region code "CA"? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Find the states or counties where the stores with marketing region code "CA" are located. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What is the name of the marketing region that the store Rob Dinning belongs to? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Return the name of the marketing region the store Rob Dinning is located in. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the descriptions of the service types with product price above 100? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Give me the descriptions of the service types that cost more than 100. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What is the description, code and the corresponding count of each service type? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | List the description, code and the number of services for each service type. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What is the description and code of the type of service that is performed the most often? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Find the description and code of the service type that is performed the most times. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the phones and emails of workshop groups in which services are performed? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Give me all the phone numbers and email addresses of the workshop groups where services are performed. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the names of workshop groups in which services with product name "film" are performed? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Find the names of the workshop groups where services with product name "film" are performed. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name | What are the different product names? What is the average product price for each of them? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name , avg(Product_Price) FROM PRODUCTS GROUP BY Product_Name | For each distinct product name, show its average product price. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000 | What are the product names with average product price smaller than 1000000? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_Name FROM PRODUCTS GROUP BY Product_Name HAVING avg(Product_Price) < 1000000 | Find the product names whose average product price is below 1000000. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the total order quantities of photo products? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Compute the total order quantities of the product "photo". | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the order details of the products with price higher than 2000? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Find the order detail for the products with price above 2000. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the actual delivery dates of orders with quantity 1? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | List the actual delivery date for all the orders with quantity 1 | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the order dates of orders with price higher than 1000? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Find the order dates of the orders with price above 1000. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups | How many distinct currency codes are there for all drama workshop groups? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT count(DISTINCT Currency_Code) FROM Drama_Workshop_Groups | Find the number of distinct currency codes used in drama workshop groups. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the names of the drama workshop groups with address in Feliciaberg city? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Return the the names of the drama workshop groups that are located in Feliciaberg city. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the email addresses of the drama workshop groups with address in Alaska state? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | List the email addresses of the drama workshop groups located in Alaska state. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Show all cities along with the number of drama workshop groups in each city. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | How many drama workshop groups are there in each city? Return both the city and the count. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 | What is the marketing region code that has the most drama workshop groups? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY count(*) DESC LIMIT 1 | Which marketing region has the most drama workshop groups? Give me the region code. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Show all cities where at least one customer lives in but no performer lives in. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Which cities have at least one customer but no performer? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1 | What is the most frequent status of bookings? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Status_Code FROM BOOKINGS GROUP BY Status_Code ORDER BY count(*) DESC LIMIT 1 | Which status code is the most common of all the bookings? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | What are the names of the workshop groups that have bookings with status code "stop"? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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" | Which workshop groups have bookings with status code "stop"? Give me the names. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | Show the names of all the clients with no booking. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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 | What are the names of the clients who do not have any booking? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = "MasterCard" | What is the average quantities ordered with payment method code "MasterCard" on invoices? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code = "MasterCard" | Check the invoices record and compute the average quantities ordered with the payment method "MasterCard". | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 | What is the product ID of the most frequently ordered item on invoices? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
cre_Drama_Workshop_Groups | SELECT Product_ID FROM INVOICES GROUP BY Product_ID ORDER BY COUNT(*) DESC LIMIT 1 | Find the id of the product ordered the most often on invoices. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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.Product_Name = 'film' | What is the description of the service type which offers both the photo product and the film product? | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
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.Product_Name = 'film' | Give me the description of the service type that offers not only the photo product but also the film product. | [Schema (values) (types)]: | cre_Drama_Workshop_Groups | Ref_Payment_Methods : payment_method_code (text) , payment_method_description (text) | Ref_Service_Types : service_type_code (text) , parent_service_type_code (text) , service_type_description (text) | Addresses : address_id (text) , line_1 (text) , line_2 (text) , city_town (text) , state_county (text) , other_details (text) | Products : product_id (text) , product_name (text) , product_price (text) , product_description (text) , other_product_service_details (text) | Marketing_Regions : marketing_region_code (text) , marketing_region_name (text) , marketing_region_descriptrion (text) , other_details (text) | Clients : client_id (text) , address_id (text) , customer_email_address (text) , customer_name (text) , customer_phone (text) , other_details (text) | Drama_Workshop_Groups : workshop_group_id (text) , address_id (text) , currency_code (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Performers : performer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Customers : customer_id (text) , address_id (text) , customer_name (text) , customer_phone (text) , customer_email_address (text) , other_details (text) | Stores : store_id (text) , address_id (text) , marketing_region_code (text) , store_name (text) , store_phone (text) , store_email_address (text) , other_details (text) | Bookings : booking_id (text) , customer_id (text) , workshop_group_id (text) , status_code (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Performers_in_Bookings : order_id (text) , performer_id (text) | Customer_Orders : order_id (text) , customer_id (text) , store_id (text) , order_date (text) , planned_delivery_date (text) , actual_delivery_date (text) , other_order_details (text) | Order_Items : order_item_id (text) , order_id (text) , product_id (text) , order_quantity (text) , other_item_details (text) | Invoices : invoice_id (text) , order_id (text) , payment_method_code (text) , product_id (text) , order_quantity (text) , other_item_details (text) , order_item_id (text) | Services : service_id (text) , service_type_code (text) , workshop_group_id (text) , product_description (text) , product_name (text) , product_price (text) , other_product_service_details (text) | Bookings_Services : order_id (text) , product_id (text) | Invoice_Items : invoice_item_id (text) , invoice_id (text) , order_id (text) , order_item_id (text) , product_id (text) , order_quantity (text) , other_item_details (text); | [Primary Keys]: ref_payment_methods : payment_method_code, ref_service_types : service_type_code, addresses : address_id, products : product_id, marketing_regions : marketing_region_code, clients : client_id, drama_workshop_groups : workshop_group_id, performers : performer_id, customers : customer_id, stores : store_id, bookings : booking_id, performers_in_bookings : order_id, customer_orders : order_id, order_items : order_item_id, invoices : invoice_id, services : service_id, bookings_services : order_id, invoice_items : invoice_item_id | [Foreign Keys]: clients : address_id = addresses : address_id | drama_workshop_groups : address_id = addresses : address_id | performers : address_id = addresses : address_id | customers : address_id = addresses : address_id | stores : marketing_region_code = marketing_regions : marketing_region_code | stores : address_id = addresses : address_id | bookings : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings : customer_id = clients : client_id | performers_in_bookings : order_id = bookings : booking_id | performers_in_bookings : performer_id = performers : performer_id | customer_orders : store_id = stores : store_id | customer_orders : customer_id = customers : customer_id | order_items : product_id = products : product_id | order_items : order_id = customer_orders : order_id | invoices : payment_method_code = ref_payment_methods : payment_method_code | invoices : order_id = bookings : booking_id | invoices : order_id = customer_orders : order_id | services : service_type_code = ref_service_types : service_type_code | services : workshop_group_id = drama_workshop_groups : workshop_group_id | bookings_services : product_id = services : service_id | bookings_services : order_id = bookings : booking_id | invoice_items : order_id = bookings_services : order_id | invoice_items : product_id = bookings_services : product_id | invoice_items : invoice_id = invoices : invoice_id | invoice_items : order_item_id = order_items : order_item_id |
music_2 | SELECT count(*) FROM Band | How many bands are there? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT count(*) FROM Band | Find the number of bands. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT DISTINCT label FROM Albums | What are all the labels? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT DISTINCT label FROM Albums | What are the different album labels listed? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT * FROM Albums WHERE YEAR = 2012 | Find all the albums in 2012. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT * FROM Albums WHERE YEAR = 2012 | return all columns of the albums created in the year of 2012. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig" | Find all the stage positions of the musicians with first name "Solveig" | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT DISTINCT T1.stageposition FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE Firstname = "Solveig" | What are the different stage positions for all musicians whose first name is "Solveig"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT count(*) FROM Songs | How many songs are there? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT count(*) FROM Songs | Count the number of songs. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | Find all the songs performed by artist with last name "Heilo" | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | What are the names of the songs by the artist whose last name is "Heilo"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | Hom many musicians performed in the song "Flash"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | How many musicians play in the song "Flash"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | Find all the songs produced by artists with first name "Marianne". | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | What are the names of all songs produced by the artist with the first name "Marianne"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | Who performed the song named "Badlands"? Show the first name and the last name. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | What are the first and last names of the artist who perfomed the song "Badlands"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | Who is performing in the back stage position for the song "Badlands"? Show the first name and the last name. | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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" | What are the first and last names of the performer who was in the back stage position for the song "Badlands"? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT count(DISTINCT label) FROM albums | How many unique labels are there for albums? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT count(DISTINCT label) FROM albums | What are the unique labels for the albums? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 | What is the label that has the most albums? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
music_2 | SELECT label FROM albums GROUP BY label ORDER BY count(*) DESC LIMIT 1 | What is the label with the most albums? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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 | What is the last name of the musician that have produced the most number of songs? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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 | What is the last name of the musician who was in the most songs? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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 | What is the last name of the musician that has been at the back position the most? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
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 | What is the last name of the musicians who has played back position the most? | [Schema (values) (types)]: | music_2 | Songs : songid (text) , title (number) | Albums : aid (text) , title (number) , year (text) , label (number) , type (text) | Band : id (text) , firstname (number) , lastname (text) | Instruments : songid (text) , bandmateid (number) , instrument (text) | Performance : songid (text) , bandmate (number) , stageposition (text) | Tracklists : albumid (text) , position (number) , songid (text) | Vocals : songid (text) , bandmate (number) , type (text); | [Primary Keys]: songs : songid, albums : aid, band : id, instruments : songid, performance : songid, tracklists : albumid, vocals : songid | [Foreign Keys]: instruments : bandmateid = band : id | instruments : songid = songs : songid | performance : bandmate = band : id | performance : songid = songs : songid | tracklists : albumid = albums : aid | tracklists : songid = songs : songid | vocals : bandmate = band : id | vocals : songid = songs : songid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.