hi all!

as part of task "Look into matching images of the same painting" https://phabricator.wikimedia.org/T131553 
i've been trying to reproduce some sql queries as described in https://github.com/multichill/toollabs/blob/master/bot/wikidata/find_painting_images.py

where as usually these scripts would be running under toolforge (or some other bot execution environment i'm not sure of) i've been finding these long running queries timeout under PAWS

does anyone have suggestions / examples for running queries such as http://tools.wmflabs.org/multichill/queries2/commons/paintings_without_wikidata_all.sql under PAWS?