The present invention provides compounds of formula (I) including stereoisomers or a racemate or a mixture or a pharmaceutically acceptable salt thereof: wherein X is NH, or O; Q is 5-6 membered heteroaryl group, which may be substituted by one or more substituents independently selected from a group consisting of: C1-C4 alkyl, halogen, halo C1-C4 alkyl, C1-C4 alkoxy, CN; A is phenyl or a 5-6 heteroaryl group, which may be substituted by one or more substituents independently selected from a group consisting of: C1-C4 alkyl, halogen, halo C1-C4 alkyl, C1-C4 alkoxy, CN; B may assume different meanings from A and is phenyl or a 5-6 membered heteroaryl group, which may be substituted by one or more substituents independently selected from a group consisting of: C1-C4 alkyl, halogen, halo C1-C4 alkyl, C1-C4 alkoxy, CN; and processes for their preparation, pharmaceutical compositions containing them and their use as dual antagonists of the Orexin 1 and Orexin 2 receptors.本發明提供式(I)化合物,包括其立體異構物或外消旋物或混合物或醫藥上可接受之鹽:其中X 係NH或O;Q 係5至6員雜芳基,其可經一或多個獨立地選自由以下組成之群之取代基取代:C1-C4烷基、鹵素、鹵C1-C4烷基、C1-C4烷氧基、CN;A 係苯基或5至6員雜芳基,其可經一或多個獨立地選自由以下組成之群之取代基取代:C1-C4烷基、鹵素、鹵C1-C4烷基、C1-C4烷氧基、CN;B 可採用與A不同之含義且係苯基或5至6員雜芳基,其可經一或多個獨立地選自由以下組成之群之取代基取代:C1-C4烷基、鹵素、鹵C1-C4烷基、C1-C4烷氧基、CN;及其製備方法,含有其之醫藥組合物,及其作為食慾素(Orexin)1及食慾素2受體之雙重拮抗劑之用途。