Question: Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , reported_by_staff_id (number) | staff : staff_id (number) , staff_last_name (text)


Question: What are the ids of the problems which are reported after 1978-06-26?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , date_problem_reported (time)


Question: Find the ids of the problems reported after 1978-06-26.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , date_problem_reported (time)


Question: What are the ids of the problems which are reported before 1978-06-26?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , date_problem_reported (time)


Question: Which problems are reported before 1978-06-26? Give me the ids of the problems.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , date_problem_reported (time)


Question: For each product which has problems, what are the number of problems and the product id?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_id (number) | problems : product_id (number) , problem_id (number)


Question: For each product with some problems, list the count of problems and the product id.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_id (number) | problems : product_id (number) , problem_id (number)


Question: For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_id (number) | problems : product_id (number) , date_problem_reported (time) , problem_id (number)


Question: What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_id (number) | problems : product_id (number) , date_problem_reported (time) , problem_id (number)


Question: List the names of all the distinct product names in alphabetical order?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number)


Question: Sort all the distinct product names in alphabetical order.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number)


Question: List all the distinct product names ordered by product id?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number)


Question: What is the list of distinct product names sorted by product id?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number)


Question: What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : product_id (number) , reported_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : product_id (number) , reported_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : product_id (number) , reported_by_staff_id (number) , closure_authorised_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : product_id (number) , reported_by_staff_id (number) , closure_authorised_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , reported_by_staff_id (number) , date_problem_reported (time) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , reported_by_staff_id (number) , date_problem_reported (time) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , reported_by_staff_id (number) , date_problem_reported (time) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , reported_by_staff_id (number) , date_problem_reported (time) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: Find the top 3 products which have the largest number of problems?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number) | problems : product_id (number) , problem_id (number)


Question: What are the three products that have the most problems?s

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number) | problems : product_id (number) , problem_id (number)


Question: List the ids of the problems from the product "voluptatem" that are reported after 1995?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , product_id (number) , date_problem_reported (time) | product : product_id (number) , product_name (text)


Question: What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

problems : problem_id (number) , product_id (number) , date_problem_reported (time) | product : product_id (number) , product_name (text)


Question: Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

staff : staff_first_name (text) , staff_last_name (text) , staff_id (number) | product : product_id (number) , product_name (text) | problems : product_id (number) , reported_by_staff_id (number) , problem_id (number)


Question: Which staff members who reported problems from the product "rem" but not "aut"? Give me their first and last names.

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

staff : staff_first_name (text) , staff_last_name (text) , staff_id (number) | product : product_id (number) , product_name (text) | problems : product_id (number) , reported_by_staff_id (number) , problem_id (number)


Question: Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number) | problems : product_id (number) , reported_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?

problem_category_codes : problem_category_code (text) , problem_category_description (text) | problem_log : problem_log_id (number) , assigned_to_staff_id (number) , problem_id (number) , problem_category_code (text) , problem_status_code (text) , log_entry_date (time) , log_entry_description (text) , log_entry_fix (text) , other_log_details (text) | problem_status_codes : problem_status_code (text) , problem_status_description (text) | product : product_id (number) , product_name (text) , product_details (text) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text) , other_staff_details (text) | problems : problem_id (number) , product_id (number) , closure_authorised_by_staff_id (number) , reported_by_staff_id (number) , date_problem_reported (time) , date_problem_closed (time) , problem_description (text) , other_problem_details (text)

product : product_name (text) , product_id (number) | problems : product_id (number) , reported_by_staff_id (number) , problem_id (number) | staff : staff_id (number) , staff_first_name (text) , staff_last_name (text)


Question: How many branches where have more than average number of memberships are there?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : membership_amount (text) , branch_id (number)


Question: What is the number of branches that have more than the average number of memberships?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : membership_amount (text) , branch_id (number)


Question: Show name, address road, and city for all branches sorted by open year.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , address_road (text) , city (text) , open_year (text) , branch_id (number)


