What is {twin town} of {Port Vila}, that has {license plate code} is {沪A} ?
What is the twin town of Port Vila, with the license plate code 沪A?
What is the twin town of Port Vila, with the license plate code 沪A?
SELECT ?e WHERE { FILTER ( CONTAINS ( ?a , '沪A' ) ) . ?e property:licence_plate_code ?a . resource:Port_Vila property:twinned_administrative_body ?e }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q37806> . ?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/P395> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <沪A> . }
SELECT ?answer WHERE { wd:Q37806 wdt:P190 ?answer . ?answer wdt:P395 ?x FILTER(contains(?x , '沪A'))}