How many {speaker} are to/by {Nicolas Sarkozy} ?
Tell me about speaker Nicolas Sarkozy.
Who is the speaker Nicolas Sarkozy?
SELECT ( COUNT ( ?k ) AS ?j ) { ?k property:speaker resource:Nicolas_Sarkozy }
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/P823> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q329 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P823 wd:Q329 }
1