query-0c0b972b9566202b9469b22584869841
Propertiesposition held (P39)parliamentary term (P2937)parliamentary group (P4100)electoral district (P768)start time (P580)end time (P582)
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 ?mdep ?mdepLabel ?periodeLabel ?fraktionLabel ?wahlbezirk ?wahlbezirkLabel ?beginn ?ende
WHERE {
BIND(wd:Q17315694 AS ?periode)
?mdep p:P39 ?statement.
?statement ps:P39 wd:Q27169;
pq:P2937 ?periode.
OPTIONAL {?statement pq:P4100 ?fraktion.}.
OPTIONAL {?statement pq:P768 ?wahlbezirk.}.
OPTIONAL {?statement pq:P580 ?beginn.}.
OPTIONAL {?statement pq:P582 ?ende.}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?beginn"):::projected
v7("?ende"):::projected
v4("?fraktion")
v2("?mdep"):::projected
v1("?periode")
v3("?statement")
v5("?wahlbezirk"):::projected
c3(["wd:Q27169"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["de,en"]):::literal
bind0[/"'wd:Q17315694'"/]
bind0 --as--o v1
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> c3
v3 --"p:qualifier/P2937"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P4100".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P768".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P580".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P582".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end