Yeah, you’d need an advanced query for this and I vaguely remember there was a problem with filtering by metafields, sorry not sure if it’s still a problem, can’t test right now.
However one workaround possible is to use tags for this purpose, say, select products without a tag, with query like tag_not:processed, process them and assign this tag…