Question: What are the names, address roads, and cities of the branches ordered by opening year?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , address_road (text) , city (text) , open_year (text) , branch_id (number)


Question: What are names for top three branches with most number of membership?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , membership_amount (text) , branch_id (number)


Question: What are the names for the 3 branches that have the most memberships?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , membership_amount (text) , branch_id (number)


Question: Show all distinct city where branches with at least 100 memberships are located.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , membership_amount (text) , branch_id (number)


Question: What are the different cities that have more than 100 memberships?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , membership_amount (text) , branch_id (number)


Question: List all open years when at least two shops are opened.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : open_year (text) , branch_id (number)


Question: What are the opening years in which at least two shops opened?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : open_year (text) , branch_id (number)


Question: Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : membership_amount (text) , open_year (text) , city (text) , branch_id (number)


Question: What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : membership_amount (text) , open_year (text) , city (text) , branch_id (number)


Question: Show the city and the number of branches opened before 2010 for each city.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , open_year (text) , branch_id (number)


Question: For each city, how many branches opened before 2010?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , open_year (text) , branch_id (number)


Question: How many different levels do members have?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : level (number) , member_id (number)


Question: What are the different membership levels?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : level (number) , member_id (number)


Question: Show card number, name, and hometown for all members in a descending order of level.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : card_number (text) , name (text) , hometown (text) , level (number) , member_id (number)


Question: What are the card numbers, names, and hometowns of every member ordered by descending level?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : card_number (text) , name (text) , hometown (text) , level (number) , member_id (number)


Question: Show the membership level with most number of members.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : level (number) , member_id (number)


Question: What is the membership level with the most people?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : level (number) , member_id (number)


Question: Show all member names and registered branch names sorted by register year.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number) , register_year (text)


Question: What are the names of the members and branches at which they are registered sorted by year of registration?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number) , register_year (text)


Question: Show all branch names with the number of members in each branch registered after 2015.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)


Question: For each branch id, what are the names of the branches that were registered after 2015?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)


Question: Show member names without any registered branch.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) | membership_register_branch : member_id (number)


Question: What are the names of the members that have never registered at any branch?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) | membership_register_branch : member_id (number)


Question: List the branch name and city without any registered members.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , city (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)


Question: What are the names and cities of the branches that do not have any registered members?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , city (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)


Question: What is the name and open year for the branch with most number of memberships registered in 2016?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , open_year (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)


Question: What is the name and opening year for the branch that registered the most members in 2016?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : name (text) , open_year (text) , branch_id (number) | membership_register_branch : branch_id (text) , register_year (text) , member_id (number)


Question: Show the member name and hometown who registered a branch in 2016.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , hometown (text) , member_id (number) | membership_register_branch : member_id (number) , register_year (text)


Question: What are the member names and hometowns of those who registered at a branch in 2016?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , hometown (text) , member_id (number) | membership_register_branch : member_id (number) , register_year (text)


Question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , open_year (text) , membership_amount (text) , branch_id (number)


Question: What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , open_year (text) , membership_amount (text) , branch_id (number)


Question: Show all cities without a branch having more than 100 memberships.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , membership_amount (text) , branch_id (number)


Question: What are the cities that do not have any branches with more than 100 members?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

branch : city (text) , membership_amount (text) , branch_id (number)


Question: What is the sum of total pounds of purchase in year 2018 for all branches in London?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

purchase : total_pounds (number) , branch_id (text) , year (text) , member_id (number) | branch : branch_id (number) , city (text)


Question: How many total pounds were purchased in the year 2018 at all London branches?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

purchase : total_pounds (number) , branch_id (text) , year (text) , member_id (number) | branch : branch_id (number) , city (text)


Question: What is the total number of purchases for members with level 6?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : member_id (number) , level (number) | purchase : member_id (number)


