Fix planning of CONSTRUCT queries.