What is {partner city} of {Nice}, that has {inhabitants} is {315196} ?
What is the associate city of Nice that has 315196 inhabitants?
What is the partner city of Nice that has 315196 inhabitants?
SELECT ?y WHERE { FILTER ( ?j = 315196 ) . resource:Nice property:twinned_administrative_body ?y . ?y property:population ?j }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33959> . ?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/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <315196> . }
SELECT ?answer WHERE { wd:Q33959 wdt:P190 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '315196'))}
Thessaloniki