query: #Based on a query producing a map of every railway station presently connected directly or indirectly to St Pancras on Wikidata by James Heald
  #defaultView:Map{"hide":["?cds","?line","?layer"]}
  SELECT ?station ?stationLabel ?cds ?line (CEIL(?depth/10)*10 as ?layer) {
  {SELECT * {
    SERVICE gas:service {
         gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" ; gas:in wd:Q1990205 ; gas:out ?station ; gas:out1 ?depth ; gas:out2 ?pred .
         gas:program gas:linkType wdt:P197 . }
    FILTER(?station != wd:Q1990205)
                        ?station wdt:P625 ?cds.
                        BIND(IF(xsd:double(?depth/10) = xsd:integer(?depth/10),?cds,"") as ?coords)
    ?pred p:P625/psv:P625/wikibase:geoLatitude ?lat1 ; p:P625/psv:P625/wikibase:geoLongitude ?lon1 .
    ?station p:P625/psv:P625/wikibase:geoLatitude ?lat2 ; p:P625/psv:P625/wikibase:geoLongitude ?lon2 .
    BIND(CONCAT('LINESTRING(', STR(?lon1), ' ', STR(?lat1), ',', STR(?lon2), ' ', STR(?lat2), ')') AS ?str) . BIND(STRDT(?str, geo:wktLiteral) AS ?line)}
   
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  }