Output after search on nested tags

I recently started using Digikam to archive my personal photos, divided into analogue photos starting from 1972 and digital to the present day. There are about 15,000 images divided, the first in folders by subject, the digital ones in a single folder sorted by the shooting date. Now I wanted to do further cataloging using tags. Everything ok, but a problem arises that I cannot solve and that I will now try to explain. I have a whole host of friends and family I call by their names. Some of these also have one or more shots per passport photo (I am a retired photographer) so I group them with a ‘Card’ tag again subdivided with a tag with the name of each one. So far so good, but I can’t make sure that when I search for an ‘X’ tag of which there is also an image in the ‘Card’ tag they are displayed at the same time. I have already done various tests, but I can’t get what I want. It is feasible ?