What is {birth location} of {Alonso Pérez de Guzmán, 7th Duke of Medina Sidonia}, that has {inhabitants} is {67640} ?
Where was Alonso Pérez de Guzmán, seventh Duke of Medina Sidonia born that has 67640 inhabitants?
Where was Alonso Pérez de Guzmán, 7th Duke of Medina Sidonia born that has 67640 inhabitants?
SELECT ?s WHERE { ?s property:population ?g . FILTER ( CONTAINS ( ?g , '67640' ) ) . resource:Alonso_Pérez_de_Guzmán,_7th_Duke_of_Medina_Sidonia property:place_of_birth ?s }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q278954> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?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> <67640> . }
SELECT ?answer WHERE { wd:Q278954 wdt:P19 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '67640'))}