query: SELECT DISTINCT ?item ?itemLabel ?siteLabel ?terrainLabel ?coord ?incept ?area ?inv (count(DISTINCT ?other) as ?inlinks) WHERE 
  {
    VALUES ?site {  
    wd:Q2463705 # Special Protection Area
    wd:Q1191622 # Special Area of Conservation
    wd:Q350723 # Country Park
    wd:Q422211 # Site of Special Scientific Interest
    wd:Q1367500 # Nature Conservation MPA
    wd:Q6974560 # National Nature Reserve
    wd:Q19683138 # Ramsar Site
    wd:Q3457526 # Local Nature Reserve
    wd:Q6978246 # National Scenic Area
    }
    ?item wdt:P131 wd:Q47134  .
  #  ?else wdt:P31 wd:Q15060255  . # Scottish Council Area
    ?item p:P1435 ?stat .          # heritage designation
    ?stat ps:P1435 ?site .
    OPTIONAL {?stat pq:P217 ?inv . }
    OPTIONAL {?item wdt:P706 ?terrain . }
    OPTIONAL {?item wdt:P625 ?coord . }
    OPTIONAL {?item wdt:P571 ?incept . }
    OPTIONAL {?item wdt:P2046 ?area . }
    OPTIONAL {?other ?predicate ?item . ?property wikibase:directClaim ?predicate .}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
  } group by ?item ?itemLabel ?siteLabel ?terrainLabel ?coord ?incept ?area ?inv order by ?itemLabel