Query addition for category