add not applicable to the checked constants in building the query for
protocols.