depicts/templates/query/find_more_basic.sparql

8 lines
256 B
SPARQL

select distinct ?item ?image {
values ?value { {% for qid in qid_list %} wd:{{ qid }}{% endfor %} }
?item wdt:P31 wd:Q3305213 .
?item wdt:{{ pid }} ?value .
?item wdt:P18 ?image .
filter not exists { ?item wdt:P180 ?depicts }
} limit {{ limit }}