implement INSERT INTO SELECT construction