Question: What are the total purchases for members rated at level 6?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : member_id (number) , level (number) | purchase : member_id (number)


Question: Find the name of branches where have some members whose hometown is in Louisville, Kentucky and some in Hiram, Georgia.

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) , hometown (text) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)


Question: What are the names of the branches that have some members with a hometown in Louisville, Kentucky and also those from Hiram, Goergia?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : name (text) , member_id (number) , hometown (text) | branch : name (text) , branch_id (number) | membership_register_branch : branch_id (text) , member_id (number)


Question: list the card number of all members whose hometown address includes word "Kentucky".

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : card_number (text) , hometown (text) , member_id (number)


Question: What are the card numbers of members from Kentucky?

member : member_id (number) , card_number (text) , name (text) , hometown (text) , level (number) | branch : branch_id (number) , name (text) , open_year (text) , address_road (text) , city (text) , membership_amount (text) | membership_register_branch : member_id (number) , branch_id (text) , register_year (text) | purchase : member_id (number) , branch_id (text) , year (text) , total_pounds (number)

member : card_number (text) , hometown (text) , member_id (number)


Question: Find the number of students in total.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: How many students are there in total?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: Find the distinct number of president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: How many distinct president votes are recorded?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: Find the maximum age of all the students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: What is the oldest age among the students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: Find the last names of students with major 50.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , major (number) , stuid (number)


Question: What are the last names of students studying major 50?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , major (number) , stuid (number)


Question: Find the first names of students with age above 22.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , age (number) , stuid (number)


Question: What are the first names of all the students aged above 22?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , age (number) , stuid (number)


Question: What are the majors of male (sex is M) students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , sex (text) , stuid (number)


Question: List the major of each male student.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , sex (text) , stuid (number)


Question: What is the average age of female (sex is F) students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , sex (text) , stuid (number)


Question: Find the average age of female students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , sex (text) , stuid (number)


Question: What are the maximum and minimum age of students with major 600?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , major (number) , stuid (number)


Question: Tell me the ages of the oldest and youngest students studying major 600.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , major (number) , stuid (number)


Question: Who are the advisors for students that live in a city with city code "BAL"?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , city_code (text) , stuid (number)


Question: Show the advisors of the students whose city of residence has city code "BAL".

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , city_code (text) , stuid (number)


Question: What are the distinct secretary votes in the fall election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : secretary_vote (number) , election_cycle (text)


Question: Return all the distinct secretary votes made in the fall election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : secretary_vote (number) , election_cycle (text)


Question: What are the distinct president votes on 08/30/2015?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : president_vote (number) , registration_date (text)


Question: Show all the distinct president votes made on 08/30/2015.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : president_vote (number) , registration_date (text)


Question: Report the distinct registration date and the election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : registration_date (text) , election_cycle (text)


Question: What are the distinct registration dates and the election cycles?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : registration_date (text) , election_cycle (text)


Question: Report the distinct president vote and the vice president vote.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : president_vote (number) , vice_president_vote (number)


Question: List all the distinct president votes and the vice president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

voting_record : president_vote (number) , vice_president_vote (number)


Question: Find the distinct last names of the students who have class president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)


Question: What are the distinct last names of the students who have class president votes?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) | voting_record : stuid (number) , class_president_vote (number)


Question: Find the distinct first names of the students who have class senator votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)


Question: What are the distinct first names of the students who have class president votes?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , stuid (number) | voting_record : stuid (number) , class_senator_vote (number)


Question: Find the distinct ages of students who have secretary votes in the fall election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: What are the distinct ages of students who have secretary votes in the fall election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: Find the distinct Advisor of students who have treasurer votes in the spring election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)


Question: Who served as an advisor for students who have treasurer votes in the spring election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number) , election_cycle (text)


Question: Find the distinct majors of students who have treasurer votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)


Question: What are the distinct majors that students with treasurer votes are studying?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number) | voting_record : stuid (number) , treasurer_vote (number)


