Can I deduct losses for an inherited property sold at a loss

I inherited a bare lot in 1998.  I paid property taxes on it every year.  Sold it in 2020 at a loss.  Can I claim the loss between the 1998 basis and sale price plus the property taxes paid?  If so, how do I do this in Quicken Premier?

 

Thanks for your help!

 

Jim