What is {died in} of {Pōmare II}, that has {Wikivoyage banner} is {Moorea banner.jpg} ?
"Who kicked the bucket within the the year of Pomare II, that features a Wikivoyage pennant and a Moorea banner.jpg ?"
"Who died in the the year of Pomare II, that has a Wikivoyage banner and a Moorea banner.jpg ?"
SELECT ?c WHERE { FILTER ( CONTAINS ( ?x , 'Moorea banner.jpg' ) ) . resource:Pōmare_II property:place_of_death ?c . ?c property:page_banner ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q887744> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P20>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P948> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <Moorea banner.jpg> . }
SELECT ?answer WHERE { wd:Q887744 wdt:P20 ?answer . ?answer wdt:P948 ?x FILTER(contains(?x , 'Moorea banner.jpg'))}