The present invention provides a compound of Formula (II); wherein X represents the moieties shown in the accompanying figure; or a pharmaceutically acceptable salt thereof. The compounds are inhibitors of SGLT1 which may be suitable for the treatment of diabetes.