query-43283c6beee7412e6f8dd521d7a3ff85
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?Member ?MemberLabel ?EUpartyLabel ?NationalPartyLabel ?countryLabel WHERE {
?Member p:P39 ?ps .
?ps ps:P39 wd:Q27169 ; pq:P2937 wd:Q64038205.
OPTIONAL {?ps pq:P4100 ?EUparty.}
OPTIONAL {?ps pq:P1268 ?NationalParty.}
OPTIONAL {?ps pq:P768 ?country.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?EUparty")
v1("?Member"):::projected
v4("?NationalParty")
v5("?country")
v2("?ps")
c3(["wd:Q27169"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;"]):::literal
c5(["wd:Q64038205"]):::iri
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> c3
v2 --"p:qualifier/P2937"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P4100".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1268".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P768".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end