How many {connecting line} are to/by {Glasgow Subway} ?
Glasgow Subway contains how many connecting lines?
How many connecting lines go to Glasgow Subway?
SELECT ( COUNT ( ?a ) AS ?h ) { ?a property:connecting_line resource:Glasgow_Subway }
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/P81> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q506290 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P81 wd:Q506290 }
0