Retirement tax questions

What about Line 29- Pension and Annuity income exclusion - Amounts not from a NYS or local government pension plan or federal government pension plan? How would I know if it qualifies for that?