Task: Text to Code
Input (English): Step 1: For each row in exhibition table, find the corresponding rows in exhibition_record table.
Step 2: find Theme of the results of step 1 whose Attendance greater than 100.
Step 3: find Theme of the results of step 1 whose Attendance less than 500.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T1.Theme FROM exhibition AS T1 JOIN exhibition_record AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Attendance > 100 INTERSECT SELECT T1.Theme FROM exhibition AS T1 JOIN exhibition_record AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Attendance < 500