Query execution issue with CTE in xata.sql - Xata