Not sure if this is any use, but this is a query that I made years ago. It's actually part of a cgi that generates dependency trees. By trial and error, it works for listing all dependencies for JOBP, JSCH and some other objects. Not script though, i.e. it won't get references by ACTIVATE_UC_OBJECT and such.
select OH_Name, JPP_Otype, JPP_Object, JPP_Lnr, JPPA_PreLnr from OH inner join JPP on OH_Idnr = JPP_OH_Idnr left outer join JPPA on OH_Idnr = JPPA_OH_Idnr and JPPA_JPP_Lnr = JPP_Lnr where OH_Client = 10 and OH_Name = '$BASE_ELEMENT' order by JPP_Lnr;"
The web form lets users enter a "base element", and then it parses the output and generates a list of dependencies, and it has some superficial options like letting the user generate the nesting levels as numbers in a csv, or as poor man's tree structure. If you want the cgi and surrounding html page, let me know.
Hth,