insert by query plan WIP