query-1c16d0c2943bab5f7120298423dbb2fa
boat class items in rowing SELECT ?item ?itemLabel ?itemDescription ?shortName ?sweepscullLabel ?rowers ?cox ?mass ?length ?icon WHERE { ?item wdt:P31 wd:Q26211803; wdt:P279 ?sweepscull . FILTER(?sweepscull = wd:Q18630808 || ?sweepscull = wd:Q1256290) . OPTIONAL { ?item wdt:P1813 ?shortName } OPTIONAL { ?item p:P1873 [ ps:P1873 ?rowers; pq:P3831 wd:Q13382576 ] } OPTIONAL { ?item p:P1873 [ ps:P1873 ?cox; pq:P3831 wd:Q1690874 ] } OPTIONAL { ?item wdt:P2067 ?mass } OPTIONAL { ?item wdt:P2043 ?length } OPTIONAL { ?item wdt:P2910 ?icon } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de" } } ORDER BY ASC(?rowers) ASC(?sweepscullLabel) ASC(?cox)
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#>
# boat class items in rowing
SELECT ?item ?itemLabel ?itemDescription ?shortName ?sweepscullLabel ?rowers ?cox ?mass ?length ?icon WHERE {
?item wdt:P31 wd:Q26211803; wdt:P279 ?sweepscull .
FILTER(?sweepscull = wd:Q18630808 || ?sweepscull = wd:Q1256290) .
OPTIONAL { ?item wdt:P1813 ?shortName }
OPTIONAL { ?item p:P1873 [ ps:P1873 ?rowers; pq:P3831 wd:Q13382576 ] }
OPTIONAL { ?item p:P1873 [ ps:P1873 ?cox; pq:P3831 wd:Q1690874 ] }
OPTIONAL { ?item wdt:P2067 ?mass }
OPTIONAL { ?item wdt:P2043 ?length }
OPTIONAL { ?item wdt:P2910 ?icon }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,de" }
} ORDER BY ASC(?rowers) ASC(?sweepscullLabel) ASC(?cox)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cox"):::projected
v9("?icon"):::projected
v5("?item"):::projected
v8("?length"):::projected
v7("?mass"):::projected
v1("?rowers"):::projected
v6("?shortName"):::projected
v4("?sweepscull")
v2("?sweepscullLabel"):::projected
a1((" "))
a2((" "))
c18(["en,de"]):::literal
c11(["wd:Q1690874"]):::iri
c16(["bd:serviceParam"]):::iri
c4(["wd:Q26211803"]):::iri
c9(["wd:Q13382576"]):::iri
f0[["(?sweepscull = 'wd:Q18630808' || ?sweepscull = 'wd:Q1256290')"]]
f0 --> v4
v5 --"p:direct/P31"--> c4
v5 --"p:direct/P279"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P1813".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:statement/P1873".-> v1
a1 --"p:qualifier/P3831"--> c9
v5 --"p:P1873"--> a1
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P1873".-> v3
a2 --"p:qualifier/P3831"--> c11
v5 --"p:P1873"--> a2
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P2067".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P2043".-> v8
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:direct/P2910".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c16 --"wikibase:language"--> c18
end