  This is a tutorial on duality properties of special functions, mainly of
orthogonal polynomials in the ($q$-)Askey scheme. It is based on the first part
of the 2017 R.P. Agarwal Memorial Lecture delivered by the author.
