How many {industry} are to/by {textile manufacturing} ?
There are how many textile manufacturing industries?
How many industries are textile manufacturing?
SELECT ( COUNT ( ?r ) AS ?u ) { ?r property:industry resource:textile_manufacturing }
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/P452> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1505660 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P452 wd:Q1505660 }
27