To call runAllQueries to create result_instance_ids when they're not existing yet.