query-e024cffa961bca63f32fe4ca9836caed
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 ?item ?itemLabel ?party ?partyLabel ?gender WHERE {
?item p:P39 ?statement.
?statement ps:P39 wd:Q15705021.
?statement pq:P2937 wd:Q64033616 .
?item wdt:P102 ?party.
?party rdfs:label ?partyLabel.
FILTER (lang(?partyLabel) = 'en')
?item wdt:P21 ?gender.
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE],en'. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?gender"):::projected
v2("?item"):::projected
v4("?party"):::projected
v1("?partyLabel"):::projected
v3("?statement")
c6(["wd:Q64033616"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q15705021"]):::iri
f0[["?partyLabel = 'en'"]]
f0 --> v1
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> c4
v3 --"p:qualifier/P2937"--> c6
v2 --"p:direct/P102"--> v4
v4 --"rdfs:label"--> v1
v2 --"p:direct/P21"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end