How many churches had weddings in 2015?
SELECT count ( * )  FROM church AS T1 JOIN wedding AS T2 ON T1.church_id   =   T2.church_id WHERE T2.year   =   2015
count of churches = COUNT(*); had weddings refers to JOIN on church_id; in 2015 refers to T2.year = 2015;