Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.

### Instruction:

Convert text to sql: Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees. | member : member_id , name , nationality , role | performance : performance_id , date , host , location , attendance | member_attendance : member_id , performance_id , num_of_pieces | member_attendance.performance_id = performance.performance_id | member_attendance.member_id = member.member_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select location from performance where attendance > 2000 intersect select location from performance where attendance < 1000