What is {partner town} of {has capital} of {Almohad} ?
What town's companion capital is Almohad?
What town's partner capital is Almohad?
SELECT ?m WHERE { ?i property:twinned_administrative_body ?m . resource:Almohad_Caliphate property:capital ?i }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q199688> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q199688 wdt:P36 ?X . ?X wdt:P190 ?answer}
Berlin Rome Rostov-on-Don Buenos Aires Barcelona Havana Ho Chi Minh City Rabat Guadalajara, Jalisco, México. Jerez de la Frontera Caltanissetta Iquique Columbus Kraków Tarija Angers Kansas City Baler Popayán Kansas City Cartagena Isla Cristina Tifariti New York City Paris Tashkent Tours Odessa Madrid Mecca Granada Timbuktu Marseille Ajaccio Clermont-Ferrand Sousse Sidi Bennour Bordeaux Durban Strasbourg Casablanca Miami Almería Elche Alicante Toulon Sfax Zarqa Bizerte Taza Jeddah