Disclosed are: a heteroaryl-substituted pyrazole compound or a pharmaceutically acceptable salt thereof having SGLT1 inhibitory activity and medicinal usefulness; a medicinal composition comprising same; and medicinal uses of the compound, salt, and composition. Specifically, a compound represented by formula [X] (in the formula, R