How many {phase of matter} are to/by {gas} ?
Gas What are the types?
What types of gas are there?
SELECT ( COUNT ( ?d ) AS ?m ) { ?d property:phase_of_matter resource:gas }
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/P515> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q11432 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P515 wd:Q11432 }
0