simplified CTE_to_sqlite demo