I just pasted your query into an Export Dataset action and it worked n Toad 13. If you are still on Toad 11, you may need to remove the semicolon at the end.
Semicolons are also not really part of the query. SQL*Plus just uses them to mark the end of the query. They are helpful in the Editor where you might have multiple queries, but we always have to take the semicolon off in the background when we send the query to Oracle. That might not have happened in Export Dataset in Toad 11.
If you are on Toad 13 and getting the error, please post a screen shot (or email it to me: john.dorlon@quest.com).