What is the {history of a city} for {history of topic} of {Montevideo}
Give me the history of Montevideo.
What is the history of Montevideo?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:history_of_a_city . resource:Montevideo property:history_of_topic ?o }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1335> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2184> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q28747937> } 
 select distinct ?obj where { wd:Q1335 wdt:P2184 ?obj . ?obj wdt:P31 wd:Q28747937 } 