Good Morning hollpow,
I would Highly recomend having a DBA help you with this. You will need to use the Database Reference Guide which will give you a break down of the project Databases. You can find the guide by logging into QC and click Help->Documentation Library. You will want to download the guide to you local machine to view the guide.
I will see if I cant get a sample SQL query up in little while.
EDIT: Ok you will need someone much better at SQL than My self to even write a sample Query. I can Tell you that the two tables to reference in the query are ALL_LISTS, and TEST tables. Where ALL_LISTS.AL_FATHER_ID = ALL_LISTS.AL_ITEM_ID of the Parent Folder