Stock Ageing Report in Query Report

Hi all,

In ERPnext we have a stander report (Stock Ageing), I want to rebuild this report but use Query Report, not Script Report, How I can do it? or what are the Stander Tables I build report from it

any help?