17,519
edits
Line 584: | Line 584: | ||
SELECT DISTINCT ?item ?qid ?itemLabel WHERE { | SELECT DISTINCT ?item ?qid ?itemLabel WHERE { | ||
?item ppt:P18/ppt:P24 pp:Q2. | ?item ppt:P18/ppt:P24* pp:Q2. | ||
FILTER NOT EXISTS { ?item ppt:P18 pp:Q1488. } # not a higher taxon | FILTER NOT EXISTS { ?item ppt:P18 pp:Q1488. } # not a higher taxon | ||
FILTER NOT EXISTS { | FILTER NOT EXISTS { |