query-dfc839e2915a53dd3fe96c714dd494f9
members of the 1922-23 Parliament -615 seats. SELECT DISTINCT ?constituency ?constituencyLabel ?startMP ?startMPLabel { # find the MP elected at the general election which began the term wd:Q41582584 wdt:P2715 ?election . ?startMP p:P39 ?positionStatement2 . ?positionStatement2 ps:P39 wd:Q41582584 . ?positionStatement2 pq:P768 ?constituency . ?positionStatement2 pq:P2715 ?election . SERVICE wikibase:label { bd:serviceParam wikibase:language 'en' } }
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#>
# members of the 1922-23 Parliament -615 seats.
SELECT DISTINCT ?constituency ?constituencyLabel ?startMP ?startMPLabel
{
# find the MP elected at the general election which began the term
wd:Q41582584 wdt:P2715 ?election .
?startMP p:P39 ?positionStatement2 .
?positionStatement2 ps:P39 wd:Q41582584 .
?positionStatement2 pq:P768 ?constituency .
?positionStatement2 pq:P2715 ?election .
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;
v4("?constituency"):::projected
v1("?election")
v3("?positionStatement2")
v2("?startMP"):::projected
c1(["wd:Q41582584"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["en"]):::literal
c1 --"p:direct/P2715"--> v1
v2 --"p:P39"--> v3
v3 --"p:statement/P39"--> c1
v3 --"p:qualifier/P768"--> v4
v3 --"p:qualifier/P2715"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end