I assume you either found a way to do this or moved on, however I thought I'd post my solution to this and see if it helps..
In the flow, you will have an action which calls the Execute SOQL Query. What will be returned from that is json that looks like the following:
{
"totalSize": 1,
"done": true,
"records": [
{
"attributes": {
"type": "Opportunity",
"url": "xxxxxxxxxxxxxxxxxx"
},
"Id": "XXXXXXXXXXXXXXXXXX",
"Name": "XXXXXXXXXXXXXXXXXXXX"
},
]
}
You access that using the Dynamic Content "Body" from that step in a follow up action. Personally, I then write that to a file on OneDrive, but you could email it or use it to send to an on premise SQL server etc...
Hope that helps?