query-6ea8d0905846944ed33c101b306e86a0
itself. termSome periods have better coverage. For 1386-1421, and 1509-1629, the records for MPs list their specific terms with a qualifier for the associated seat (where known - occasionally this is a mystery). However, they do not (mostly) have individual start/end dates, as these are often not known with any precision, and Wikidata is very idiosyncratic with how it handles Julian-era dates, so day-precision data can be misleading. Dates can, however, be inferred from the dates on the So to find all MPs who served in one of the two Parliaments of 1390 (things moved faster in those days...):
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 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 ?person ?personLabel ?termLabel ?seatLabel WHERE
{
?person wdt:P31 wd:Q5 . ?person p:P39 ?ps .
?ps ps:P39 ?term . ?term wdt:P279 wd:Q18018860 .
optional { ?ps pq:P768 ?seat }
?term wdt:P571 ?start . BIND(YEAR(?start) as ?startyear) .
FILTER(STR(?startyear) = '1390')
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?person"):::projected
v3("?ps")
v5("?seat")
v6("?start")
v7("?startyear")
v4("?term")
c7(["wd:Q18018860"]):::iri
c13(["en"]):::literal
c11(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
f0[["str(?startyear) = '1390'"]]
f0 --> v7
v2 --"p:direct/P31"--> c3
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> v4
v4 --"p:direct/P279"--> c7
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P768".-> v5
end
v4 --"p:direct/P571"--> v6
bind1[/"year-from-dateTime(?start)"/]
v6 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end