How many {educated at} are to/by {law school} ?
Give me the number of individuals law schools educate.
How many individuals do law schools educate?
SELECT ( COUNT ( ?a ) AS ?z ) { ?a property:educated_at resource:law_school }
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/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1321960 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P69 wd:Q1321960 }
6