query-e26e01df49afeed4000ea4c7b636f708
US representatives with no US Congressional Biographical Directory entries. The few that don't are listed here: (P1157)US Congress Bio ID items have a (Q13218630)United States representative Nearly all
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 ?item ?itemLabel ?rep ?successorLabel ?successor ?successorBIOID WHERE {
?item p:P39 ?rep;
wdt:P31 wd:Q5.
?rep ps:P39 wd:Q13218630.
FILTER(NOT EXISTS { ?item wdt:P1157 ?bioid})
OPTIONAL { ?rep pq:P1366 ?successor.
?successor wdt:P1157 ?successorBIOID }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?bioid")
v1("?item"):::projected
v3("?rep"):::projected
v4("?successor"):::projected
v5("?successorBIOID"):::projected
c6(["wd:Q13218630"]):::iri
c9(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P1157"--> e0v2
e0v2("?bioid"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"p:direct/P1157"--> v2
v1 --"p:P39"--> v3
v1 --"p:direct/P31"--> c4
v3 --"p:statement/P39"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1366".-> v4
v4 --"p:direct/P1157"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end