Is it possible to make a query through the medias?

In the query settings I saw what it seems to be a possibility to make a query using the medias

But I have a problem when I try to add a “div” to the query template: I have a “no result” comment in place of the “divs”