implement single thread blocked query plan