Query Selection WIP.