Why not just grab the SI_ID of the documents from your existing query, and cross reference it with the output of a query like this:
SELECT SI_ID FROM CI_INFOOBJECTS WHERE DESCENDENTS("SI_NAME='Folder Hierarchy' ", "SI_NAME = 'Corporate Documents' ") AND SI_KIND IN ('WEBI')