Question: Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : capacity (number) , openning_year (number)


Question: Show each location and the number of cinemas there.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , cinema_id (number)


Question: What is the location with the most cinemas opened in year 2010 or later?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , openning_year (number) , cinema_id (number)


Question: Show all the locations with at least two cinemas with capacity above 300.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , capacity (number) , cinema_id (number)


Question: Which locations have 2 or more cinemas with capacity over 300?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , capacity (number) , cinema_id (number)


Question: Show the title and director for all films.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : title (text) , directed_by (text)


Question: What are the title and director of each film?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : title (text) , directed_by (text)


Question: Show all directors.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Who are all the directors?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: List all directors along with the number of films directed by each director.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : directed_by (text) , film_id (number)


Question: What is total number of show times per dat for each cinema?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , cinema_id (number) | schedule : show_times_per_day (number) , cinema_id (number)


Question: What are the title and maximum price of each film?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : title (text) , film_id (number) | schedule : price (number) , film_id (number)


Question: Give me the title and highest price for each film.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : title (text) , film_id (number) | schedule : price (number) , film_id (number)


Question: Show cinema name, film title, date, and price for each record in schedule.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , cinema_id (number) | film : title (text) , film_id (number) | schedule : date (text) , price (number) , film_id (number) , cinema_id (number)


Question: What are the title and director of the films without any schedule?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : title (text) , directed_by (text) , film_id (number) | schedule : film_id (number)


Question: Show director with the largest number of show times in total.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

film : directed_by (text) , film_id (number) | schedule : film_id (number) , show_times_per_day (number)


Question: Find the locations that have more than one movie theater with capacity above 300.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , capacity (number) , cinema_id (number)


Question: In which locations are there more than one movie theater with capacity above 300?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , capacity (number) , cinema_id (number)


Question: How many films have the word 'Dummy' in their titles?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Count the number of films whose title contains the word 'Dummy'.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Are the customers holding coupons with amount 500 bad or good?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : good_or_bad_customer (text) , coupon_id (number) | discount_coupons : coupon_id (number) , coupon_amount (number)


Question: How many bookings did each customer make? List the customer id, first name, and the count.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : customer_id (number) , first_name (text) | bookings : customer_id (number) , booking_id (number)


Question: What is the maximum total amount paid by a customer? List the customer id and amount.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : customer_id (number) , amount_paid (number)


Question: What are the id and the amount of refund of the booking that incurred the most times of payments?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

bookings : booking_id (number) , amount_of_refund (number) | payments : booking_id (number) , payment_id (number)


Question: What is the id of the product that is booked for 3 times?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_booked : product_id (number) , booking_id (number)


Question: What is the product description of the product booked with an amount of 102.76?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_description (text) , product_id (number) | products_booked : product_id (number) , booked_amount (number)


Question: What are the start date and end date of the booking that has booked the product named 'Book collection A'?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

bookings : booking_start_date (time) , booking_end_date (time) , booking_id (number) | products_for_hire : product_id (number) , product_name (text) | products_booked : product_id (number) , booking_id (number)


Question: What are the names of products whose availability equals to 1?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_name (text) , product_id (number) | view_product_availability : product_id (number) , available_yn (text)


Question: How many different product types are there?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_type_code (text)


Question: What are the first name, last name, and gender of all the good customers? Order by their last name.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : first_name (text) , last_name (text) , gender_mf (text) , good_or_bad_customer (text)


Question: What is the average amount due for all the payments?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)


Question: What are the maximum, minimum, and average booked count for the products booked?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)


Question: What are all the distinct payment types?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)


Question: What are the daily hire costs for the products with substring 'Book' in its name?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : daily_hire_cost (number) , product_name (text)


Question: How many products are never booked with amount higher than 200?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_id (number) | products_booked : product_id (number) , booked_amount (number) , booking_id (number)


Question: What are the coupon amount of the coupons owned by both good and bad customers?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

discount_coupons : coupon_amount (number) , coupon_id (number) | customers : coupon_id (number) , good_or_bad_customer (text)


Question: What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : payment_date (time) , amount_paid (number) , payment_type_code (text)


