Sometimes, you might want to obtain the parent (of any level, not just the immediate parent) query loop's object and, from this object, the term_id or post id or other data, depending on what is being looped.
There are two ways of getting a parent query loop object in Bricks.
By element ID.
Dynamically using a custom function in which we specify the desired level.