query-9f1c5650d6cc0c7c8dd3cb970e244b7c
Cleaning up US Senate data: Andrew Gray: @Oravrattas@ I plan on deleting all of the statements coming out of this query:
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 * WHERE {
?sen p:P39 ?statement.
?statement ps:P39/wdt:P279+ wd:Q4416090.
?statement ps:P39/p:P31/pq:P4649/wdt:P31 wd:Q15238777.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?sen"):::projected
v2("?statement"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c8(["wd:Q15238777"]):::iri
c4(["wd:Q4416090"]):::iri
v1 --"p:P39"--> v2
v2 --"p:statement/P39"--> a1
a1 --"p:direct/P279"--> c4
v2 --"p:statement/P39"--> a2
a2 --"p:P31"--> a3
a3 --"p:qualifier/P4649"--> a4
a4 --"p:direct/P31"--> c8