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

Convert text to sql: How many people in total can stay in the modern rooms of this inn? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select sum ( _ ) from _ where _ | select sum ( maxoccupancy ) from rooms where decor = 'modern'
### Instruction:

Convert text to sql: What kind of decor has the least number of reservations? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select rooms.decor from reservations join rooms on reservations.room = rooms.roomid group by rooms.decor order by count ( rooms.decor ) asc limit 1
### Instruction:

Convert text to sql: What is the least popular kind of decor? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select rooms.decor from reservations join rooms on reservations.room = rooms.roomid group by rooms.decor order by count ( rooms.decor ) asc limit 1
### Instruction:

Convert text to sql: List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ + _ | select count ( * ) from reservations join rooms on reservations.room = rooms.roomid where rooms.maxoccupancy = reservations.adults + reservations.kids
### Instruction:

Convert text to sql: How many times the number of adults and kids staying in a room reached the maximum capacity of the room? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ + _ | select count ( * ) from reservations join rooms on reservations.room = rooms.roomid where rooms.maxoccupancy = reservations.adults + reservations.kids
### Instruction:

Convert text to sql: Find the first and last names of people who payed more than the rooms' base prices. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ - _ | select reservations.firstname , reservations.lastname from reservations join rooms on reservations.room = rooms.roomid where reservations.rate - rooms.baseprice > 0
### Instruction:

Convert text to sql: What are the first and last names of people who payed more than the rooms' base prices? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ - _ | select reservations.firstname , reservations.lastname from reservations join rooms on reservations.room = rooms.roomid where reservations.rate - rooms.baseprice > 0
### Instruction:

Convert text to sql: How many rooms are there? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

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

Convert text to sql: What is the total number of rooms available in this inn? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

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

Convert text to sql: Find the number of rooms with a king bed. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from rooms where bedtype = 'King'
### Instruction:

Convert text to sql: How many rooms have a king bed? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from rooms where bedtype = 'King'
### Instruction:

Convert text to sql: Find the number of rooms for each bed type. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ group by _ | select bedtype , count ( * ) from rooms group by bedtype
### Instruction:

Convert text to sql: What are the number of rooms for each bed type? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ group by _ | select bedtype , count ( * ) from rooms group by bedtype
### Instruction:

Convert text to sql: Find the name of the room with the maximum occupancy. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomname from rooms order by maxoccupancy desc limit 1
### Instruction:

Convert text to sql: What is the name of the room that can accommodate the most people? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomname from rooms order by maxoccupancy desc limit 1
### Instruction:

Convert text to sql: Find the id and name of the most expensive base price room. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomid , roomname from rooms order by baseprice desc limit 1
### Instruction:

Convert text to sql: Which room has the highest base price? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomid , roomname from rooms order by baseprice desc limit 1
### Instruction:

Convert text to sql: List the type of bed and name of all traditional rooms. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ | select roomname , bedtype from rooms where decor = 'traditional'
### Instruction:

Convert text to sql: What are the bed type and name of all the rooms with traditional decor? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ | select roomname , bedtype from rooms where decor = 'traditional'
### Instruction:

Convert text to sql: Find the number of rooms with king bed for each decor type. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ where _ group by _ | select decor , count ( * ) from rooms where bedtype = 'King' group by decor
### Instruction:

Convert text to sql: How many rooms have king beds? Report the number for each decor type. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ where _ group by _ | select decor , count ( * ) from rooms where bedtype = 'King' group by decor
### Instruction:

Convert text to sql: Find the average and minimum price of the rooms in different decor. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , avg ( _ ) , min ( _ ) from _ group by _ | select decor , avg ( baseprice ) , min ( baseprice ) from rooms group by decor
### Instruction:

Convert text to sql: What is the average minimum and price of the rooms for each different decor. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , avg ( _ ) , min ( _ ) from _ group by _ | select decor , avg ( baseprice ) , min ( baseprice ) from rooms group by decor
### Instruction:

Convert text to sql: List the name of all rooms sorted by their prices. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ asc | select roomname from rooms order by baseprice asc
### Instruction:

Convert text to sql: Sort all the rooms according to the price. Just report the room names. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ asc | select roomname from rooms order by baseprice asc
### Instruction:

Convert text to sql: Find the number of rooms with price higher than 120 for different decor. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ where _ group by _ | select decor , count ( * ) from rooms where baseprice > 120 group by decor
### Instruction:

Convert text to sql: How many rooms cost more than 120, for each different decor? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) from _ where _ group by _ | select decor , count ( * ) from rooms where baseprice > 120 group by decor
### Instruction:

Convert text to sql: For each bed type, find the average room price. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , avg ( _ ) from _ group by _ | select bedtype , avg ( baseprice ) from rooms group by bedtype
### Instruction:

