17,522
edits
Line 247: | Line 247: | ||
SELECT DISTINCT ?item ?itemLabel WHERE { | SELECT DISTINCT ?item ?itemLabel WHERE { | ||
?item ppt:P18 pp:Q2. | ?item ppt:P18/ppt:P24* pp:Q2. | ||
# FILTER NOT EXISTS { ?item ppt:P18 pp:Q1488. } # optionally exclude higher taxa | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | ||
} | } |