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

Convert text to sql: Show the names of editors of age either 24 or 25. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ where _ | select name from editor where age = 24 or age = 25
### Instruction:

Convert text to sql: What is the name of the youngest editor? | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ order by _ asc limit _ | select name from editor order by age asc limit 1
### Instruction:

Convert text to sql: What are the different ages of editors? Show each age along with the number of editors of that age. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select age , count ( * ) from editor group by age
### Instruction:

Convert text to sql: Please show the most common age of editors. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select age from editor group by age order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the distinct themes of journals. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select distinct _ from _ | select distinct theme from journal
### Instruction:

Convert text to sql: Show the names of editors and the theme of journals for which they serve on committees. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ | select editor.name , journal.theme from journal_committee join editor on journal_committee.editor_id = editor.editor_id join journal on journal_committee.journal_id = journal.journal_id
### Instruction:

Convert text to sql: For each journal_committee, find the editor name and the journal theme. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ | select editor.name , journal.theme from journal_committee join editor on journal_committee.editor_id = editor.editor_id join journal on journal_committee.journal_id = journal.journal_id
### Instruction:

Convert text to sql: Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ order by _ asc | select editor.name , editor.age , journal.theme from journal_committee join editor on journal_committee.editor_id = editor.editor_id join journal on journal_committee.journal_id = journal.journal_id order by journal.theme asc
### Instruction:

Convert text to sql: Show the names of editors that are on the committee of journals with sales bigger than 3000. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ where _ | select editor.name from journal_committee join editor on journal_committee.editor_id = editor.editor_id join journal on journal_committee.journal_id = journal.journal_id where journal.sales > 3000
### Instruction:

Convert text to sql: Show the id, name of each editor and the number of journal committees they are on. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select editor.editor_id , editor.name , count ( * ) from editor join journal_committee on editor.editor_id = journal_committee.editor_id group by editor.editor_id
### Instruction:

Convert text to sql: Show the names of editors that are on at least two journal committees. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select editor.name from editor join journal_committee on editor.editor_id = journal_committee.editor_id group by editor.name having count ( * ) >= 2
### Instruction:

Convert text to sql: List the names of editors that are not on any journal committee. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from editor where editor_id not in ( select editor_id from journal_committee )
### Instruction:

Convert text to sql: List the date, theme and sales of the journal which did not have any of the listed editors serving on committee. | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select _ from _ except select _ from _ | select date , theme , sales from journal except select journal.date , journal.theme , journal.sales from journal join journal_committee on journal.journal_id = journal_committee.journal_id
### Instruction:

Convert text to sql: What is the average sales of the journals that have an editor whose work type is 'Photo'? | journal : journal_id , date , theme , sales | editor : editor_id , name , age | journal_committee : editor_id , journal_id , work_type | journal_committee.journal_id = journal.journal_id | journal_committee.editor_id = editor.editor_id | 

### Response:

select avg ( _ ) from _ where _ | select avg ( journal.sales ) from journal join journal_committee on journal.journal_id = journal_committee.journal_id where journal_committee.work_type = 'Photo'
### Instruction:

Convert text to sql: How many accounts do we have? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

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

Convert text to sql: Count the number of accounts. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

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

Convert text to sql: Show ids, customer ids, names for all accounts. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ | select account_id , customer_id , account_name from accounts
### Instruction:

Convert text to sql: What are the account ids, customer ids, and account names for all the accounts? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ | select account_id , customer_id , account_name from accounts
### Instruction:

Convert text to sql: Show other account details for account with name 338. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ where _ | select other_account_details from accounts where account_name = '338'
### Instruction:

Convert text to sql: What are the other account details for the account with the name 338? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ where _ | select other_account_details from accounts where account_name = '338'
### Instruction:

Convert text to sql: What is the first name, last name, and phone of the customer with account name 162? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ where _ | select customers.customer_first_name , customers.customer_last_name , customers.customer_phone from accounts join customers on accounts.customer_id = customers.customer_id where accounts.account_name = '162'
### Instruction:

Convert text to sql: Give the full name and phone of the customer who has the account name 162. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ where _ | select customers.customer_first_name , customers.customer_last_name , customers.customer_phone from accounts join customers on accounts.customer_id = customers.customer_id where accounts.account_name = '162'
### Instruction:

Convert text to sql: How many accounts does the customer with first name Art and last name Turcotte have? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Art' and customers.customer_last_name = 'Turcotte'
### Instruction:

Convert text to sql: Return the number of accounts that the customer with the first name Art and last name Turcotte has. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from accounts join customers on accounts.customer_id = customers.customer_id where customers.customer_first_name = 'Art' and customers.customer_last_name = 'Turcotte'
### Instruction:

Convert text to sql: Show all customer ids and the number of accounts for each customer. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select customer_id , count ( * ) from accounts group by customer_id
### Instruction:

Convert text to sql: How many accounts are there for each customer id? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select customer_id , count ( * ) from accounts group by customer_id
### Instruction:

Convert text to sql: Show the customer id and number of accounts with most accounts. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc limit _ | select customer_id , count ( * ) from accounts group by customer_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the customer id of the customer with the most accounts, and how many accounts does this person have? | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ , count ( _ ) from _ group by _ order by count ( _ ) desc limit _ | select customer_id , count ( * ) from accounts group by customer_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the customer first, last name and id with least number of accounts. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select customers.customer_first_name , customers.customer_last_name , accounts.customer_id from accounts join customers on accounts.customer_id = customers.customer_id group by accounts.customer_id order by count ( * ) asc limit 1
### Instruction:

Convert text to sql: Give the full name and customer id of the customer with the fewest accounts. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select customers.customer_first_name , customers.customer_last_name , accounts.customer_id from accounts join customers on accounts.customer_id = customers.customer_id group by accounts.customer_id order by count ( * ) asc limit 1
### Instruction:

Convert text to sql: Show the number of all customers without an account. | accounts : account_id , customer_id , account_name , other_account_details | customers : customer_id , customer_first_name , customer_last_name , customer_address , customer_phone , customer_email , other_customer_details | customers_cards : card_id , customer_id , card_type_code , card_number , date_valid_from , date_valid_to , other_card_details | financial_transactions : transaction_id , previous_transaction_id , account_id , card_id , transaction_type , transaction_date , transaction_amount , transaction_comment , other_transaction_details | financial_transactions.account_id = accounts.account_id | financial_transactions.card_id = customers_cards.card_id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from customers where customer_id not in ( select customer_id from accounts )