A pyrimidone derivative having tau protein kinase 1 inhibitory activity which is represented by formula (I) or a salt thereof, or a solvate thereof or a hydrate thereof:
wherein Q represents CH or nitrogen atom; R represents a C 1 -C 12 alkyl group; the ring of:
represents piperazine ring or piperidine ring.