I think the short answer is no - however this is not a bug. As Tableau has been designed as a visual and interactive tool both from a developing and consumer perspective, the flipside is it doesn't write elegant code.
I'd question more why do you need to provide exhaustive SQL though ? I am willing to put money on anybody who has the skills to read complex SQL statements can interpret and understand anything you do in Tableau without any training.
Thank you Peter. However, while many users use Tableau purely as a stand alone BI tool, Tableau markets itself as valid option for OEM, able to be integrated as a module of a larger application. That is our use case, and being able to derive the SQL is imperative if that claim is true. In this case, it would enable our larger application to determine whether to render the tableau iframe by determining whether the result set would be valid for that user.
I understand it won't be elegant SQL code nor do I expect it to be painless, would just like advice from the community on what the different paths forward are. I have found this tool modestly helpful