The present invention provides compounds represented by the formula (Ia):
the formula (Ib):
the formula (Ic):
and the formula (Id):
wherein each symbol is as defined in the specification.
According to the present invention, these compounds have a DGAT inhibitory activity and are useful for the prophylaxis, treatment or improvement of diseases or pathologies caused by high expression or high activation of DGAT.