What is {county seat of} of {Hamilton}, that has {inhabitants} is {51000.0} ?
What {province situate in}{Hamilton} encompasses a {populace} of {51,000.0}?
What {county seat in}{Hamilton} has a {population} of {51,000.0}?
SELECT ?g WHERE { FILTER ( CONTAINS ( ?u , '51000.0' ) ) . ?g property:population ?u . resource:Hamilton property:capital_of ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q30985> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1376>. ?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> <51000.0> . }
SELECT ?answer WHERE { wd:Q30985 wdt:P1376 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x , '51000.0'))}