A compound of the formula (I):
##STR00001##
a pharmaceutically acceptable salt or solvate thereof,wherein Ring Q is
optionally substituted monocyclic aryl, optionally substituted monocyclic
heteroaryl, optionally substituted fused aryl or optionally substituted
fused heteroaryl, Y.sup.1 is a bond or --NR.sup.6-- or the like, Ring A
is optionally substituted nonaromatic heterocyclediyl, a group of the
formula: -Y.sup.2Z.sup.1- is a group of the formula:
##STR00002## R.sup.7 are each independently hydrogen, optionally
substituted lower alkyl or the like, R.sup.8 and R.sup.9 are each
independently hydrogen or optionally substituted lower alkyl, n is an
integer between 1 and 3, Z.sup.1 is a bond, --O--, --S-- or --NR.sup.9--,
Ring B is optionally substituted aromatic carbocyclediyl or optionally
substituted aromatic heterocyclediyl, Y.sup.3 is a bond, optionally
substituted lower alkylene optionally intervened by --O--, optionally
substituted lower alkenylene or the like, and Z.sup.2 is COOR.sup.3 or
the like.