The pyrazole compound of the present invention is represented by the following general formula (I). The pyrazole compound of the present invention or a salt thereof or a solvate thereof potently inhibits liver glycogen phosphorylase, and, therefore, is useful as a therapeutic or prophylactic agent for diabetes.
wherein each symbol denotes as described in the specifications.