How many {source of energy} are for {automobile} ?
Which is the number of sources of energy that are used in automobiles?
How many sources of energy are used in automobiles?
SELECT ( COUNT ( ?o ) AS ?y ) { resource:motor_car property:source_of_energy ?o }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1420> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P618> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q1420 wdt:P618 ?obj }
7