The present invention provides a method of producing a compound represented by the following formula (1) or a compound represented by the following formula (4) or a tautomer thereof, the method including reacting a compound represented by the following formula (2) or a compound represented by the following formula (5) or a tautomer thereof with a compound represented by the following formula (3) or a compound represented by the following formula (6) in the presence of an aluminum alkoxide compound.