How many {production company} are for {The Dark Knight} ?
The Dark Knight had how many production companies?
How many production companies are for The Dark Knight?
SELECT ( COUNT ( ?i ) AS ?e ) { resource:The_Dark_Knight property:production_company ?i }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q163872> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P272> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q163872 wdt:P272 ?obj }
4