"Who died in the the year of Pomare II, that has a Wikivoyage banner and a Moorea banner.jpg ?"
SELECT ?answer WHERE { wd:Q887744 wdt:P20 ?answer . ?answer wdt:P948 ?x FILTER(contains(?x,'Moorea banner.jpg'))}
pōmare ii: Q887744