pieced query now works.