Database: art_1
Question: What is the id of every painting created before the oldest painting in gallery 240?
SQL:
SELECT paintingID FROM paintings WHERE YEAR  <   (SELECT min(YEAR) FROM paintings WHERE LOCATION  =  'Gallery 240')