This memoir is a detailed exposition of a new family of orthogonal polynomials which has five free parameters and a continuous weight distribution. Indeed, there are cases where this distribution has a finite discrete part in addition. The orthogonality relation is based on a new contour integral. To state the most important results some notation is needed: (throughout $q\in {\bbfC}$ and $\vert q\vert <1)$ $$ (a;q)\sb n:=\prod\sp{n-1}\sb{j=0}(1-aq\sp j),\quad n=0,1,2,...;e\sb q(a):=\prod\sp{\infty}\sb{j=0}(1-aq\sp j), $$ $$ p\sb n(x;a,b,c,d\vert q):=a\sp{-n}(ab;q)\sb n(ac;q)\sb n(ad;q)\sb n 4\phi\sb 3\left[ \matrix q\sp{-n},q\sp{n-1}abcd,ae\sp{i\theta},ae\sp{-i\theta};\\ ab,ac,ad\quad q,q\endmatrix \right] $$ where $x=\cos \theta$, $n=0,1,2,..$. (also denoted by $p\sb n(x))$, a terminating basic hypergeometric series.
The underlying integral depends on five parameters q, $a\sb j$, (1$\le j\le 4)$ such that $\vert q\vert <1$ and $a\sb ja\sb k\ne q\sp{\ell}$ for $\ell =0,1,2,...,(1\le j,k\le 4):$ $$ (1/2\pi i)\int\sb{C}e\sb q(z\sp 2)e\sb q(z\sp{-2})\prod\sp{4}\sb{j=1}(e\sb q(a\sb jz)e\sb q(a\sb j/z))\sp{-1}(dz/z) $$ $$ =\frac{2e\sb q(abcd)}{e\sb q(q)}\prod\sb{1\le j<k\le 4}e\sb q(a\sb ja\sb k)\sp{-1}, $$ where C is a closed positively oriented contour consisting of the unit circle deformed so as to separate the sequences of poles converging to zero from the sequences of poles converging to infinity.
It is shown that $\{p\sb n(x)\}$ is a family of polynomials in x, with degree $(p\sb n)=n$, and satisfying a three-term recurrence. Further, each $p\sb n$ is symmetric in a,b,c,d. The purely continuous weight distribution occurs for $-1<q<1$, $\max (\vert a\vert,\vert b\vert,\vert c\vert,\vert d\vert)<1$, and a,b,c,d all real or appearing in conjugate pairs: then $$ \int\sp{1}\sb{-1}p\sb n(x)p\sb m(x)w(x)(1-x\sp 2)\sp{- 1/2}dx=0\quad for\quad n\ne m, $$ where $$ w(x)=e\sb q(e\sp{2i\theta})e\sb q(e\sp{-2i\theta})\prod\sp{4}\sb{j=1}(e\sb q(a\sb je\sp{i\theta})e\sb q(a\sb je\sp{-i\theta}))\sp{-1},\quad where\quad x=\cos \theta, $$ and $a\sb j$ (1$\le j\le 4)$ takes the values a,b,c,d. The integral $$ \int\sp{1}\sb{-1}p\sb n(x)\sp 2w(x)(1-x\sp 2)\sp{-1/2}dx $$ is explicitly found. When any of the parameters a,b,c,d exceed 1, a finite discrete part (explicitly known) is added to the weight distribution.
The power of these results stems from the large number of free parameters. Special choices lead to previously studied families. For example, the case $c=-a$, $b=aq\sp{1/2}=-d$ gives the Rogers continuous q-ultraspherical polynomials ({\it R. Askey} and {\it M. E.-H. Ismail}, Studies in pure mathematics, Mem. of P. Turán, 55-78 (1983;

Zbl 0532.33006).
Another example comes from the choice $a=q\sp{\alpha /2+1/4}$, $c=q\sp{1/2}$, $b=-q\sp{\beta /2+1/4}$, $d=bq\sp{1/2}$; this is the family of little q-Jacobi polynomials studied by G. Andrews and R. Askey.
Other special cases are also discussed in the paper, including the example $q=0$, and a q-analogue of Meixner-Pollaczek polynomials. There is a Rodrigues type formula for $p\sb n$ which depends on a divided difference operator. Also, the connection coefficients between two different families $\{p\sb n(x;a,b,c,d\vert q)\}$ and $\{p\sb n(x;a',b',c',d'\vert q)\}$ are given as ${}\sb 5\phi\sb 4$-series, and some tractable special cases are discussed. This is a paper of fundamental importance in the theory of orthogonal polynomials in one variable of hypergeometric type.