Where do you want to pull the SQL from? The Orphan Account Data is not in the IM object store. It's in the provisioning store. That's not accessible via SQL, only LDAP.
If you have a defined snapshot, that will be in SQL and there may be a way to get the data there.