Disclosed is a compound which is useful as an endothelial lipase inhibitor.A compound represented by the formula:its pharmaceutically acceptable salt, or a solvate thereof,whereinRing A is aromatic carbocycle or aromatic heterocycle,Z is -NR5-, -O- or -S-,R5 is hydrogen, substituted or unsubstituted alkyl, substituted or unsubstituted alkenyl, substituted or unsubstituted alkynyl, substituted or unsubstituted aryl or the like,R1 is hydrogen, halogen, hydroxy, cyano, nitro, carboxy, substituted or unsubstituted alkyl, substituted or unsubstituted alkenyl or the like,R2 and R3 are each independently hydrogen, halogen, hydroxy or the like,R4 is a group represented by the formula: -(CR6R7)n-R8,wherein R6 and R7 are each independently hydrogen, halogen, hydroxy or the like, n is an integer of 0 to 3, R8 is carboxy, cyano, substituted or unsubstituted alkyl or the like,Rx is halogen, hydroxy, cyano, nitro, carboxy, substituted or unsubstituted alkyl, substituted or unsubstituted alkenyl or the like,m is an integer of 0 to 3.