I recommend you use Data Loader
for this task.
- Export the query you have already written
- Manipulate the CSV to set
DisqualifiedReason__c
andOwnerId
to the proper values. - Import the manipulated CSV
You don't need any Apex if you approach the task this way. You can also break the query out into a few discrete chunks to simplify the SOQL.