first try at query pipeline