How many {judge} are to/by {Ruth Bader Ginsburg} ?
Ruth Bader Ginsburg has how many judges by her?
How many judges are by Ruth Bader Ginsburg?
SELECT ( COUNT ( ?u ) AS ?l ) { ?u property:judge resource:Ruth_Bader_Ginsburg }
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/P1594> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q11116 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1594 wd:Q11116 }
19