I'm trying to wrap my mind around computation involving the Meijer $G$ function, as defined here. (Edit: I'm actually using a somewhat mixed notation using the definitions from MathWorld and the Wikipedia page, but you get the idea.) $$G^{m,n}_{p,q}\left(\begin{array}{c|c}\begin{matrix}a_1,\ldots,a_p\\b_1,\ldots,b_q\end{matrix}&z\end{array}\right)=\frac{1}{2\pi i}\int_L \frac{\prod\limits_{j=1}^m \Gamma(b_j-s)\prod\limits_{j=1}^n\Gamma(1-a_j+s)}{\prod\limits_{j=n+1}^p \Gamma(a_j-s)\prod\limits_{j=m+1}^q\Gamma(1-b_j+s)}z^s\,ds$$ For the sake of practice, I'm interested in establishing identity $(5)$: $$G^{1,2}_{2,2}\left(\begin{array}{c|c}\begin{matrix}1,1\\1,1\end{matrix}&z\end{array}\right)=\frac{z}{z+1}$$ From the definition, I'm getting $$\begin{align*}G^{1,2}_{2,2}\left(\begin{array}{c|c}\begin{matrix}1,1\\1,1\end{matrix}&z\end{array}\right)&=\frac{1}{2\pi i}\int_L \frac{\prod\limits_{j=1}^1 \Gamma(b_j-s)\prod\limits_{j=1}^2\Gamma(1-a_j+s)}{\prod\limits_{j=3}^2 \Gamma(a_j-s)\prod\limits_{j=2}^2\Gamma(1-b_j+s)}z^s\,ds\\[2ex] &=\frac{1}{2\pi i}\int_L \frac{\Gamma(1-s)\Gamma(s)}{\prod\limits_{j=3}^2 \Gamma(a_j-s)}z^s\,ds \end{align*}$$ and here's where I'm stuck. How would I approach the product in the denominator?
Edit 2: Since the lower index is larger than the upper index, do I just consider it an empty product and take the term in the denominator to be equal to $1$?
Edit 3: Now that I know how to proceed, here's my attempt at establishing the identity (though I don't use any hypergeometric functions; I'm trying my hand at the contour integral). $$\begin{align*}G^{1,2}_{2,2}\left(\begin{array}{c|c}\begin{matrix}1,1\\1,1\end{matrix}&z\end{array}\right) &=\frac{1}{2\pi i}\int_L\Gamma(1-s)\Gamma(s)z^s\,ds\\[2ex] &=\sum_{k=1}^\infty\underset{s_0=k}{\text{Res}}\,\Gamma(1-s)\Gamma(s)z^s\\[2ex] &=\sum_{k=1}^\infty\lim_{s\to k}(s-k)\Gamma(1-s)\Gamma(s)z^s\\[2ex] &=\sum_{k=1}^\infty\left(\lim_{s\to k}(s-k)\Gamma(1-s)\right)\Gamma(k)z^k\\[2ex] &=\sum_{k=1}^\infty\left(\lim_{s\to k}\frac{s-k}{1-s}\Gamma(2-s)\right)\Gamma(k)z^k\\[2ex] &=\sum_{k=1}^\infty\left(\lim_{s\to k}\frac{s-k}{(1-s)(2-s)}\Gamma(3-s)\right)\Gamma(k)z^k\\[2ex] &\quad\vdots\\[2ex] &=\sum_{k=1}^\infty\left(\lim_{s\to k}\frac{s-k}{\prod\limits_{n=1}^k(n-s)}\right)\Gamma(k)z^k\\[2ex] &=\sum_{k=1}^\infty \left(\lim_{s\to k}\frac{(-1)^{k}}{\prod\limits_{n=1}^{k-1}(s-n)}\right)\Gamma(k)z^k\\[2ex] &=\sum_{k=1}^\infty \left(\lim_{s\to k}\frac{\Gamma(s-(k-1))}{\Gamma(s)}\right)(-z)^k\Gamma(k)\\[2ex] &=\sum_{k=1}^\infty (-z)^k\\[2ex] &=-\frac{z}{1+z} \end{align*}$$ (where $L$ is a contour that's surrounding the poles of $\Gamma(1-s)$, i.e. $s=k$ for integers $k\ge1$.) Unfortunately I seem to be off by a sign.
Regarding the empty product you're right. In case the lower index of a product is greater than the upper index, the product is equal to one (analogously to the empty sum which is zero in such cases).
So, the expression reads as \begin{align*}G^{1,2}_{2,2}\left(\begin{array}{c|c}\begin{matrix}1,1\\1,1\end{matrix}&z\end{array}\right) &=\frac{1}{2\pi i}\int_L \Gamma(1-s)\Gamma(s)z^s\,ds \end{align*}