add selection to works query