query-a52b843e298d8c3ee575a18e7bced83a
List of Belgian members of parliament) together with their party and gender. So far, I was only able to extract a supposedly complete list of all historic members, neglecting the time frame: Q64033616) in the current legislative period (Q15705021Hi, I want to retrieve a list of the members of the Belgian lower house (
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 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.
?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")
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q15705021"]):::iri
f0[["?partyLabel = 'en'"]]
f0 --> v1
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> c4
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;
c9 --"wikibase:language"--> c11
end