query-d1c5332e5bcfe395d16a7de63848d15a
Rowing clubs and sports clubs with rowing departments
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#>
SELECT DISTINCT ?item ?itemLabel ?countryLabel ?locationLabel ?headquarters ?coordinates WHERE {
{ ?item wdt:P31 wd:Q7372078 } UNION { ?item wdt:P31 wd:Q847017; wdt:P641/wdt:P279* wd:Q159354 } UNION { ?item p:P31 [ ps:P31 wd:Q847017; pq:P641/wdt:P279* wd:Q159354 ] } .
OPTIONAL { { ?item wdt:P17 ?country } UNION { ?item p:P159 [ pq:P17 ?country ] } }
OPTIONAL { ?item wdt:P131 ?location }
OPTIONAL { ?item wdt:P159 ?headquarters }
OPTIONAL { { ?item wdt:P625 ?coordinates } UNION { ?item p:P159 [ pq:P625 ?coordinates ] } }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY ASC(?countryLabel) ASC(?itemLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?coordinates"):::projected
v4("?country")
v1("?countryLabel"):::projected
v6("?headquarters"):::projected
v3("?item"):::projected
v2("?itemLabel"):::projected
v5("?location")
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
c18(["bd:serviceParam"]):::iri
c20(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q7372078"]):::iri
c6(["wd:Q159354"]):::iri
c3(["wd:Q847017"]):::iri
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;
a2 --"p:statement/P31"--> c3
a2 --"p:qualifier/P641"--> a3
a3 --"p:direct/P279"--> c6
v3 --"p:P31"--> a2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> c3
v3 --"p:direct/P641"--> a1
a1 --"p:direct/P279"--> c6
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> c2
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union2[" Union "]
subgraph union2l[" "]
style union2l fill:#abf,stroke-dasharray: 3 3;
a4 -."p:qualifier/P17".-> v4
v3 --"p:P159"--> a4
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P17"--> v4
end
union2r <== or ==> union2l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P131".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P159".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
a5 -."p:qualifier/P625".-> v7
v3 --"p:P159"--> a5
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P625"--> v7
end
union3r <== or ==> union3l
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c18 --"wikibase:language"--> c20
end