How many {head of government} are for {German Democratic Republic} ?
For the German Democratic Republic, how many people are head of the government?
How many people are head of the government for {German Democratic Republic} ?
SELECT ( COUNT ( ?v ) AS ?m ) { resource:East_Germany property:head_of_government ?v }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16957> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q16957 wdt:P6 ?obj }
5