How many {reward program} are to/by {Qantas} ?
{Qantas} has how many reward programs?
How many reward programs are there in  {Qantas} ?
SELECT ( COUNT ( ?q ) AS ?v ) { ?q property:reward_program resource:Qantas }
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/P4446> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q32491 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P4446 wd:Q32491 }
10