It is intended to provide a compound that exhibits a wide antibacterial spectrum against various bacteria including gram-negative bacteria, and a pharmaceutical composition having an antibacterial activity against carbapenem-resistant bacteria.A pharmaceutical composition comprises a compound represented by the formula (I), an ester thereof or a pharmaceutically acceptable salt thereof, or a hydrate thereof.(In the formula, -W- is -S(=O)- or -S(=O)2-, -T- is -CR4AR4B- or -CR5AR5B -CR6AR6B-, R4A, R4B, R5A, R5B, R6A and R6B are each independently a hydrogen atom or the like, R1 is a substituted or unsubstituted heterocyclic group or the like, R2A and R2B are each independently a hydrogen atom or the like, or R2A and R2B together form a substituted or unsubstituted methylidene and the like, and R3 is a hydrogen atom or the like.)本發明提供一種對包含革蘭氏陰性菌之各種細菌顯示強力抗菌譜之化合物、或對碳青黴烯耐藥性菌具有抗菌作用之醫藥組成物。本發明之解決手段是提供一種含有式(I)所示之化合物、其酯體或是該等於製藥上所容許之鹽、或該等之水合物之醫藥組成物。(式中,-W-是-S(=O)-或-S(=O)2-,-T-是-CR4AR4B-或 -CR5AR5B-CR6AR6B-,R4A、R4B、R5A、R5B、R6A以及R6B分別獨立地為氫原子等,R1是取代或非取代之雜環基等,R2A以及R2B分別獨立地為氫原子等,或者是R2A以及R2B一起形成取代或非取代之亞甲基等,R3是氫原子等)