What is the {capitol building} for {architect} of {Thomas Jefferson}
Which is the capital building for which the architect was Thomas Jefferson?
Which is the capitol building that Thomas Jefferson was the architect for?
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:capitol_building . ?l property:architect resource:Thomas_Jefferson }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P84> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q11812> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3284499> } 
 select distinct ?sbj where { ?sbj wdt:P84 wd:Q11812 . ?sbj wdt:P31 wd:Q3284499 } 
Virginia State Capitol