Question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_name (text) , product_description (text) , product_type_code (text) , daily_hire_cost (number)


Question: How many phones are there?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)


Question: List the names of phones in ascending order of price.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)


Question: What are the memories and carriers of phones?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : memory_in_g (number) , carrier (text)


Question: List the distinct carriers of phones with memories bigger than 32.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , memory_in_g (number)


Question: Show the names of phones with carrier either "Sprint" or "TMobile".

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)


Question: What is the carrier of the most expensive phone?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)


Question: Show different carriers of phones together with the number of phones with each carrier.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , phone_id (number)


Question: Show the most frequently used carrier of the phones.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , phone_id (number)


Question: Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , memory_in_g (number)


Question: Show the names of phones and the districts of markets they are on.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : district (text) , market_id (number) | phone_market : market_id (number) , phone_id (text)


Question: Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : district (text) , market_id (number) , ranking (number) | phone_market : market_id (number) , phone_id (text)


Question: Show the names of phones that are on market with number of shops greater than 50.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : market_id (number) , num_of_shops (number) | phone_market : market_id (number) , phone_id (text)


Question: For each phone, show its names and total number of stocks.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : num_of_stock (number) , phone_id (text)


Question: Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : phone_id (text) , num_of_stock (number)


Question: List the names of phones that are not on any market.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : phone_id (text)


Question: How many gas companies are there?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number)


Question: What is the total number of companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number)


Question: List the company name and rank for all companies in the decreasing order of their sales.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , rank (number) , sales_billion (number)


Question: What is the name and rank of every company ordered by descending number of sales?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , rank (number) , sales_billion (number)


Question: Show the company name and the main industry for all companies whose headquarters are not from USA.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , headquarters (text)


Question: What are the companies and main industries of all companies that are not headquartered in the United States?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , headquarters (text)


Question: Show all company names and headquarters in the descending order of market value.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , headquarters (text) , market_value (number)


Question: What are the names and headquarters of all companies ordered by descending market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , headquarters (text) , market_value (number)


Question: Show minimum, maximum, and average market value for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text)


Question: What is the minimum, maximum, and average market value for every company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text)


Question: Show all main industry for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text)


Question: What are the different main industries for all companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text)


Question: List all headquarters and the number of companies in each headquarter.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: For each headquarter, what are the headquarter and how many companies are centered there?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: Show all main industry and total market value in each industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text)


Question: What are the main indstries and total market value for each industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text)


Question: List the main industry with highest total market value and its number of companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: For each main industry, what is the total number of companies for the industry with the highest total market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: Show headquarters with at least two companies in the banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters with at least two companies in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show gas station id, location, and manager_name for all gas stations ordered by open year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number)


Question: What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number)


Question: How many gas station are opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: What is the total number of gas stations that opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: Show all locations and the number of gas stations in each location ordered by the count.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: For each location, how many gas stations are there in order?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: Show all headquarters with both a company in banking industry and a company in Oil and gas.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text)


Question: What are the headquarters that have both a company in the banking and 'oil and gas' industries?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text)


Question: Show all headquarters without a company in banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text)


Question: What are the headquarters without companies that are in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text)


Question: Show the company name with the number of gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: For each company id, what are the companies and how many gas stations does each one operate?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show company name and main industry without a gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) | station_company : company_id (number)


Question: What are the main industries of the companies without gas stations and what are the companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) | station_company : company_id (number)


Question: Show the manager name for gas stations belonging to the ExxonMobil company.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) | company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: What are the names of the managers for gas stations that are operated by the ExxonMobil company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) | company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show all locations where a gas station for company with market value greater than 100 is located.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) | company : company (text) , company_id (number) , market_value (number) | station_company : company_id (number) , station_id (number)


Question: What are the locations that have gas stations owned by a company with a market value greater than 100?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) | company : company (text) , company_id (number) , market_value (number) | station_company : company_id (number) , station_id (number)


Question: Show the manager name with most number of gas stations opened after 2000.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: What is the name of the manager with the most gas stations that opened after 2000?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: order all gas station locations by the opening year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number)


Question: What are the locations of all the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number)


Question: find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number)


