'Query Datasource field data type and using it in scriban to fetch details of datasource item

How to use 'Query Datasource' field data type so that I can point to another datasource item from my scriban item itself and able to retrive its (pointed datasource item) field values?

enter image description here

Any suggestion here?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source