Question: What is the first and last name of all employees who live in the city Damianfort?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_address_id (number) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number) | addresses : address_id (number) , city (text) , address_id (number)


Question: Which city lives most of staffs? List the city name and number of staffs.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , staff_id (number)


Question: In which city do the most employees live and how many of them live there?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , staff_id (number)


Question: List the states which have between 2 to 4 staffs living there.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : state_province_county (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , staff_id (number)


Question: What are the names of the states that have 2 to 4 employees living there?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : state_province_county (text) , address_id (number) , address_id (number) | staff : staff_address_id (number) , staff_id (number)


Question: List the first name and last name of all customers.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: What are the first and last names for all customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: List email address and birthday of customer whose first name as Carole.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : email_address (text) , date_of_birth (time) , first_name (text) , customer_id (number) | staff : date_of_birth (time) , first_name (text) , staff_id (number)


Question: What are the email addresses and date of births for all customers who have a first name of Carole?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : email_address (text) , date_of_birth (time) , first_name (text) , customer_id (number) | staff : date_of_birth (time) , first_name (text) , staff_id (number)


Question: List phone number and email address of customer with more than 2000 outstanding balance.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : phone_number (text) , email_address (text) , amount_outstanding (number) , customer_id (number)


Question: What are the phone numbers and email addresses of all customers who have an outstanding balance of more than 2000?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : phone_number (text) , email_address (text) , amount_outstanding (number) , customer_id (number)


Question: What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , cell_mobile_phone_number (text) , email_address (text) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , cell_mobile_phone_number (text) , email_address (text) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: When are the birthdays of customer who are classified as 'Good Customer' status?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_of_birth (time) , staff_id (number) | customers : date_of_birth (time) , customer_status_code (text) , customer_id (number)


Question: What is the date of birth of every customer whose status code is 'Good Customer'?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_of_birth (time) , staff_id (number) | customers : date_of_birth (time) , customer_status_code (text) , customer_id (number)


Question: When did customer with first name as Carole and last name as Bernhard became a customer?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : date_became_customer (time) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: When did Carole Bernhard first become a customer?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : date_became_customer (time) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: How many customers in total?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: How many customers are there?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: List all customer status codes and the number of customers having each status code.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , customer_id (number)


Question: For each customer status code, how many customers are classified that way?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , customer_id (number)


Question: Which customer status code has least number of customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , customer_id (number)


Question: What is the status code with the least number of customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_status_code (text) , customer_id (number)


Question: How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , first_name (text) , last_name (text) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_status_code (text) , lesson_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: How many lessons did the customer Ryan Goodwin complete?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , first_name (text) , last_name (text) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_status_code (text) , lesson_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is maximum, minimum and average amount of outstanding of customer?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : amount_outstanding (number) , customer_id (number)


Question: What is the maximum, minimum, and average amount of money outsanding for all customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : amount_outstanding (number) , customer_id (number)


Question: List the first name and last name of customers have the amount of outstanding between 1000 and 3000.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , amount_outstanding (number) , customer_id (number)


Question: What are the first and last names of all customers with between 1000 and 3000 dollars outstanding?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , amount_outstanding (number) , customer_id (number)


Question: List first name and last name of customers lived in city Lockmanfurt.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_address_id (number) , customer_id (number) | addresses : address_id (number) , city (text) , address_id (number)


Question: What are the first and last names of all customers who lived in Lockmanfurt?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_address_id (number) , customer_id (number) | addresses : address_id (number) , city (text) , address_id (number)


Question: Which country does customer with first name as Carole and last name as Bernhard lived in?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : country (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is the country in which the customer Carole Bernhard lived?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : country (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is zip code of customer with first name as Carole and last name as Bernhard?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : zip_postcode (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is the zip code of the customer Carole Bernhard?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : zip_postcode (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , first_name (text) , last_name (text) , customer_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: Which city does has most number of customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , customer_id (number)


Question: What is the city with the most customers?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) , address_id (number) | customers : customer_address_id (number) , customer_id (number)


Question: How much in total does customer with first name as Carole and last name as Bernhard paid?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customer_payments : amount_payment (number) , customer_id (number) , customer_id (number) | customers : customer_id (number) , first_name (text) , last_name (text) , customer_id (number) | lessons : customer_id (number) , lesson_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: What is the total amount of moeny paid by the customer Carole Bernhard?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customer_payments : amount_payment (number) , customer_id (number) , customer_id (number) | customers : customer_id (number) , first_name (text) , last_name (text) , customer_id (number) | lessons : customer_id (number) , lesson_id (number) | staff : first_name (text) , last_name (text) , staff_id (number)


Question: List the number of customers that did not have any payment history.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number)


Question: How many customers have no payment histories?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number)


Question: List first name and last name of customers that have more than 2 payments.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number)


Question: What are the first and last names of all customers with more than 2 payments?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number)


Question: List all payment methods and number of payments using each payment methods.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customer_payments : payment_method_code (text) , customer_id (number)


Question: For each payment method, how many payments were made?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customer_payments : payment_method_code (text) , customer_id (number)


Question: How many lessons were in cancelled state?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_status_code (text) , lesson_id (number)


Question: How many lessons have been cancelled?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_status_code (text) , lesson_id (number)


