As a pharmaceutical product useful for patients with urine evacuation disorders for whom conventional drugs are ineffective, a drug is disclosed having inhibitory activity on ENPP2, which is a target different from that of already existing drugs. Disclosed are a compound represented by formula (I) (wherein definitions of the groups are as in the description) having ENPP2 inhibitory activity, a salt or solvate thereof, a prodrug of either of these, or an agent for prevention, treatment and/or symptomatic improvement of urine evacuation disorders containing either of these as an active ingredient.Como un producto farmacéutico útil para pacientes con trastornos de evacuación de orina para quienes los fármacos convencionales son inefectivos, se describe un fármaco que tiene actividad inhibitoria en ENPP2, que es un objetivo diferente al de los fármaco existentes. Se describen un compuesto representado por la fórmula (I).