What is {continent} of {Constantinople}, that has {Wikivoyage banner} is {Ladakh banner.jpg} ?
On what continent is Constantinople with the banner name "Ladakh banner.jpg"?
On what continent is Constantinople with the banner name "Ladakh banner.jpg"?
SELECT ?h WHERE { resource:Constantinople property:continent ?h . ?h property:page_banner ?l . FILTER ( CONTAINS ( ?l , 'Ladakh banner.jpg' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16869> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P30>. ?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> <Ladakh banner.jpg> . }
SELECT ?answer WHERE { wd:Q16869 wdt:P30 ?answer . ?answer wdt:P948 ?x FILTER(contains(?x , 'Ladakh banner.jpg'))}