query-923e34c545ac7a156b5c664873377bea
TODO
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:BarChart
#Comparison of lengths of different metro systems
SELECT DISTINCT ?item ?itemLabel ?len WHERE {
?item wdt:P31 wd:Q15099348.
{ ?item wdt:P131 wd:Q278204 }
UNION { ?item wdt:P131 wd:Q238508 }
UNION { ?item wdt:P131 wd:Q1353 }
UNION { ?item wdt:P131 wd:Q200663 }
UNION { ?item wdt:P131 wd:Q207098 }
?item wdt:P2043 ?len
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?len"):::projected
c8(["wd:Q207098"]):::iri
c13(["en"]):::literal
c4(["wd:Q278204"]):::iri
c7(["wd:Q200663"]):::iri
c11(["bd:serviceParam"]):::iri
c6(["wd:Q1353"]):::iri
c5(["wd:Q238508"]):::iri
c2(["wd:Q15099348"]):::iri
v1 --"wdt:P31"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c8
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c7
end
union3r <== or ==> union3l
end
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c6
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c4
end
union0r <== or ==> union0l
end
v1 --"wdt:P2043"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end