sql server – How to tell if SQL is autogenerated by some tool

I am looking into some stored procedures and the code is more or less non-readable e.g. there are 15 main joins in one statement and the level of nesting of the subqueries is e.g. 7 in order to simply define one of the tables used in the joins… If one counts the joins in the subqueries then there are many more joins… Hope it makes sense…

I do not think a human has written these SPs and I think they have generated the code and copy-pasted it in the SP template… Does this sound right?

What are these tools called? So I am trying to refactor these and I was first annoyed and thought what idiot writes code like this but now like I said I think it is autogenerated… By autogenerated I mean a drag and drop interface.

Is my inference correct based on the description above? If you could comment of performance that would be great. My understanding is that these tools are performance killers…