What is {twin town} of {Fes}, that has {Wikivoyage banner} is {Burkina Faso Wikivoyage banner.jpg} ?
What is in { Burkina Faso } the { twin town to Fes }?
What is the {twin town to Fes} that is in {Burkina Faso}?
SELECT ?t WHERE { resource:Fez property:twinned_administrative_body ?t . ?t property:page_banner ?m . FILTER ( CONTAINS ( ?m , 'Burkina Faso Wikivoyage banner.jpg' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80985> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190>. ?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> <Burkina Faso Wikivoyage banner.jpg> . }
SELECT ?answer WHERE { wd:Q80985 wdt:P190 ?answer . ?answer wdt:P948 ?x FILTER(contains(?x , 'Burkina Faso Wikivoyage banner.jpg'))}