We can get standard sql from AOT Query object through X++ code.
Following X++ Code used to get Standard Sql out of EcoResProductListPage
static void Job2(Args _args) { Query query; query = new Query(queryStr(EcoResProductListPage)); info(query.dataSourceNo(1).toString()); }