How many {airline hub} are to/by {Beijing Capital International Airport} ?
Beijing Capital Intl Airport is by how many airline hubs?
How many airline hubs are by Beijing Capital International Airport?
SELECT ( COUNT ( ?e ) AS ?m ) { ?e property:airline_hub resource:Beijing_Capital_International_Airport }
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/P113> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q32190 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P113 wd:Q32190 }
8