Context: A brewery tap is the nearest outlet for a brewery's beers. This is usually a room or bar in the brewery itself, though the name may be applied to the nearest pub. The term is not applied to a brewpub which brews and sells its beer on the same premises.

Question: What is the closest outlet for a brewery's beers called?
Answer: A brewery tap

Question: If the brewery tap is not located in the brewery, where is it usually located?
Answer: the nearest pub

Question: What is the term for a pub that brews and sells its own beer?
Answer: brewpub