query-861efb9a1a030c96a45cbda65b84b48a
ID QA
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?id ?idLabel ?fb ?gkg ?GNIS ?FIPS553 WHERE {
?id (wdt:P31/(wdt:P279*)) wd:Q54115138.
OPTIONAL { ?id wdt:P646 ?fb. }
OPTIONAL { ?id wdt:P2671 ?gkg. }
OPTIONAL { ?id wdt:P590 ?GNIS. }
OPTIONAL { ?id wdt:P774 ?FIPS553. }
FILTER(NOT EXISTS { ?id wdt:P576 ?eol. })
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY (?idLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?FIPS553"):::projected
v6("?GNIS"):::projected
v3("?eol")
v4("?fb"):::projected
v5("?gkg"):::projected
v2("?id"):::projected
v1("?idLabel"):::projected
a1((" "))
c4(["wd:Q54115138"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P576"--> e0v2
e0v2("?eol"):::projected
e0v1("?id"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P576"--> v3
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P646".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2671".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P590".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P774".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end