How many {defendant} are to/by {Donald Trump} ?
Which is the number of people that Donald Trump was a defendant of?
Donald Trump was the defendant of how many?
SELECT ( COUNT ( ?i ) AS ?e ) { ?i property:defendant resource:Donald_Trump }
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/P1591> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q22686 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1591 wd:Q22686 }
8