How many {partnership with} are to/by {Google} ?
How many partnerships does Google have?
Google is in partnerships with how many
SELECT ( COUNT ( ?x ) AS ?k ) { ?x property:partnership_with resource:Google }
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/P2652> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q95 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P2652 wd:Q95 }
3