Learning Generalized Medical Image Representation by Decoupled Feature Queries