query-2d0dcfe6b2737872c39082cba04c678f
rq turtle/ttl
title:all supercomupers in the world
SELECT ?item ?itemLabel ?countryLabel (SAMPLE(?creators) AS ?creator) (MAX(?perfs) AS ?perf)
(MAX(?procs) AS ?proc) (MAX(?heats) AS ?heat) ?top500 (SAMPLE(?oss) AS ?os) ?created (MIN(?ranks) AS ?rank)
WHERE
{
?item wdt:P31/wdt:P279* wd:Q121117.
OPTIONAL {?item wdt:P17|wdt:P495 ?country.}
OPTIONAL {?item wdt:P176 ?creators.}
OPTIONAL {?item wdt:P7256 ?perfs.}
OPTIONAL {?item wdt:P2791 ?heats.}
OPTIONAL {?item wdt:P7307 ?top500.}
OPTIONAL {?item wdt:P306 ?oss.}
OPTIONAL {?item wdt:P1141 ?procs.}
OPTIONAL {?item wdt:P571|wdt:P729 ?created.}
OPTIONAL {?item wdt:P1352 ?ranks; p:P1352 [ps:P1352 ?ranks; pq:P447 wd:Q633765].}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?country ?countryLabel ?top500 ?created
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:all supercomupers in the world
SELECT ?item ?itemLabel ?countryLabel (SAMPLE(?creators) AS ?creator) (MAX(?perfs) AS ?perf)
(MAX(?procs) AS ?proc) (MAX(?heats) AS ?heat) ?top500 (SAMPLE(?oss) AS ?os) ?created (MIN(?ranks) AS ?rank)
WHERE
{
?item wdt:P31/wdt:P279* wd:Q121117.
OPTIONAL {?item wdt:P17|wdt:P495 ?country.}
OPTIONAL {?item wdt:P176 ?creators.}
OPTIONAL {?item wdt:P7256 ?perfs.}
OPTIONAL {?item wdt:P2791 ?heats.}
OPTIONAL {?item wdt:P7307 ?top500.}
OPTIONAL {?item wdt:P306 ?oss.}
OPTIONAL {?item wdt:P1141 ?procs.}
OPTIONAL {?item wdt:P571|wdt:P729 ?created.}
OPTIONAL {?item wdt:P1352 ?ranks; p:P1352 [ps:P1352 ?ranks; pq:P447 wd:Q633765].}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel ?country ?countryLabel ?top500 ?created
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?country")
v9("?created"):::projected
v11("?creator")
v3("?creators"):::projected
v14("?heat")
v5("?heats"):::projected
v1("?item"):::projected
v15("?os")
v7("?oss"):::projected
v12("?perf")
v4("?perfs"):::projected
v13("?proc")
v8("?procs"):::projected
v16("?rank")
v10("?ranks"):::projected
v6("?top500"):::projected
a1((" "))
a2((" "))
c20(["bd:serviceParam"]):::iri
c3(["wd:Q121117"]):::iri
c17(["wd:Q633765"]):::iri
c22(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -."p:direct/P495".-> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P17"--> v2
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P176".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P7256".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P2791".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P7307".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P306".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1141".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 -."p:direct/P729".-> v9
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P571"--> v9
end
union1r <== or ==> union1l
end
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1352".-> v10
a2 --"p:statement/P1352"--> v10
a2 --"p:qualifier/P447"--> c17
v1 --"p:P1352"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c20 --"wikibase:language"--> c22
end
bind6[/"sample(?creators)"/]
v3 --o bind6
bind6 --as--o v11
bind7[/"max(?perfs)"/]
v4 --o bind7
bind7 --as--o v12
bind8[/"max(?procs)"/]
v8 --o bind8
bind8 --as--o v13
bind9[/"max(?heats)"/]
v5 --o bind9
bind9 --as--o v14
bind10[/"sample(?oss)"/]
v7 --o bind10
bind10 --as--o v15
bind11[/"min(?ranks)"/]
v10 --o bind11
bind11 --as--o v16