How many {religious order} are to/by {Knights Templar} ?
There are how many religious orders in The Knights Templar?
The Knights Templar has how many religious orders?
SELECT ( COUNT ( ?r ) AS ?f ) { ?r property:religious_order resource:Knights_Templar }
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/P611> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q41300 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P611 wd:Q41300 }
7