write query queue files to be resumed from a newline-separated file of wiki ids