The present invention relates to a compound of the formula (I):
##STR00001## (wherein A, B, C and D are independently nitrogen or
optionally substituted methine; E is nitrogen, methine or hydroxy
substituted methine; n is 0 or 1; T, U, V and W are independently
nitrogen or optionally substituted methine; X is --N(SO.sub.2R.sup.4)--,
--N(COR.sup.5)-- or --CO--; Y is --C(R.sup.6)(R.sup.7)--, --O-- or
--N(R.sup.8)--, provided that the compound (I) when E is nitrogen, n is
0, X is --CO--, and Y is --O-- is excluded) and the like, which are
useful as an agent for the treatment of various diseases related to NPY.