A compound of the formula (I):
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
1
is a bond or —NR
6
— or the like,
Ring A is optionally substituted nonaromatic heterocyclediyl,
a group of the formula: -Y
2
Z
1
- is a group of the formula:
R
7
are each independently hydrogen, optionally substituted lower alkyl or the like,
R
8
and R
9
are each independently hydrogen or optionally substituted lower alkyl,
n is an integer between 1 and 3,
Z
1
is a bond, —O—, —S— or —NR
9
—,
Ring B is optionally substituted aromatic carbocyclediyl or optionally substituted aromatic heterocyclediyl,
Y
3
is a bond, optionally substituted lower alkylene optionally intervened by —O—, optionally substituted lower alkenylene or the like, and
Z
2
is COOR
3
or the like.