SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/property/allegiance> <http://dbpedia.org/resource/Union_(American_Civil_War)> . ?x <http://dbpedia.org/property/office> ?uri . }
Count the number of offices held by people who have their allegiances with the american civil war union?
SELECT DISTINCT COUNT ( ?o ) WHERE { ?d property:office ?o . . ?d property:allegiance resource:Union_(_American_Civil_War) }
216
There are [216] offices of the people whose allegiance is American Civil War Union.
26] offices are there of people whose allegory is the American Civil War.