I want to get all the select items from query and subquery
as per this link, https://stackoverflow.com/a/30505741/8249665 I can get select items from the main query.
For subquery like this- "SELECT * FROM CUSTOMERS WHERE ID IN (SELECT ID FROM CUSTOMERS WHERE SALARY > 4500)
", I'll have to navigate to selectbody -> where -> rightItemList -> again selectbody -> finally items.
Also, there can be more nested selects. How do I achieve it for both with subquery/subqueries and without subquery?