I think `railway NOT in ('abandoned')` is better as `railway!='abandoned'`