Question: Find the first and last names of all the female (sex is F) students who have president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , lname (text) , stuid (number) , sex (text) | voting_record : stuid (number) , president_vote (number)


Question: What are the first and last names of all the female students who have president votes?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , lname (text) , stuid (number) , sex (text) | voting_record : stuid (number) , president_vote (number)


Question: Find the first and last name of all the students of age 18 who have vice president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , lname (text) , stuid (number) , age (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: What are the first names and last names of the students who are 18 years old and have vice president votes.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , lname (text) , stuid (number) , age (number) | voting_record : stuid (number) , vice_president_vote (number)


Question: How many male (sex is M) students have class senator votes in the fall election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : stuid (number) , sex (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: Count the number of male students who had class senator votes in the fall election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : stuid (number) , sex (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : stuid (number) , city_code (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: Which students live in the city with code "NYC" and have class senator votes in the spring election cycle? Count the numbers.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : stuid (number) , city_code (text) | voting_record : stuid (number) , class_senator_vote (number) , election_cycle (text)


Question: Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) , city_code (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: What is the average age of students who have city code "NYC" and have secretary votes for the spring election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) , city_code (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) , sex (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: What is the average age of the female students with secretary votes in the spring election cycle?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : age (number) , stuid (number) , sex (text) | voting_record : stuid (number) , secretary_vote (number) , election_cycle (text)


Question: Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , stuid (number) , city_code (text) | voting_record : stuid (number) , vice_president_vote (number)


Question: What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : fname (text) , stuid (number) , city_code (text) | voting_record : stuid (number) , vice_president_vote (number)


Question: Find the distinct last names of all the students who have president votes and whose advisor is not 2192.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)


Question: What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)


Question: Find the distinct last names of all the students who have president votes and whose advisor is 8741.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)


Question: What are the distinct last names of the students who have president votes and have 8741 as the advisor?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : lname (text) , stuid (number) , advisor (number) | voting_record : stuid (number) , president_vote (number)


Question: For each advisor, report the total number of students advised by him or her.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: How many students does each advisor have?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: Report all advisors that advise more than 2 students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: Which advisors have more than two students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: Report all majors that have less than 3 students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number)


Question: What are the majors only less than three students are studying?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number)


Question: For each election cycle, report the number of voting records.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: Count the number of voting records for each election cycle.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)


Question: Which major has the most students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number)


Question: Find the major that is studied by the largest number of students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , stuid (number)


Question: What is the most common major among female (sex is F) students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , sex (text) , stuid (number)


Question: Find the major that is studied by the most female students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : major (number) , sex (text) , stuid (number)


Question: What is the city_code of the city that the most students live in?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : city_code (text) , stuid (number)


Question: Return the code of the city that has the most students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : city_code (text) , stuid (number)


Question: Report the distinct advisors who have more than 2 students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: Which advisors are advising more than 2 students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | voting_record : stuid (number) , registration_date (text) , election_cycle (text) , president_vote (number) , vice_president_vote (number) , secretary_vote (number) , treasurer_vote (number) , class_president_vote (number) , class_senator_vote (number)

student : advisor (number) , stuid (number)


Question: How many products are there?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: Count the number of products.

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)


Question: How many colors are there?

ref_characteristic_types : characteristic_type_code (text) , characteristic_type_description (text) | ref_colors : color_code (text) , color_description (text) | ref_product_categories : product_category_code (text) , product_category_description (text) , unit_of_measure (text) | characteristics : characteristic_id (number) , characteristic_type_code (text) , characteristic_data_type (text) , characteristic_name (text) , other_characteristic_details (text) | products : product_id (number) , color_code (text) , product_category_code (text) , product_name (text) , typical_buying_price (text) , typical_selling_price (text) , product_description (text) , other_product_details (text) | product_characteristics : product_id (number) , characteristic_id (number) , product_characteristic_value (text)