Oh that would be quite a challenge. See, the list items need to submit before the form library submit. So the form knows the list IDs but the lists do not know the form ID. There's nothing in qRules to account for this scenario, but i imagine that you could:
1. Submit the SharePoint lists using qRules.
2. Submit to the form library
3. Query the form library to obtain the ID and perhaps put together a URL via rules.
4. Resubmit the SharePoint lists using qRules, this time including the URL to the form.
Good luck!