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.