query-a549d6ded1967abeef7ea1dfb813b5e7
No results for congresses 1-3? served in the first seven legislative congresses. Any idea why these query results omit the first three?? (Q431894)Theodore Foster
Use at
- https://query.wikidata.org/sparql
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/>
SELECT DISTINCT * WHERE {
VALUES ?item { wd:Q431894 }
?item p:P39 ?stmt;
wdt:P31 wd:Q5.
?stmt ps:P39 wd:Q4416090;
# pq:P2937 wd:Q223336;
pq:P768/wdt:P131 ?constituency;
pq:P4100 ?group;
pq:P580 ?start;
pq:P582 ?end.
OPTIONAL { ?stmt pq:P2715 ?election. }
OPTIONAL { ?stmt pq:P1534 ?cause. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?cause"):::projected
v3("?constituency"):::projected
v7("?election"):::projected
v6("?end"):::projected
v4("?group"):::projected
v1("?item"):::projected
v5("?start"):::projected
v2("?stmt"):::projected
a1((" "))
c5(["wd:Q4416090"]):::iri
c3(["wd:Q5"]):::iri
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q431894"])
bind00 --> bind0
v1 --"p:P39"--> v2
v1 --"p:direct/P31"--> c3
v2 --"p:statement/P39"--> c5
v2 --"p:qualifier/P768"--> a1
a1 --"p:direct/P131"--> v3
v2 --"p:qualifier/P4100"--> v4
v2 --"p:qualifier/P580"--> v5
v2 --"p:qualifier/P582"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P2715".-> v7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P1534".-> v8
end