How many {record label} are to/by {20th Century Fox} ?
20th Century Fox owns how many record labels?
How many record labels are owned by {20th Century Fox} ?
SELECT ( COUNT ( ?b ) AS ?d ) { ?b property:record_label resource:20th_Century_Studios }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P264> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q434841 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P264 wd:Q434841 }
5