This might be possible to achieve with xslt tranform. qRules includes a command to achieve this, or it can be done using custom code.
If you export the data to Excel and massage it there, you can then import it into InfoPath using the Excel to XML tool.
Bottom line is: there's no easy answer here. It's going to take a bit of work to achieve the migration.
If you'd like Qdabra to help you out, let us know via Qdabra.com. Good luck!