Question: What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number)


Question: find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) | station_company : company_id (number) , station_id (number)


Question: What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) | station_company : company_id (number) , station_id (number)


Question: How many regions do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of regions.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show all distinct region names ordered by their labels.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text)


Question: What are the different region names, ordered by labels?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text)


Question: How many parties do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of different parties.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show the ministers and the time they took and left office, listed by the time they left office.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text)


Question: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text)


Question: Show the minister who took office after 1961 or before 1959.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text)


Question: Who are the ministers who took office after 1961 or before 1959?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text)


Question: Show all ministers who do not belong to Progress Party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text)


Question: Which ministers are not a part of the Progress Party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text)


Question: Show all ministers and parties they belong to in descending order of the time they took office.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , took_office (text)


Question: Who are the ministers and what parties do they belong to, listed descending by the times they took office?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , party_name (text) , took_office (text)


Question: Return the minister who left office at the latest time.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , left_office (text)


Question: Which minister left office the latest?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , left_office (text)


Question: List member names and their party names.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) | party : party_name (text) , party_id (number)


Question: What are the names of members and their corresponding parties?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) | party : party_name (text) , party_id (number)


Question: Show all party names and the number of members in each party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text) , member_id (number)


Question: How many members are in each party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text) , member_id (number)


Question: What is the name of party with most number of members?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text) , member_id (number)


Question: Return the name of the party with the most members.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text) , member_id (number)


Question: Show all party names and their region names.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , region_id (number) | region : region_name (text) , region_id (number)


Question: What are the names of parties and their respective regions?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , region_id (number) | region : region_name (text) , region_id (number)


Question: Show names of parties that does not have any members.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text)


Question: What are the names of parties that have no members?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | member : party_id (text)


Question: Show the member names which are in both the party with id 3 and the party with id 1.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text)


Question: Which member names are shared among members in the party with the id 3 and the party with the id 1?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text)


Question: Show member names that are not in the Progress Party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) | party : party_id (number) , party_name (text)


Question: Which member names corresponding to members who are not in the Progress Party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , party_id (text) | party : party_id (number) , party_name (text)


Question: How many party events do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of party events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show party names and the number of events for each party.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: How many events are there for each party?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Show all member names who are not in charge of any event.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) | party_events : member_in_charge_id (number)


Question: What are the names of members who are not in charge of any events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) | party_events : member_in_charge_id (number)


Question: What are the names of parties with at least 2 events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: Return the names of parties that have two or more events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number) | party_events : party_id (number) , event_id (number)


Question: What is the name of member in charge of greatest number of events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: Return the name of the member who is in charge of the most events.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

member : member_name (text) , member_id (number) | party_events : member_in_charge_id (number) , event_id (number)


Question: find the event names that have more than 2 records.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party_events : event_name (text) , event_id (number)


Question: Which event names were used more than twice for party events?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party_events : event_name (text) , event_id (number)


Question: How many Annual Meeting events happened in the United Kingdom region?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_id (number) , region_name (text) | party : region_id (number) , party_id (number) | party_events : party_id (number) , event_name (text) , event_id (number)


Question: Count the number of Annual Meeting events that took place in the region of the United Kingdom.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_id (number) , region_name (text) | party : region_id (number) , party_id (number) | party_events : party_id (number) , event_name (text) , event_id (number)


Question: How many pilots are there?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)


Question: List the names of pilots in ascending order of rank.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : pilot_name (text) , rank (number)


Question: What are the positions and teams of pilots?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)


Question: List the distinct positions of pilots older than 30.

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)


Question: Show the names of pilots from team "Bradley" or "Fordham".

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)


Question: What is the joined year of the pilot of the highest rank?

aircraft : aircraft_id (number) , order_year (number) , manufacturer (text) , model (text) , fleet_series (text) , powertrain (text) , fuel_propulsion (text) | pilot : pilot_id (number) , pilot_name (text) , rank (number) , age (number) , nationality (text) , position (text) , join_year (number) , team (text) | pilot_record : record_id (number) , pilot_id (number) , aircraft_id (number) , date (text)

pilot : join_year (number) , rank (number)