Display query used within one panel on another

Hi,
There are two panels ( say “A” and “B” ). I want to show the query used in panel “A” in panel “B”. Panel “B” is text panel. Kindly let me know if this is doable? The query in panel “A” is an ElasticSearch LUCENE filter.

Grafana version: 9.3.1