query writer and tar-er work