How many {sexual orientation} are to/by {heterosexuality} ?
Is heterosexuality a type of sexual orientation?
Heterosexuality is a type of sexual orientation?
SELECT ( COUNT ( ?g ) AS ?q ) { ?g property:sexual_orientation resource:heterosexuality }
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/P91> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1035954 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P91 wd:Q1035954 }
244