What is the {secular state} for {capital of} of {Montevideo}
What is Montevideo's secular state capital?
What is the capital of the secular state of Montevideo?
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:secular_state . resource:Montevideo property:capital_of ?g }
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/P1376> . ?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/Q859563> } 
 select distinct ?obj where { wd:Q1335 wdt:P1376 ?obj . ?obj wdt:P31 wd:Q859563 } 
Uruguay