Question: Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) , people_id (number) | debate : date (text) , venue (text) , debate_id (number) , debate_id (number) | debate_people : debate_id (number) , negative (number) , debate_id (number)


Question: Show the names of people that are on affirmative side of debates with number of audience bigger than 200.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) , people_id (number) | debate : debate_id (number) , num_of_audience (number) , debate_id (number) | debate_people : debate_id (number) , affirmative (number) , debate_id (number)


Question: Show the names of people and the number of times they have been on the affirmative side of debates.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) , people_id (number) | debate_people : affirmative (number) , debate_id (number)


Question: Show the names of people who have been on the negative side of debates at least twice.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) , people_id (number) | debate_people : negative (number) , debate_id (number)


Question: List the names of people that have not been on the affirmative side of debates.

people : people_id (number) , district (text) , name (text) , party (text) , age (number) | debate : debate_id (number) , date (text) , venue (text) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) , negative (number) , if_affirmative_win (others)

people : name (text) , people_id (number) , people_id (number) | debate_people : affirmative (number) , debate_id (number)


Question: List the names of all the customers in alphabetical order.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Sort the customer names in alphabetical order.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Find all the policy type codes associated with the customer "Dayana Robel"

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , customer_id (number) , policy_id (number) | customers : customer_id (number) , customer_details (text) , customer_id (number)


Question: What are the type codes of the policies used by the customer "Dayana Robel"?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , customer_id (number) , policy_id (number) | customers : customer_id (number) , customer_details (text) , customer_id (number)


Question: Which type of policy is most frequently used? Give me the policy type code.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find the type code of the most frequently used policy.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find all the policy types that are used by more than 2 customers.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Which types of policy are chosen by more than 2 customers? Give me the policy type codes.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find the total and average amount paid in claim headers.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claim_headers : amount_piad (number) , claim_header_id (number)


Question: What are the total amount and average amount paid in claim headers?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claim_headers : amount_piad (number) , claim_header_id (number)


Question: Find the total amount claimed in the most recently created document.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claim_headers : amount_claimed (number) , claim_header_id (number) , claim_header_id (number) | claims_documents : claim_id (number) , created_date (number) , claim_id (number) | claims_processing : claim_id (number) , claim_processing_id (number)


Question: How much amount in total were claimed in the most recently created document?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claim_headers : amount_claimed (number) , claim_header_id (number) , claim_header_id (number) | claims_documents : claim_id (number) , created_date (number) , claim_id (number) | claims_processing : claim_id (number) , claim_processing_id (number)


Question: What is the name of the customer who has made the largest amount of claim in a single claim?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : policy_id (number) , customer_id (number) , policy_id (number) | claim_headers : policy_id (number) , amount_claimed (number) , claim_header_id (number)


Question: Which customer made the largest amount of claim in a single claim? Return the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : policy_id (number) , customer_id (number) , policy_id (number) | claim_headers : policy_id (number) , amount_claimed (number) , claim_header_id (number)


Question: What is the name of the customer who has made the minimum amount of payment in one claim?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : policy_id (number) , customer_id (number) , policy_id (number) | claim_headers : policy_id (number) , amount_piad (number) , claim_header_id (number)


Question: Which customer made the smallest amount of claim in one claim? Return the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : policy_id (number) , customer_id (number) , policy_id (number) | claim_headers : policy_id (number) , amount_piad (number) , claim_header_id (number)


Question: Find the names of customers who have no policies associated.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)


Question: What are the names of customers who do not have any policies?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)


Question: How many claim processing stages are there in total?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)


Question: Find the number of distinct stages in claim processing.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)


Question: What is the name of the claim processing stage that most of the claims are on?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing_stages : claim_status_name (text) , claim_stage_id (number) , claim_stage_id (number) | claims_processing : claim_stage_id (number) , claim_processing_id (number)


Question: Which claim processing stage has the most claims? Show the claim status name.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing_stages : claim_status_name (text) , claim_stage_id (number) , claim_stage_id (number) | claims_processing : claim_stage_id (number) , claim_processing_id (number)


Question: Find the names of customers whose name contains "Diana".

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Which customers have the substring "Diana" in their names? Return the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number)


Question: Find the names of the customers who have an deputy policy.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_type_code (text) , policy_id (number)


Question: Which customers have an insurance policy with the type code "Deputy"? Give me the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_type_code (text) , policy_id (number)


Question: Find the names of customers who either have an deputy policy or uniformed policy.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_type_code (text) , policy_id (number)


Question: Which customers have an insurance policy with the type code "Deputy" or "Uniform"? Return the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_type_code (text) , policy_id (number)


Question: Find the names of all the customers and staff members.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) | staff : staff_details (text) , staff_id (number)


Question: What are the names of the customers and staff members?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) | staff : staff_details (text) , staff_id (number)


Question: Find the number of records of each policy type and its type code.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: For each policy type, return its type code and its count in the record.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

policies : policy_type_code (text) , policy_id (number)


