query-331c5386e503a1e9fa266f493d754c27
Propertiesinstance of (P31)parent taxon (P171)has part(s) (P527)named after (P138)
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 ?beetle ?beetleLabel{
?beetle wdt:P31 wd:Q16521 . #?beetle <instances of> <Taxon>
?beetle wdt:P171* wd:Q22671 . #?beetle <parent taxon>* (= higher taxon) <Beetle>
wd:Q1299 wdt:P527 ?beatle . #<The Beatles> <has part> ?beatle
?beetle wdt:P138 ?beatle . #?beetle <named after> ?beetle
SERVICE wikibase:label {bd:serviceParam wikibase:language "en"}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?beatle")
v1("?beetle"):::projected
c4(["wd:Q22671"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
c2(["wd:Q16521"]):::iri
c5(["wd:Q1299"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P171"--> c4
c5 --"wdt:P527"--> v2
v1 --"wdt:P138"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end