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, R1 is hydrogen or halogen, R2 is C1-6 alkyl or halo-C1-6-alkyl, RingHet is a substituted pyridyl or a substitutable pyrazinyl, pyrimidinyl or pyridazinyl) or a pharmaceutically acceptable salt thereof, a medicinal composition comprising same, and medicinal uses of the compound, salt, and composition are provided.