How many {chief executive officer} are for {Apple Inc.} ?
Which is the number of CEOs that Apple, Inc. has?
How many CEOs does Apple, Inc., have?
SELECT ( COUNT ( ?y ) AS ?w ) { resource:Apple property:chief_executive_officer ?y }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P169> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q312 wdt:P169 ?obj }
1