query-7d8c9e4913988f8eb4cc0b71a20dee1b

rq turtle/ttl

Query with timeoutHello, could anyone help me work out this query ?(list the tunnels in the world by lenght)

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 ?tunnel ?tunnelLabel ?natureLabel ?longueur WHERE {
  ?tunnel (wdt:P31/wdt:P279*)  wd:Q44377.
  OPTIONAL { ?tunnel wdt:P2043 ?longueur. }
  OPTIONAL { ?tunnel wdt:P31 ?nature. }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
order by desc(?longueur)
LIMIT 150

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?longueur"):::projected v3("?nature") v2("?tunnel"):::projected a1((" ")) c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q44377"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P2043".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P31".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end