Convert text to sql: What is the average base price of rooms, for each bed type? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , avg ( _ ) from _ group by _ | select bedtype , avg ( baseprice ) from rooms group by bedtype
### Instruction:

Convert text to sql: List the name of rooms with king or queen bed. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ | select roomname from rooms where bedtype = 'King' or bedtype = 'Queen'
### Instruction:

Convert text to sql: What are the names of rooms that have either king or queen bed? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ | select roomname from rooms where bedtype = 'King' or bedtype = 'Queen'
### Instruction:

Convert text to sql: How many different types of beds are there? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct bedtype ) from rooms
### Instruction:

Convert text to sql: Find the number of distinct bed types available in this inn. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct bedtype ) from rooms
### Instruction:

Convert text to sql: Find the name and id of the top 3 expensive rooms. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomid , roomname from rooms order by baseprice desc limit 3
### Instruction:

Convert text to sql: What are the name and id of the three highest priced rooms? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ order by _ desc limit _ | select roomid , roomname from rooms order by baseprice desc limit 3
### Instruction:

Convert text to sql: Find the name of rooms whose price is higher than the average price. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select roomname from rooms where baseprice > ( select avg ( baseprice ) from rooms )
### Instruction:

Convert text to sql: What are the name of rooms that cost more than the average. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select roomname from rooms where baseprice > ( select avg ( baseprice ) from rooms )
### Instruction:

Convert text to sql: Find the number of rooms that do not have any reservation. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ not in ( select distinct _ from _ ) | select count ( * ) from rooms where roomid not in ( select distinct room from reservations )
### Instruction:

Convert text to sql: How many rooms have not had any reservation yet? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select count ( _ ) from _ where _ not in ( select distinct _ from _ ) | select count ( * ) from rooms where roomid not in ( select distinct room from reservations )
### Instruction:

Convert text to sql: Return the name and number of reservations made for each of the rooms. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) , _ from _ group by _ | select rooms.roomname , count ( * ) , reservations.room from reservations join rooms on reservations.room = rooms.roomid group by reservations.room
### Instruction:

Convert text to sql: For each room, find its name and the number of times reservations were made for it. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ , count ( _ ) , _ from _ group by _ | select rooms.roomname , count ( * ) , reservations.room from reservations join rooms on reservations.room = rooms.roomid group by reservations.room
### Instruction:

Convert text to sql: Find the names of rooms that have been reserved for more than 60 times. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select rooms.roomname from reservations join rooms on reservations.room = rooms.roomid group by reservations.room having count ( * ) > 60
### Instruction:

Convert text to sql: What are the names of rooms whose reservation frequency exceeds 60 times? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select rooms.roomname from reservations join rooms on reservations.room = rooms.roomid group by reservations.room having count ( * ) > 60
### Instruction:

Convert text to sql: Find the name of rooms whose base price is between 120 and 150. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ between _ and _ | select roomname from rooms where baseprice between 120 and 150
### Instruction:

Convert text to sql: Which rooms cost between 120 and 150? Give me the room names. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ between _ and _ | select roomname from rooms where baseprice between 120 and 150
### Instruction:

Convert text to sql: Find the name of rooms booked by some customers whose first name contains ROY. | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ like _ | select rooms.roomname from reservations join rooms on reservations.room = rooms.roomid where firstname like '%ROY%'
### Instruction:

Convert text to sql: What are the name of rooms booked by customers whose first name has "ROY" in part? | rooms : roomid , roomname , beds , bedtype , maxoccupancy , baseprice , decor | reservations : code , room , checkin , checkout , rate , lastname , firstname , adults , kids | reservations.room = rooms.roomid | 

### Response:

select _ from _ where _ like _ | select rooms.roomname from reservations join rooms on reservations.room = rooms.roomid where firstname like '%ROY%'
### Instruction:

Convert text to sql: what are the details of the cmi masters that have the cross reference code 'Tax'? | customer_master_index : master_customer_id , cmi_details | cmi_cross_references : cmi_cross_ref_id , master_customer_id , source_system_code | council_tax : council_tax_id , cmi_cross_ref_id | business_rates : business_rates_id , cmi_cross_ref_id | benefits_overpayments : council_tax_id , cmi_cross_ref_id | parking_fines : council_tax_id , cmi_cross_ref_id | rent_arrears : council_tax_id , cmi_cross_ref_id | electoral_register : electoral_register_id , cmi_cross_ref_id | cmi_cross_references.master_customer_id = customer_master_index.master_customer_id | council_tax.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | business_rates.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | benefits_overpayments.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | parking_fines.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | rent_arrears.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | electoral_register.cmi_cross_ref_id = cmi_cross_references.cmi_cross_ref_id | 

### Response:

select _ from _ where _ | select customer_master_index.cmi_details from customer_master_index join cmi_cross_references on customer_master_index.master_customer_id = cmi_cross_references.master_customer_id where cmi_cross_references.source_system_code = 'Tax'