implemented insert-by-query plan

what exactly do you test with this select?