query-5a1b978abf38892c48c2f8fecd016210
TODO
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P31 wd:Q15795637 . #?item is instance of Pokémon evolutionary line
?item p:P527 ?has_part_statement .
?has_part_statement a wikibase:BestRank .
FILTER NOT EXISTS { ?has_part_statement pq:P1545 [] . }
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;
v1("?has_part_statement")
v2("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wikibase:BestRank"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q15795637"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:qualifier/P1545"--> e0a1
e0v1("?has_part_statement"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"p:qualifier/P1545"--> a1
v2 --"p:direct/P31"--> c3
v2 --"p:P527"--> v1
v1 --"a"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end