query-d0ff19b77c39fcab4ca6d43ed74cca69
20:16, 18 March 2021 (UTC) pagetalk / TomT0m author missing (P2937)parliamentary term If there is still one in excess it’s probably because there is a 13:48, 19 March 2021 (UTC)) talk (M2545Update: never mind (but thanks for the help!). This seems to work also: -- 20:23, 18 March 2021 (UTC)) talk (M2545Thanks, TomT0m. I think my question was a bit muddled, so I've clarified it (see above). --
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 ?participant ?participantLabel ?roleLabel
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
{
wd:Q96050576 p:P710 [ps:P710 ?participant;
pq:P2868 ?role;
].
}
}
ORDER BY DESC(?roleLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?participant"):::projected
v3("?role")
v1("?roleLabel"):::projected
a1((" "))
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q96050576"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
a1 --"p:statement/P710"--> v2
a1 --"p:qualifier/P2868"--> v3
c7 --"p:P710"--> a1