db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
debate | Show the distinct venues 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) | debate : venue (text) | 0.923077 |
debate | Show the names of people, and dates and venues of debates they are on the affirmative side. | 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) | debate : date (text) , venue (text) , debate_id (number) | debate_people : debate_id (number) , affirmative (number) | 0.461538 |
debate | 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) | debate : date (text) , venue (text) , debate_id (number) | debate_people : debate_id (number) , negative (number) | 0.461538 |
debate | 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) | debate : debate_id (number) , num_of_audience (number) | debate_people : debate_id (number) , affirmative (number) | 0.538462 |
debate | 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) | debate_people : affirmative (number) , debate_id (number) | 0.692308 |
debate | 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) | debate_people : negative (number) , debate_id (number) | 0.692308 |
debate | 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) | debate_people : affirmative (number) | 0.769231 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | customers : customer_id (number) , customer_details (text) | 0.866667 |
insurance_and_eClaims | 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) | customers : customer_id (number) , customer_details (text) | 0.866667 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | claims_documents : claim_id (number) , created_date (number) | 0.866667 |
insurance_and_eClaims | 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) | claims_documents : claim_id (number) , created_date (number) | 0.866667 |
insurance_and_eClaims | 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) | policies : policy_id (number) , customer_id (number) | claim_headers : policy_id (number) , amount_claimed (number) | 0.8 |
insurance_and_eClaims | 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) | policies : policy_id (number) , customer_id (number) | claim_headers : policy_id (number) , amount_claimed (number) | 0.8 |
insurance_and_eClaims | 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) | policies : policy_id (number) , customer_id (number) | claim_headers : policy_id (number) , amount_piad (number) | 0.8 |
insurance_and_eClaims | 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) | policies : policy_id (number) , customer_id (number) | claim_headers : policy_id (number) , amount_piad (number) | 0.8 |
insurance_and_eClaims | 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) | policies : customer_id (number) | 0.9 |
insurance_and_eClaims | 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) | policies : customer_id (number) | 0.9 |
insurance_and_eClaims | 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) | claims_processing_stages : claim_stage_id (number) | 0.966667 |
insurance_and_eClaims | 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) | claims_processing_stages : claim_stage_id (number) | 0.966667 |
insurance_and_eClaims | 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) | claims_processing : claim_stage_id (number) , claim_processing_id (number) | 0.866667 |
insurance_and_eClaims | 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) | claims_processing : claim_stage_id (number) , claim_processing_id (number) | 0.866667 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_type_code (text) | 0.866667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_type_code (text) | 0.866667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_type_code (text) | 0.866667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_type_code (text) | 0.866667 |
insurance_and_eClaims | 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) | staff : staff_details (text) | 0.933333 |
insurance_and_eClaims | 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) | staff : staff_details (text) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_id (number) | 0.866667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , policy_id (number) | 0.866667 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.933333 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | 0.966667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , start_date (time) | 0.866667 |
insurance_and_eClaims | 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) | policies : customer_id (number) , start_date (time) | 0.866667 |
customers_and_invoices | 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) | accounts : account_id (number) | 0.982143 |
customers_and_invoices | 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) | accounts : account_id (number) | 0.982143 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.982143 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.982143 |
customers_and_invoices | 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) | 0.928571 |
customers_and_invoices | 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) | 0.928571 |
customers_and_invoices | 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) | customers : customer_id (number) , customer_first_name (text) | 0.875 |
customers_and_invoices | 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) | customers : customer_id (number) , customer_first_name (text) | 0.875 |
customers_and_invoices | 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) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | 0.892857 |
customers_and_invoices | 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) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | 0.892857 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_name (text) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_name (text) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.946429 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.946429 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.964286 |
customers_and_invoices | 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) | accounts : customer_id (number) | 0.964286 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.964286 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.964286 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.910714 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.928571 |
customers_and_invoices | 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) | accounts : customer_id (number) , account_id (number) | 0.928571 |
customers_and_invoices | 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) | customers : customer_id (number) | 0.982143 |
customers_and_invoices | 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) | customers : customer_id (number) | 0.982143 |
customers_and_invoices | 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) | 0.964286 |
customers_and_invoices | 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) | 0.964286 |
customers_and_invoices | How many transaction does each account have? Show the number and account 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) | financial_transactions : account_id (number) | 0.982143 |
customers_and_invoices | Count the number of financial transactions that correspond to each account 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) | financial_transactions : account_id (number) | 0.982143 |
customers_and_invoices | How many transaction does account with name 337 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) | accounts : account_id (number) , account_name (text) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | Count the number of financial transactions that the account with the name 337 has. | 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) , account_name (text) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | What is the average, minimum, maximum, and total transaction amount? | 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) | financial_transactions : transaction_amount (number) | 0.982143 |
customers_and_invoices | Return the average, minimum, maximum, and total transaction amounts. | 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) | financial_transactions : transaction_amount (number) | 0.982143 |
customers_and_invoices | Show ids for all transactions whose amounts are greater than the average. | 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) | financial_transactions : transaction_id (number) , transaction_amount (number) | 0.964286 |
customers_and_invoices | What are the ids for transactions that have an amount greater than the average amount of a transaction? | 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) | financial_transactions : transaction_id (number) , transaction_amount (number) | 0.964286 |
customers_and_invoices | Show the transaction types and the total amount of transactions. | 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) | financial_transactions : transaction_type (text) , transaction_amount (number) | 0.964286 |
customers_and_invoices | What are total transaction amounts for each transaction type? | 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) | financial_transactions : transaction_type (text) , transaction_amount (number) | 0.964286 |
customers_and_invoices | Show the account name, id and the number of transactions for each 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) | accounts : account_name (text) , account_id (number) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | Return the names and ids of each account, as well as the number of transactions. | 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) , account_id (number) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | Show the account id with most number of transactions. | 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) | financial_transactions : account_id (number) | 0.982143 |
customers_and_invoices | What is the id of the account with the most transactions? | 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) | financial_transactions : account_id (number) | 0.982143 |
customers_and_invoices | Show the account id and name with at least 4 transactions. | 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) , account_name (text) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | What are the ids and names of accounts with 4 or more transactions? | 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) , account_name (text) | financial_transactions : account_id (number) | 0.946429 |
customers_and_invoices | Show all product sizes. | 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) | products : product_size (text) | 0.982143 |
customers_and_invoices | What are the different product sizes? | 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) | products : product_size (text) | 0.982143 |
customers_and_invoices | Show all product colors. | 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) | products : product_color (text) | 0.982143 |
customers_and_invoices | What are the different product colors? | 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) | products : product_color (text) | 0.982143 |
customers_and_invoices | Show the invoice number and the number of transactions for each invoice. | 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) | financial_transactions : invoice_number (number) | 0.982143 |
customers_and_invoices | How many transactions correspond to each invoice number? | 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) | financial_transactions : invoice_number (number) | 0.982143 |
customers_and_invoices | What is the invoice number and invoice date for the invoice with most number of transactions? | 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) | invoices : invoice_number (number) , invoice_date (time) | financial_transactions : invoice_number (number) | 0.946429 |