Wikidata:EveryPolitician/Report:National Legislatures
Jump to navigation
Jump to search
Try it!
This is a list of every country in Wikidata, with its national legislature(s)/houses [i.e. either the unicameral legislature, or each house of a bicameral one].
Any errors or omissions can be corrected by ensuring that the body is an instance of a subclass of either legislative house (Q10553309) or unicameralism (Q140247) and has its applies to jurisdiction (P1001) set to the relevant country.
- In the case of a unicameral legislature, please make sure the above instructions apply to the legislature.
- In the case of a bicameral legislature, please ensure that the instructions above are applied to each individual house.
This list is periodically updated by a bot. Manual changes to the list will be removed on the next update!
WDQS | PetScan | TABernacle | Find images | Recent changes | Query:SELECT DISTINCT ?item (GROUP_CONCAT( DISTINCT CONCAT("[[d:Special:EntityPage/",STRAFTER(STR(?LEGISLATURE),"Y/"),"|",STRAFTER(STR(?LEGISLATURE),"Y/"),"]]"); separator=", ") as ?houses) WHERE { { SELECT DISTINCT ?item ?itemLabel ?legislature ?legislatureLabel ?isa ?isaLabel WHERE { ?item wdt:P31 wd:Q3624078 . OPTIONAL { VALUES ?type { wd:Q10553309 wd:Q37002670 } ?legislature wdt:P31/wdt:P279* ?type ; wdt:P1001 ?item ; wdt:P31 ?isa . FILTER NOT EXISTS { ?legislature wdt:P576 [] } . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?itemLabel ?isaLabel } } GROUP BY ?item
End of automatically generated list.
The underlying query behind this report is:
SELECT DISTINCT ?country ?countryLabel ?legislature ?legislatureLabel
WHERE {
?country wdt:P31 wd:Q3624078 .
OPTIONAL {
VALUES ?type { wd:Q10553309 wd:Q37002670 }
?legislature wdt:P31/wdt:P279* ?type ; wdt:P1001 ?country .
FILTER NOT EXISTS { ?legislature wdt:P576 [] } . # no end date
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
ORDER BY ?countryLabel ?legislatureLabel