WIP perform query