Question: Find the name of the customer that has been involved in the most policies.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)


Question: Which customer have the most policies? Give me the customer details.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , policy_id (number)


Question: What is the description of the claim status "Open"?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing_stages : claim_status_description (text) , claim_status_name (text) , claim_stage_id (number)


Question: Find the description of the claim status "Open".

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing_stages : claim_status_description (text) , claim_status_name (text) , claim_stage_id (number)


Question: How many distinct claim outcome codes are there?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing : claim_outcome_code (text) , claim_processing_id (number)


Question: Count the number of distinct claim outcome codes.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

claims_processing : claim_outcome_code (text) , claim_processing_id (number)


Question: Which customer is associated with the latest policy?

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , start_date (time) , policy_id (number)


Question: Find the customer who started a policy most recently.

customers : customer_id (number) , customer_details (text) | staff : staff_id (number) , staff_details (text) | policies : policy_id (number) , customer_id (number) , policy_type_code (text) , start_date (time) , end_date (time) | claim_headers : claim_header_id (number) , claim_status_code (text) , claim_type_code (text) , policy_id (number) , date_of_claim (time) , date_of_settlement (time) , amount_claimed (number) , amount_piad (number) | claims_documents : claim_id (number) , document_type_code (text) , created_by_staff_id (number) , created_date (number) | claims_processing_stages : claim_stage_id (number) , next_claim_stage_id (number) , claim_status_name (text) , claim_status_description (text) | claims_processing : claim_processing_id (number) , claim_id (number) , claim_outcome_code (text) , claim_stage_id (number) , staff_id (number)

customers : customer_details (text) , customer_id (number) , customer_id (number) | policies : customer_id (number) , start_date (time) , policy_id (number)


Question: Show the number of accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)


Question: How many accounts are there?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)


Question: How many customers have opened an account?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Count the number of customers who have an account.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show the id, the date of account opened, the account name, and other account detail for all accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) , account_id (number) | financial_transactions : account_id (number)


Question: What are the ids, date opened, name, and other details for all accounts?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) , account_id (number) | financial_transactions : account_id (number)


Question: Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) , customer_id (number) , account_id (number) | financial_transactions : account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: What are the ids, names, dates of opening, and other details for accounts corresponding to the customer with the first name "Meaghan"?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) , customer_id (number) , account_id (number) | financial_transactions : account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_name (text) , other_account_details (text) , customer_id (number) , account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: What are the names and other details for accounts corresponding to the customer named Meaghan Keeling?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

accounts : account_name (text) , other_account_details (text) , customer_id (number) , account_id (number) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Show the first name and last name for the customer with account name 900.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_last_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_name (text) , account_id (number)


Question: What are the full names of customers with the account name 900?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_last_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_name (text) , account_id (number)


Question: How many customers don't have an account?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Count the number of customers who do not have an account.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show the unique first names, last names, and phone numbers for all customers with any account.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_last_name (text) , phone_number (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: What are the distinct first names, last names, and phone numbers for customers with accounts?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_last_name (text) , phone_number (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show customer ids who don't have an account.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: What are the customer ids for customers who do not have an account?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: How many accounts does each customer have? List the number and customer id.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Count the number of accounts corresponding to each customer id.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: What is the customer id, first and last name with most number of accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Return the id and full name of the customer with the most accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show id, first name and last name for all customers and the number of accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: What are the the full names and ids for all customers, and how many accounts does each have?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show first name and id for all customers with at least 2 accounts.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: What are the first names and ids for customers who have two or more accounts?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : customer_first_name (text) , customer_id (number) , customer_id (number) | orders : customer_id (number) , order_id (number) | accounts : customer_id (number) , account_id (number)


Question: Show the number of customers.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)


Question: Count the number of customers.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)


Question: Show the number of customers for each gender.

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : gender (text) , customer_id (number)


Question: How many customers are there of each gender?

customers : customer_id (number) , customer_first_name (text) , customer_middle_initial (text) , customer_last_name (text) , gender (text) , email_address (text) , login_name (text) , login_password (text) , phone_number (text) , town_city (text) , state_county_province (text) , country (text) | orders : order_id (number) , customer_id (number) , date_order_placed (time) , order_details (text) | invoices : invoice_number (number) , order_id (number) , invoice_date (time) | accounts : account_id (number) , customer_id (number) , date_account_opened (time) , account_name (text) , other_account_details (text) | product_categories : production_type_code (text) , product_type_description (text) , vat_rating (number) | products : product_id (number) , parent_product_id (number) , production_type_code (text) , unit_price (number) , product_name (text) , product_color (text) , product_size (text) | financial_transactions : transaction_id (number) , account_id (number) , invoice_number (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , product_quantity (text) , other_order_item_details (text) | invoice_line_items : order_item_id (number) , invoice_number (number) , product_id (number) , product_title (text) , product_quantity (text) , product_price (number) , derived_product_cost (number) , derived_vat_payable (number) , derived_total_cost (number)

customers : gender (text) , customer_id (number)