How many {connects with} are for {Trans-Siberian railway} ?
What is the number of connects with the Trans-Siberian railway?
How many connects with the Trans-Siberian railway are there?
SELECT ( COUNT ( ?h ) AS ?f ) { resource:Trans-Siberian_railway property:connects_with ?h }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q58767> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2789> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q58767 wdt:P2789 ?obj }
27