How many {head of government} are for {Moldova} ?
Moldova's leading government figure is whom?
What is the leading government figure for Moldova?
SELECT ( COUNT ( ?i ) AS ?e ) { resource:Moldova property:head_of_government ?i }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q217> .
?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:Q217 wdt:P6 ?obj }
1