### 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 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 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 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 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 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 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 rooms.roomname from reservations join rooms on reservations.room = rooms.roomid group by reservations.room having count ( * ) > 60