How many {political ideology} are to/by {socialism} ?
In Socialism, how many different political ideas are there?
How many different political ideas are in socialism?
SELECT ( COUNT ( ?x ) AS ?c ) { ?x property:political_ideology resource:Socialism }
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/P1142> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q7272 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1142 wd:Q7272 }
548