query-a2f62288f81f32eb67ee83fc0b409903

rq turtle/ttl

كم عدد الدول المجاورة لهذه الولاية الأمريكية How many states this US state borders How many states this US state borders S kolika státy sousedí tento stát USA How many states this US state borders Zahl der Staaten an die dieser US-Bundesstaat grenzt How many states this US state borders How many states this US state borders How many states this US state borders How many states this US state borders How many states this US state borders Combien d’États limitrophes à cet État des USA How many states this US state borders How many states this US state borders How many states this US state borders Quanti stati confinano questo stato americano How many states this US state borders 이 미국의 주는 얼마나 많은 경계를 접하고 있는지 찾아보기 How many states this US state borders How many states this US state borders How many states this US state borders Aan hoeveel staten grenst deze Amerikaanse staat How many states this US state borders How many states this US state borders How many states this US state borders How many states this US state borders How many states this US state borders Hur många delstater gränsar den här amerikanska delstaten till How many states this US state borders How many states this US state borders Зі скількома штатами межує цей штат США How many states this US state borders 美国边境线上有多少个州

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?state ?stateLabel ?borders
WHERE
{
  {
    SELECT ?state (COUNT(?otherState) as ?borders)
    WHERE
    {
    ?state wdt:P31 wd:Q35657 .
    ?otherState wdt:P47 ?state .
    ?otherState wdt:P31 wd:Q35657 .
    }
    GROUP BY ?state
  }
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" .
  }
}
ORDER BY DESC(?borders)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?borders"):::projected v3("?otherState") v2("?state"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c2(["wd:Q35657"]):::iri v2 --"wdt:P31"--> c2 v3 --"wdt:P47"--> v2 v3 --"wdt:P31"--> c2 bind1[/"count(?otherState)"/] v3 --o bind1 bind1 --as--o v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end