query: embed.html## compare lat/long of Parliament and Wikidata constituency records
  PREFIX parliament:<https://id.parliament.uk/schema/>
  
  SELECT DISTINCT ?constituency ?parlcoord ?item ?itemLabel ?wdcoord ?dist ?line WHERE {
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
    SERVICE <https://api.parliament.uk/sparql> 
      { ?constituency parliament:constituencyGroupHasConstituencyArea ?area .
        ?area parliament:latitude ?lat . ?area parliament:longitude ?long . 
        bind(SUBSTR(str(?constituency),26) as ?parlid) . }
    BIND(concat("Point(",str(?long)," ",str(?lat),")"^^geo:wktLiteral) as ?parlcoord) 
    # get constituencies from Parliament with coordinates
    ?item wdt:P6213 ?parlid . ?item wdt:P31 wd:Q27971968 . ?item wdt:P625 ?wdcoord . 
    # now get them from Wikidata with coordinates
    BIND(geof:distance(?parlcoord, ?wdcoord) as ?dist) . filter (?dist >= 10)
    # now find out the distance (in kms)
    ?item p:P625 ?statementnode. ?statementnode psv:P625 ?valuenode.
    ?valuenode wikibase:geoLatitude ?wikilat . ?valuenode wikibase:geoLongitude ?wikilon.
    BIND(CONCAT('LINESTRING (', STR(?wikilon), ' ', STR(?wikilat), ',', STR(?long), ' ', STR(?lat), ')') AS ?str) .
    BIND(STRDT(?str, geo:wktLiteral) AS ?line) 
  }
  #defaultView:Map