Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.
return performances  ;return attendees of #1 ;return the  number of  #2 for each #1 ;return #1 where #3 is  more than  2000 ;return #1 where #3 is  less than  1000 ;return the  locations of #4 ;return the  locations of #5 ;return the  locations in both #6 and #7
['select', 'project', 'group', 'comparative', 'comparative', 'project', 'project', 'intersection']