Question: List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_id (number) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , nickname (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_id (number) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , nickname (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: How many lessons taught by staff whose first name has letter 'a' in it?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : staff_id (number) , first_name (text) , staff_id (number) | lessons : staff_id (number) , lesson_id (number) | customers : first_name (text) , customer_id (number)


Question: How many lessons were taught by a staff member whose first name has the letter 'a' in it?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : staff_id (number) , first_name (text) , staff_id (number) | lessons : staff_id (number) , lesson_id (number) | customers : first_name (text) , customer_id (number)


Question: How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_time (text) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: What is the total time for all lessons taught by Janessa Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_time (text) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : price (number) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: What is the average price for a lesson taught by Janessa Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : price (number) , staff_id (number) , lesson_id (number) | staff : staff_id (number) , first_name (text) , last_name (text) , staff_id (number) | customers : first_name (text) , last_name (text) , customer_id (number)


Question: How many lesson does customer with first name Ray took?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , first_name (text) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number) | staff : first_name (text) , staff_id (number)


Question: How many lessons did the customer with the first name Ray take?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

customers : customer_id (number) , first_name (text) , customer_id (number) | customer_payments : customer_id (number) , customer_id (number) | lessons : customer_id (number) , lesson_id (number) | staff : first_name (text) , staff_id (number)


Question: Which last names are both used by customers and by staff?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : last_name (text) , staff_id (number) | customers : last_name (text) , customer_id (number)


Question: What are the last names that are used by customers and staff?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : last_name (text) , staff_id (number) | customers : last_name (text) , customer_id (number)


Question: What is the first name of the staff who did not give any lesson?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , staff_id (number) , staff_id (number) | customers : first_name (text) , customer_id (number) | lessons : staff_id (number) , lesson_id (number)


Question: What is the first name of all employees who do not give any lessons?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , staff_id (number) , staff_id (number) | customers : first_name (text) , customer_id (number) | lessons : staff_id (number) , lesson_id (number)


Question: What is the id and detail of the vehicle used in lessons for most of the times?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

vehicles : vehicle_id (number) , vehicle_details (text) , vehicle_id (number) | lessons : vehicle_id (number) , lesson_id (number)


Question: How many faculty do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What is the total number of faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: What ranks do we have for faculty?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Find the list of distinct ranks for faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show all the distinct buildings that have faculty rooms.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: What buildings have faculty offices?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Show the rank, first name, and last name for all the faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , fname (text) , lname (text) , facid (number) | student : fname (text) , lname (text) , stuid (number)


Question: What are the rank, first name, and last name of the faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , fname (text) , lname (text) , facid (number) | student : fname (text) , lname (text) , stuid (number)


Question: Show the first name, last name, and phone number for all female faculty members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , sex (text) , stuid (number) | faculty : fname (text) , lname (text) , phone (number) , sex (text) , facid (number)


Question: What are the first name, last name, and phone number of all the female faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , sex (text) , stuid (number) | faculty : fname (text) , lname (text) , phone (number) , sex (text) , facid (number)


Question: Show ids for all the male faculty.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number) , sex (text) , facid (number) | student : sex (text) , stuid (number)


Question: What are the faculty ids of all the male faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty_participates_in : facid (number) | faculty : facid (number) , sex (text) , facid (number) | student : sex (text) , stuid (number)


Question: How many female Professors do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : sex (text) , stuid (number) | faculty : sex (text) , rank (text) , facid (number)


Question: Count the number of female Professors we have.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : sex (text) , stuid (number) | faculty : sex (text) , rank (text) , facid (number)


Question: Show the phone, room, and building for the faculty named Jerry Prince.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : phone (number) , room (text) , building (text) , fname (text) , lname (text) , facid (number) | student : fname (text) , lname (text) , stuid (number)


Question: What are the phone, room, and building of the faculty member called Jerry Prince?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : phone (number) , room (text) , building (text) , fname (text) , lname (text) , facid (number) | student : fname (text) , lname (text) , stuid (number)


Question: How many Professors are in building NEB?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , building (text) , facid (number)


Question: Count the number of Professors who have office in building NEB.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , building (text) , facid (number)


Question: Show the first name and last name for all the instructors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , rank (text) , facid (number)


Question: What are the first name and last name of all the instructors?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , stuid (number) | faculty : fname (text) , lname (text) , rank (text) , facid (number)


Question: Show all the buildings along with the number of faculty members the buildings have.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: How many faculty members does each building have? List the result with the name of the building.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Which building has most faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Find the building that has the largest number of faculty members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , facid (number)


Question: Show all the buildings that have at least 10 professors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , rank (text) , facid (number)


Question: In which buildings are there at least ten professors?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : building (text) , rank (text) , facid (number)


Question: For each faculty rank, show the number of faculty members who have it.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: How many faculty members do we have for each faculty rank?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show all the ranks and the number of male and female faculty for each rank.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , sex (text) , facid (number) | student : sex (text) , stuid (number)


Question: How many faculty members do we have for each rank and gender?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

faculty : rank (text) , sex (text) , facid (number) | student : sex (text) , stuid (number)


Question: Which rank has the smallest number of faculty members?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Find the faculty rank that has the least members.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)


Question: Show the number of male and female assistant professors.

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : sex (text) , stuid (number) | faculty : sex (text) , rank (text) , facid (number)


Question: How many male and female assistant professors do we have?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : sex (text) , stuid (number) | faculty : sex (text) , rank (text) , facid (number)


Question: What are the first name and last name of Linda Smith's advisor?

activity : actid (number) , activity_name (text) | participates_in : stuid (number) , actid (number) | faculty_participates_in : facid (number) , actid (number) | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | faculty : facid (number) , lname (text) , fname (text) , rank (text) , sex (text) , phone (number) , room (text) , building (text)

student : fname (text) , lname (text) , advisor (number) , stuid (number) | faculty : fname (text) , lname (text) , facid (number) , facid (number) | faculty_participates_in : facid (number)