How many {position held} are to/by {military officer} ?
A military office hold what number of positions?
How many positions are held by a military officer?
SELECT ( COUNT ( ?t ) AS ?u ) { ?t property:position_held resource:military_officer }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q189290 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P39 wd:Q189290 }
179