Add CTE's to combination query types