The present invention provides pyrazole derivatives represented by the general formula:wherein R1 represents H, an optionally substituted C1-6 alkyl group etc.; one of Q and T represents a group represented by the general formula:or a group represented by the general formula:while the other represents an optionally substituted C1-6 alkyl group etc.; R2 represents H, a halogen atom, OH, an optionally substituted C1-6 alkyl group etc.; X represents a single bond, O or S; Y represents an optionally substituted C1-6 alkylene group etc.; Z represents —RB, —CORC etc. in which RB represents an optionally substituted C1-6 alkyl group etc.; and RC represents an optionally substituted C1-6 alkyl group etc.; R4 represents H, an optionally substituted C1-6 alkyl group etc.; and R3, R5 and R6 represent H, a halogen atom etc., pharmaceutically acceptable salts thereof or prodrugs thereof, which exhibit an excellent inhibitory activity in human SGLT1 and are useful as agents for the prevention or treatment of a disease associated with hyperglycemia such as diabetes, impaired glucose tolerance, impaired fasting glycemia, diabetic complications or obesity, and a disease associated with the increase of blood galactose level such as galactosemia, and pharmaceutical compositions comprising the same, pharmaceutical uses thereof, and intermediates for production thereof.