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

Convert text to sql: List the names and emails of customers who payed by Visa card. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ where _ | select customer_email , customer_name from customers where payment_method = 'Visa'
### Instruction:

Convert text to sql: Find the names and phone numbers of customers living in California state. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ where _ | select customers.customer_name , customers.customer_phone from customers join customer_addresses on customers.customer_id = customer_addresses.customer_id join addresses on customer_addresses.address_id = addresses.address_id where addresses.state_province_county = 'California'
### Instruction:

Convert text to sql: Find the states which do not have any employee in their record. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select state_province_county from addresses where address_id not in ( select employee_address_id from employees )
### Instruction:

Convert text to sql: List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ order by _ asc | select customer_name , customer_phone , customer_email from customers order by date_became_customer asc
### Instruction:

Convert text to sql: Find the name of the first 5 customers. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ order by _ asc limit _ | select customer_name from customers order by date_became_customer asc limit 5
### Instruction:

Convert text to sql: Find the payment method that is used most frequently. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

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

Convert text to sql: List the names of all routes in alphabetic order. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ order by _ asc | select route_name from delivery_routes order by route_name asc
### Instruction:

Convert text to sql: Find the name of route that has the highest number of deliveries. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select delivery_routes.route_name from delivery_routes join delivery_route_locations on delivery_routes.route_id = delivery_route_locations.route_id group by delivery_routes.route_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: List the state names and the number of customers living in each state. | products : product_id , product_name , product_price , product_description | addresses : address_id , address_details , city , zip_postcode , state_province_county , country | customers : customer_id , payment_method , customer_name , customer_phone , customer_email , date_became_customer | regular_orders : regular_order_id , distributer_id | regular_order_products : regular_order_id , product_id | actual_orders : actual_order_id , order_status_code , regular_order_id , actual_order_date | actual_order_products : actual_order_id , product_id | customer_addresses : customer_id , address_id , date_from , address_type , date_to | delivery_routes : route_id , route_name , other_route_details | delivery_route_locations : location_code , route_id , location_address_id , location_name | trucks : truck_id , truck_licence_number , truck_details | employees : employee_id , employee_address_id , employee_name , employee_phone | order_deliveries : location_code , actual_order_id , delivery_status_code , driver_employee_id , truck_id , delivery_date | regular_orders.distributer_id = customers.customer_id | regular_order_products.regular_order_id = regular_orders.regular_order_id | regular_order_products.product_id = products.product_id | actual_orders.regular_order_id = regular_orders.regular_order_id | actual_order_products.actual_order_id = actual_orders.actual_order_id | actual_order_products.product_id = products.product_id | customer_addresses.address_id = addresses.address_id | customer_addresses.customer_id = customers.customer_id | delivery_route_locations.route_id = delivery_routes.route_id | delivery_route_locations.location_address_id = addresses.address_id | employees.employee_address_id = addresses.address_id | order_deliveries.driver_employee_id = employees.employee_id | order_deliveries.location_code = delivery_route_locations.location_code | order_deliveries.actual_order_id = actual_orders.actual_order_id | order_deliveries.truck_id = trucks.truck_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select addresses.state_province_county , count ( * ) from customer_addresses join addresses on customer_addresses.address_id = addresses.address_id group by addresses.state_province_county
### Instruction:

Convert text to sql: How many authors are there? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: Count the number of authors. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: How many institutions are there? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: Count the number of institutions. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: How many papers are published in total? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: Count the number of total papers. | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

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

Convert text to sql: What are the titles of papers published by "Jeremy Gibbons"? | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select _ from _ where _ | select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Jeremy' and authors.lname = 'Gibbons'
### Instruction:

Convert text to sql: Find the titles of all the papers written by "Jeremy Gibbons" | inst : instid , name , country | authors : authid , lname , fname | papers : paperid , title | authorship : authid , instid , paperid , authorder | authorship.paperid = papers.paperid | authorship.instid = inst.instid | authorship.authid = authors.authid | 

### Response:

select _ from _ where _ | select papers.title from authors join authorship on authors.authid = authorship.authid join papers on authorship.paperid = papers.paperid where authors.fname = 'Jeremy' and authors.lname = 'Gibbons'