What is {twin cities} of {Basel}, that has {date of establishment} is {751-0-0} ?
What is the twin metropolis of Basel which has an establishment date of 751-0-0?
What is the twin city of Basel which has an establishment date of 751-0-0?
SELECT ?z WHERE { ?z property:inception ?a . FILTER ( CONTAINS ( ?a , '751-0-0' ) ) . resource:Basel property:twinned_administrative_body ?z }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q78> . ?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/P571> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <751-0-0> . }
SELECT ?answer WHERE { wd:Q78 wdt:P190 ?answer . ?answer wdt:P571 ?x FILTER(contains(?x , '751-0-0'))}