select id from C.picture, Places A, Places B where sunset(image) and
 contains(A.name, tag) and A.location && B.location and B.name = 'Sacramento';