A butenoic or propenoic acid derivative having the following formula in which G is an aryl or a heterocyclic ring, R11 and R12 are hydroben or an alkyl, X is sulfur or oxygen, R2 and R3 are hydrogen, an substituent such as an alkyl and J is pyridyl or phenyl having substituents and a heterocyclic ring may be formed between R2, R3 and J is provided here and is useful in the pharmacological field.