Do select processing in two stages so we can start removing responsibilities from adapter
Move select building logic to backend