Add passing CTE-referencing-in-targetlist query test