CREATE TABLE journal_committee (journal_ID VARCHAR2, work_type VARCHAR2)
CREATE TABLE journal (sales NUMBER, journal_ID VARCHAR2)

What is the average sales of the journals that have an editor whose work type is 'Photo'?
SELECT AVG(T1.sales) FROM journal AS T1 JOIN journal_committee AS T2 ON T1.journal_ID = T2.journal_ID WHERE T2.work_type = 'Photo'
SELECT AVG("T1"."sales") FROM "journal" "T1" JOIN "journal_committee" "T2" ON "T1"."journal_ID" = "T2"."journal_ID" AND "T2"."work_type" = 'Photo'