There has been substantial work on “unnesting” complex
SQL queries containing nested subqueries by translating them
into single block SQL queries when certain syntactic
restrictions are satisfied. Another direction that has
been pursued in optimizing nested subqueries is reducing the
number of invocations and batching invocation of inner