Hey Steve,
I don't think there is a way to dynamically load a file into export dataset as the query to be run, but I do have another idea. Can you make a view out of it, then just have fixed text "select * from <view name>" in the export dataset action?
-John