richardr1126/spider-context-instruct huggingface dataset:
### Instruction:

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

### Response:

select count ( * ) from accounts
### Instruction:

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

### Response:

select count ( * ) from accounts
### Instruction:

Convert text to sql: How many customers have opened an account? | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select count ( distinct customer_id ) from accounts
### Instruction:

Convert text to sql: Count the number of customers who have an account. | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select count ( distinct customer_id ) from accounts
### Instruction:

Convert text to sql: Show the id, the date of account opened, the account name, and other account detail for all accounts. | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select account_id , date_account_opened , account_name , other_account_details from accounts
### Instruction:

Convert text to sql: What are the ids, date opened, name, and other details for all accounts? | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select account_id , date_account_opened , account_name , other_account_details from accounts
### Instruction:

Convert text to sql: Show the id, the account name, and other account details for all accounts by the customer with first name 'Meaghan'. | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select accounts.account_id , accounts.date_account_opened , accounts.account_name , accounts.other_account_details from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Meaghan'
### Instruction:

Convert text to sql: 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 , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select accounts.account_id , accounts.date_account_opened , accounts.account_name , accounts.other_account_details from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Meaghan'
### Instruction:

Convert text to sql: 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 , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select accounts.account_name , accounts.other_account_details from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Meaghan' and customers.customer_last_name = 'Keeling'
### Instruction:

Convert text to sql: What are the names and other details for accounts corresponding to the customer named Meaghan Keeling? | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select accounts.account_name , accounts.other_account_details from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Meaghan' and customers.customer_last_name = 'Keeling'
### Instruction:

Convert text to sql: Show the first name and last name for the customer with account name 900. | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select customers.customer_first_name , customers.customer_last_name from accounts join customers on accounts.customer_id = customers.customer_id where accounts.account_name = '900'
### Instruction:

Convert text to sql: What are the full names of customers with the account name 900? | customers : customer_id , customer_first_name , customer_middle_initial , customer_last_name , gender , email_address , login_name , login_password , phone_number , town_city , state_county_province , country | orders : order_id , customer_id , date_order_placed , order_details | invoices : invoice_number , order_id , invoice_date | accounts : account_id , customer_id , date_account_opened , account_name , other_account_details | product_categories : production_type_code , product_type_description , vat_rating | products : product_id , parent_product_id , production_type_code , unit_price , product_name , product_color , product_size | financial_transactions : transaction_id , account_id , invoice_number , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | order_items : order_item_id , order_id , product_id , product_quantity , other_order_item_details | invoice_line_items : order_item_id , invoice_number , product_id , product_title , product_quantity , product_price , derived_product_cost , derived_vat_payable , derived_total_cost | orders.customer_id = customers.customer_id | invoices.order_id = orders.order_id | accounts.customer_id = customers.customer_id | products.production_type_code = product_categories.production_type_code | financial_transactions.account_id = accounts.account_id | financial_transactions.invoice_number = invoices.invoice_number | order_items.order_id = orders.order_id | order_items.product_id = products.product_id | invoice_line_items.product_id = products.product_id | invoice_line_items.invoice_number = invoices.invoice_number | invoice_line_items.order_item_id = order_items.order_item_id | 

### Response:

select customers.customer_first_name , customers.customer_last_name from accounts join customers on accounts.customer_id = customers.customer_id where accounts.account_name = '900'