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

Convert text to sql: What are all locations of train stations? | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select distinct _ from _ | select distinct location from station
### Instruction:

Convert text to sql: Show the names and total passengers for all train stations not in London. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ where _ | select name , total_passengers from station where location != 'London'
### Instruction:

Convert text to sql: Show the names and main services for train stations that have the top three total number of passengers. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ order by _ desc limit _ | select name , main_services from station order by total_passengers desc limit 3
### Instruction:

Convert text to sql: What is the average and maximum number of total passengers for train stations in London or Glasgow? | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select avg ( _ ) , max ( _ ) from _ where _ | select avg ( total_passengers ) , max ( total_passengers ) from station where location = 'London' or location = 'Glasgow'
### Instruction:

Convert text to sql: Show all locations and the total number of platforms and passengers for all train stations in each location. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ , sum ( _ ) , sum ( _ ) from _ group by _ | select location , sum ( number_of_platforms ) , sum ( total_passengers ) from station group by location
### Instruction:

Convert text to sql: Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select distinct _ from _ where _ | select distinct location from station where number_of_platforms >= 15 and total_passengers > 25
### Instruction:

Convert text to sql: Show all locations which don't have a train station with at least 15 platforms. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ except select _ from _ where _ | select location from station except select location from station where number_of_platforms >= 15
### Instruction:

Convert text to sql: Show the location with most number of train stations. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

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

Convert text to sql: Show the name, time, and service for all trains. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ | select name , time , service from train
### Instruction:

Convert text to sql: Show the number of trains | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

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

Convert text to sql: Show the name and service for all trains in order by time. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ order by _ asc | select name , service from train order by time asc
### Instruction:

Convert text to sql: Show the station name and number of trains in each station. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select station.name , count ( * ) from train_station join station on train_station.station_id = station.station_id group by train_station.station_id
### Instruction:

Convert text to sql: show the train name and station name for each train. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ | select station.name , train.name from train_station join station on train_station.station_id = station.station_id join train on train.train_id = train_station.train_id
### Instruction:

Convert text to sql: Show all train names and times in stations in London in descending order by train time. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ where _ order by _ desc | select train.name , train.time from train_station join station on train_station.station_id = station.station_id join train on train.train_id = train_station.train_id where station.location = 'London' order by train.time desc
### Instruction:

Convert text to sql: Show the station name with greatest number of trains. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select station.name from train_station join station on train_station.station_id = station.station_id group by train_station.station_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the station name with at least two trains. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select station.name from train_station join station on train_station.station_id = station.station_id group by train_station.station_id having count ( * ) >= 2
### Instruction:

Convert text to sql: Show all locations with only 1 station. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ group by _ having count ( _ ) = _ | select location from station group by location having count ( * ) = 1
### Instruction:

Convert text to sql: Show station names without any trains. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ where _ not in ( select _ from _ ) | select name from station where station_id not in ( select station_id from train_station )
### Instruction:

Convert text to sql: What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains? | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select station.name from train_station join station on train_station.station_id = station.station_id join train on train.train_id = train_station.train_id where train.name = 'Ananthapuri Express' intersect select station.name from train_station join station on train_station.station_id = station.station_id join train on train.train_id = train_station.train_id where train.name = 'Guruvayur Express'
### Instruction:

Convert text to sql: Find the names of the trains that do not pass any station located in London. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ where _ not in ( select _ from _ where _ ) | select train.name from train_station join train on train_station.train_id = train.train_id where train_station.station_id not in ( select station.station_id from train_station join station on train_station.station_id = station.station_id where station.location = 'London' )
### Instruction:

Convert text to sql: List the names and locations of all stations ordered by their yearly entry exit and interchange amounts. | station : station_id , name , annual_entry_exit , annual_interchanges , total_passengers , location , main_services , number_of_platforms | train : train_id , name , time , service | train_station : train_id , station_id | train_station.station_id = station.station_id | train_station.train_id = train.train_id | 

### Response:

select _ from _ order by _ asc , _ | select name , location from station order by annual_entry_exit asc , annual_interchanges
### Instruction:

Convert text to sql: List all vehicle id | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ | select vehicle_id from vehicles
### Instruction:

Convert text to sql: What are the ids of all vehicles? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ | select vehicle_id from vehicles
### Instruction:

Convert text to sql: How many vehicle in total? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

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

Convert text to sql: How many vehicles exist? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

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

Convert text to sql: Show the detail of vehicle with id 1. | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ where _ | select vehicle_details from vehicles where vehicle_id = 1
### Instruction:

Convert text to sql: What are the details of the car with id 1? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ where _ | select vehicle_details from vehicles where vehicle_id = 1
### Instruction:

Convert text to sql: List the first name middle name and last name of all staff. | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ | select first_name , middle_name , last_name from staff
### Instruction:

Convert text to sql: What are the first, middle, and last names of all staff? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ | select first_name , middle_name , last_name from staff
### Instruction:

Convert text to sql: What is the birthday of the staff member with first name as Janessa and last name as Sawayn? | addresses : address_id , line_1_number_building , city , zip_postcode , state_province_county , country | staff : staff_id , staff_address_id , nickname , first_name , middle_name , last_name , date_of_birth , date_joined_staff , date_left_staff | vehicles : vehicle_id , vehicle_details | customers : customer_id , customer_address_id , customer_status_code , date_became_customer , date_of_birth , first_name , last_name , amount_outstanding , email_address , phone_number , cell_mobile_phone_number | customer_payments : customer_id , datetime_payment , payment_method_code , amount_payment | lessons : lesson_id , customer_id , lesson_status_code , staff_id , vehicle_id , lesson_date , lesson_time , price | staff.staff_address_id = addresses.address_id | customers.customer_address_id = addresses.address_id | customer_payments.customer_id = customers.customer_id | lessons.customer_id = customers.customer_id | lessons.staff_id = staff.staff_id | lessons.vehicle_id = vehicles.vehicle_id | 

### Response:

select _ from _ where _ | select date_of_birth from staff where first_name = 'Janessa' and last_name = 'Sawayn'