SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/capital> <http://dbpedia.org/resource/Jamestown,_Virginia> . ?uri <http://dbpedia.org/property/allegiance> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Which office holder owes its allegiance to a state whose capital town is Jamestown, Virginia?
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Office_Holder . ?q property:capital resource:Jamestown,_Virginia . ?w property:allegiance ?q }
James Madison
The office holder whose state that owes his allegiance has Jamestown, Virginia as a capital is [James Madison].
The incubator, whose capital is Jamestown, Virginia, owes its loyalty to [James Madison].