db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
customers_card_transactions | What are card ids, customer ids, card types, and card numbers for each customer card? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) | 0.851852 |
customers_card_transactions | Show the date valid from and the date valid to for the card with card number '4560596484842'. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : date_valid_from (time) , date_valid_to (time) , card_number (text) | 0.888889 |
customers_card_transactions | What are the valid from and valid to dates for the card with the number 4560596484842? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : date_valid_from (time) , date_valid_to (time) , card_number (text) | 0.888889 |
customers_card_transactions | What is the first name, last name, and phone of the customer with card 4560596484842. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_first_name (text) , customer_last_name (text) , customer_phone (text) , customer_id (number) | customers_cards : customer_id (number) , card_number (text) | 0.777778 |
customers_card_transactions | Return the full name and phone of the customer who has card number 4560596484842. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_first_name (text) , customer_last_name (text) , customer_phone (text) , customer_id (number) | customers_cards : customer_id (number) , card_number (text) | 0.777778 |
customers_card_transactions | How many cards does customer Art Turcotte have? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | Count the number of cards the customer with the first name Art and last name Turcotte has. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | How many debit cards do we have? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | Count the number of customer cards of the type Debit. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | How many credit cards does customer Blanche Huels have? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_type_code (text) , card_id (number) | 0.777778 |
customers_card_transactions | Count the number of credit cards that the customer with first name Blanche and last name Huels has. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_type_code (text) , card_id (number) | 0.777778 |
customers_card_transactions | Show all customer ids and the number of cards owned by each customer. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : customer_id (number) , card_id (number) | 0.925926 |
customers_card_transactions | What are the different customer ids, and how many cards does each one hold? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : customer_id (number) , card_id (number) | 0.925926 |
customers_card_transactions | What is the customer id with most number of cards, and how many does he have? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : customer_id (number) , card_id (number) | 0.925926 |
customers_card_transactions | Return the id of the customer who has the most cards, as well as the number of cards. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : customer_id (number) , card_id (number) | 0.925926 |
customers_card_transactions | Show id, first and last names for all customers with at least two cards. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | What are the ids and full names of customers who hold two or more cards? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | What is the customer id, first and last name with least number of accounts. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | Return the id and full name of the customer who has the fewest accounts. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) | customers_cards : customer_id (number) , card_id (number) | 0.814815 |
customers_card_transactions | Show all card type codes and the number of cards in each type. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | What are the different card types, and how many cards are there of each? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | What is the card type code with most number of cards? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | Return the code of the card type that is most common. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | Show card type codes with at least 5 cards. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | What are the codes of card types that have 5 or more cards? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | 0.925926 |
customers_card_transactions | Show all card type codes and the number of customers holding cards in each type. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , customer_id (number) | 0.925926 |
customers_card_transactions | What are the different card type codes, and how many different customers hold each type? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , customer_id (number) | 0.925926 |
customers_card_transactions | Show the customer ids and firstname without a credit card. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) | customers_cards : customer_id (number) , card_type_code (text) | 0.851852 |
customers_card_transactions | What are the ids and first names of customers who do not hold a credit card? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers : customer_id (number) , customer_first_name (text) | customers_cards : customer_id (number) , card_type_code (text) | 0.851852 |
customers_card_transactions | Show all card type codes. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) | 0.962963 |
customers_card_transactions | What are the different card type codes? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) | 0.962963 |
customers_card_transactions | Show the number of card types. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) | 0.962963 |
customers_card_transactions | How many different card types are there? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) | 0.962963 |
customers_card_transactions | Show all transaction types. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | What are the different types of transactions? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | Show the number of transaction types. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | How many different types of transactions are there? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | What is the average and total transaction amount? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_amount (number) | 0.962963 |
customers_card_transactions | Return the average transaction amount, as well as the total amount of all transactions. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_amount (number) | 0.962963 |
customers_card_transactions | Show the card type codes and the number of transactions. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | financial_transactions : card_id (number) | 0.888889 |
customers_card_transactions | What are the different card types, and how many transactions have been made with each? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | customers_cards : card_type_code (text) , card_id (number) | financial_transactions : card_id (number) | 0.888889 |
customers_card_transactions | Show the transaction type and the number of transactions. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | What are the different transaction types, and how many transactions of each have taken place? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) | 0.962963 |
customers_card_transactions | What is the transaction type that has processed the greatest total amount in transactions? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) , transaction_amount (number) | 0.925926 |
customers_card_transactions | Return the type of transaction with the highest total amount. | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : transaction_type (text) , transaction_amount (number) | 0.925926 |
customers_card_transactions | Show the account id and the number of transactions for each account | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : account_id (number) | 0.962963 |
customers_card_transactions | What are the different account ids that have made financial transactions, as well as how many transactions correspond to each? | accounts : account_id (number) , customer_id (number) , account_name (text) , other_account_details (text) | customers : customer_id (number) , customer_first_name (text) , customer_last_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) , other_customer_details (text) | customers_cards : card_id (number) , customer_id (number) , card_type_code (text) , card_number (text) , date_valid_from (time) , date_valid_to (time) , other_card_details (text) | financial_transactions : transaction_id (number) , previous_transaction_id (number) , account_id (number) , card_id (number) , transaction_type (text) , transaction_date (time) , transaction_amount (number) , transaction_comment (text) , other_transaction_details (text) | financial_transactions : account_id (number) | 0.962963 |
race_track | How many tracks do we have? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : track_id (text) | 0.9 |
race_track | Count the number of tracks. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : track_id (text) | 0.9 |
race_track | Show the name and location for all tracks. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) | 0.8 |
race_track | What are the names and locations of all tracks? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) | 0.8 |
race_track | Show names and seatings, ordered by seating for all tracks opened after 2000. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , seating (number) , year_opened (number) | 0.7 |
race_track | What are the names and seatings for all tracks opened after 2000, ordered by seating? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , seating (number) , year_opened (number) | 0.7 |
race_track | What is the name, location and seating for the most recently opened track? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) , seating (number) , year_opened (number) | 0.6 |
race_track | Return the name, location, and seating of the track that was opened in the most recent year. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) , seating (number) , year_opened (number) | 0.6 |
race_track | What is the minimum, maximum, and average seating for all tracks. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : seating (number) | 0.9 |
race_track | Return the minimum, maximum, and average seating across all tracks. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : seating (number) | 0.9 |
race_track | Show the name, location, open year for all tracks with a seating higher than the average. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) , year_opened (number) , seating (number) | 0.6 |
race_track | What are the names, locations, and years of opening for tracks with seating higher than average? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : name (text) , location (text) , year_opened (number) , seating (number) | 0.6 |
race_track | What are distinct locations where tracks are located? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : location (text) | 0.9 |
race_track | Give the different locations of tracks. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : location (text) | 0.9 |
race_track | How many races are there? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : race_id (number) | 0.9 |
race_track | Count the number of races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : race_id (number) | 0.9 |
race_track | What are the distinct classes that races can have? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) | 0.9 |
race_track | Return the different classes of races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) | 0.9 |
race_track | Show name, class, and date for all races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , class (text) , date (text) | 0.7 |
race_track | What are the names, classes, and dates for all races? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , class (text) , date (text) | 0.7 |
race_track | Show the race class and number of races in each class. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | What are the different classes of races, and how many races correspond to each? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | What is the race class with most number of races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | Give the class of races that is most common. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | List the race class with at least two races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | What are the classes of races that have two or more corresponding races? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : class (text) , race_id (number) | 0.8 |
race_track | What are the names for tracks without a race in class 'GT'. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , class (text) | track : name (text) , track_id (number) | 0.5 |
race_track | Give the names of tracks that do not have a race in the class 'GT'. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , class (text) | track : name (text) , track_id (number) | 0.5 |
race_track | Show all track names that have had no races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) | track : name (text) , track_id (number) | 0.6 |
race_track | Return the names of tracks that have no had any races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) | track : name (text) , track_id (number) | 0.6 |
race_track | Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : year_opened (number) , seating (number) | 0.8 |
race_track | What are the years of opening for tracks with seating between 4000 and 5000? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : year_opened (number) , seating (number) | 0.8 |
race_track | Show the name of track and the number of races in each track. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (text) | 0.4 |
race_track | What are the names of different tracks, and how many races has each had? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (text) | 0.4 |
race_track | Show the name of track with most number of races. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (text) | 0.4 |
race_track | What is the name of the track that has had the greatest number of races? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (text) | 0.4 |
race_track | Show the name and date for each race and its track name. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , date (text) , track_id (text) | track : name (text) , track_id (number) | 0.5 |
race_track | What are the names and dates of races, and the names of the tracks where they are held? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , date (text) , track_id (text) | track : name (text) , track_id (number) | 0.5 |
race_track | Show the name and location of track with 1 race. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , location (text) , track_id (number) , track_id (text) | 0.3 |
race_track | What are the names and locations of tracks that have had exactly 1 race? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | race : name (text) , track_id (text) , race_id (number) | track : name (text) , location (text) , track_id (number) , track_id (text) | 0.3 |
race_track | Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats. | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : location (text) , seating (number) | 0.8 |
race_track | What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats? | race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number) | track : location (text) , seating (number) | 0.8 |
coffee_shop | How many members have the black membership card? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : membership_card (text) , member_id (number) | 0.894737 |
coffee_shop | Find the number of members living in each address. | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : address (text) , member_id (number) | 0.894737 |
coffee_shop | Give me the names of members whose address is in Harford or Waterbury. | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : name (text) , address (text) | 0.894737 |
coffee_shop | Find the ids and names of members who are under age 30 or with black membership card. | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : name (text) , member_id (number) , membership_card (text) , age (number) | 0.789474 |
coffee_shop | Find the purchase time, age and address of each member, and show the results in the order of purchase time. | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : time_of_purchase (number) , age (number) , address (text) | 0.842105 |
coffee_shop | Which membership card has more than 5 members? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : membership_card (text) , member_id (number) | 0.894737 |
coffee_shop | Which address has both members younger than 30 and members older than 40? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : address (text) , age (number) | 0.894737 |
coffee_shop | What is the membership card held by both members living in Hartford and ones living in Waterbury address? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : membership_card (text) , address (text) | 0.894737 |
coffee_shop | How many members are not living in Hartford? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : address (text) , member_id (number) | 0.894737 |
coffee_shop | Which address do not have any member with the black membership card? | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | member : address (text) , membership_card (text) | 0.894737 |
coffee_shop | Show the shop addresses ordered by their opening year. | shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number) | shop : address (text) , open_year (text) | 0.894737 |