{% for row in rows if '/' in row.object.value %}
{% set qid = row.object.value.rpartition('/')[2] %}
{% set row_label = row.objectLabel.value if 'objectLabel' in row else '[ label missing ]' %}
{{ row_label }}
{% if 'objectDescription' in row %}
— {{ row.objectDescription.value }}
{% endif %}
({{ '{:,d}'.format(row.count.value | int) }} paintings)
{% if 'objectLabel' not in row %}
view in Wikidata
{% endif %}