\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[textnode/.style={anchor=mid,font=\tiny},nodeknown/.style={circle,draw=black!80,fill=white,minimum size=6mm,font=\tiny},nodeunknown/.style={circle,draw=black!80,fill=black!10,minimum size=6mm,font=\tiny,top color=white,bottom color=black!20},factor/.style={rectangle,draw=black!80,fill=black!80,minimum size=2mm,font=\tiny,text=white}]
\draw[-] (0,0.5) to (0,1);
\draw[-] (0,0.5) to [bend right=30] (0,2);
\draw[-] (0,0.5) to [bend right=30] (0,4);
\draw[-] (-0.5,1) to (0,1);
\draw[-] (-0.5,2) to (0,2);
\draw[-] (-0.5,4) to (0,4);
\draw[-] (0,1.5) to (0,1);
\draw[-] (0,2.5) to (0,2);
\draw[-] (0,4.5) to (0,4);
\draw[-] (2.0,1.5) to (0,1);
\draw[-] (2.0,2.5) to (0,1);
\draw[-] (2.0,4.5) to (0,1);
\draw[-] (2.0,1.5) to (0,2);
\draw[-] (2.0,2.5) to (0,2);
\draw[-] (2.0,4.5) to (0,2);
\draw[-] (2.0,1.5) to (0,4);
\draw[-] (2.0,2.5) to (0,4);
\draw[-] (2.0,4.5) to (0,4);
\draw[-] (4.0,1.5) to (2.0,1);
\draw[-] (4.0,2.5) to (2.0,1);
\draw[-] (4.0,4.5) to (2.0,1);
\draw[-] (4.0,1.5) to (2.0,2);
\draw[-] (4.0,2.5) to (2.0,2);
\draw[-] (4.0,4.5) to (2.0,2);
\draw[-] (4.0,1.5) to (2.0,4);
\draw[-] (4.0,2.5) to (2.0,4);
\draw[-] (4.0,4.5) to (2.0,4);
\draw[-] (2.0,0.5) to (2.0,1);
\draw[-] (2.0,0.5) to [bend right=30] (2.0,2);
\draw[-] (2.0,0.5) to [bend right=30] (2.0,4);
\draw[-] (1.5,1) to (2.0,1);
\draw[-] (1.5,2) to (2.0,2);
\draw[-] (1.5,4) to (2.0,4);
\draw[-] (2.0,1.5) to (2.0,1);
\draw[-] (2.0,2.5) to (2.0,2);
\draw[-] (2.0,4.5) to (2.0,4);
\draw[-] (6.0,1.5) to (2.0,1);
\draw[-] (6.0,2.5) to (2.0,1);
\draw[-] (6.0,4.5) to (2.0,1);
\draw[-] (6.0,1.5) to (2.0,2);
\draw[-] (6.0,2.5) to (2.0,2);
\draw[-] (6.0,4.5) to (2.0,2);
\draw[-] (6.0,1.5) to (2.0,4);
\draw[-] (6.0,2.5) to (2.0,4);
\draw[-] (6.0,4.5) to (2.0,4);
\draw[-] (4.0,0.5) to (2.0,1);
\draw[-] (4.0,0.5) to [bend right=30] (4.0,2);
\draw[-] (4.0,0.5) to [bend right=30] (4.0,4);
\draw[-] (3.5,1) to (4.0,1);
\draw[-] (3.5,2) to (4.0,2);
\draw[-] (3.5,4) to (4.0,4);
\draw[-] (4.0,1.5) to (4.0,1);
\draw[-] (4.0,2.5) to (4.0,2);
\draw[-] (4.0,4.5) to (4.0,4);
\draw[-] (6.0,0.5) to (6.0,1);
\draw[-] (6.0,0.5) to [bend right=30] (6.0,2);
\draw[-] (6.0,0.5) to [bend right=30] (6.0,4);
\draw[-] (5.5,1) to (6.0,1);
\draw[-] (5.5,2) to (6.0,2);
\draw[-] (5.5,4) to (6.0,4);
\draw[-] (6.0,1.5) to (6.0,1);
\draw[-] (6.0,2.5) to (6.0,2);
\draw[-] (6.0,4.5) to (6.0,4);
\draw[-] (8.0,1.5) to (6.0,1);
\draw[-] (8.0,2.5) to (6.0,1);
\draw[-] (8.0,4.5) to (6.0,1);
\draw[-] (8.0,1.5) to (6.0,2);
\draw[-] (8.0,2.5) to (6.0,2);
\draw[-] (8.0,4.5) to (6.0,2);
\draw[-] (8.0,1.5) to (6.0,4);
\draw[-] (8.0,2.5) to (6.0,4);
\draw[-] (8.0,4.5) to (6.0,4);
\draw[-] (8.0,0.5) to (8.0,1);
\draw[-] (8.0,0.5) to [bend right=30] (8.0,2);
\draw[-] (8.0,0.5) to [bend right=30] (8.0,4);
\draw[-] (7.5,1) to (8.0,1);
\draw[-] (7.5,2) to (8.0,2);
\draw[-] (7.5,4) to (8.0,4);
\draw[-] (8.0,1.5) to (8.0,1);
\draw[-] (8.0,2.5) to (8.0,2);
\draw[-] (8.0,4.5) to (8.0,4);
\node[nodeknown] (p0) at (0,0.5) {};
\node[textnode] (l0) at (0,-0.1) {\footnotesize{\textit{retrieve}}};
\node[font=\tiny] (p0label) at (0,0.5) {$\lambda_{0}$};
\node[nodeunknown] (c01) at (-0.5,1) {};
\node[font=\tiny] (c01label) at (-0.5,1) {$\phi_{0_{1}}$};
\node[nodeunknown] (c02) at (-0.5,2) {};
\node[font=\tiny] (c02label) at (-0.5,2) {$\phi_{0_{2}}$};
\node[nodeunknown] (c0n) at (-0.5,4) {};
\node[font=\tiny] (c0nlabel) at (-0.5,4) {$\phi_{0_{n}}$};
\node[nodeknown] (g01) at (0,1.5) {};
\node[font=\tiny] (g01label) at (0,1.5) {$\gamma_{0_{1}}$};
\node[nodeknown] (g02) at (0,2.5) {};
\node[font=\tiny] (g02label) at (0,2.5) {$\gamma_{0_{2}}$};
\node[] (g0dots) at (0,3.375) {$\vdots$};
\node[nodeknown] (g0n) at (0,4.5) {};
\node[font=\tiny] (g0nlabel) at (0,4.5) {$\gamma_{0_{n}}$};
\node[factor] (f01) at (0,1) {};
\node[factor] (f02) at (0,2) {};
\node[factor] (f0n) at (0,4) {};
\node[nodeknown] (p1) at (2.0,0.5) {};
\node[font=\tiny] (p1label) at (2.0,0.5) {$\lambda_{1}$};
\node[nodeunknown] (c11) at (1.5,1) {};
\node[font=\tiny] (c11label) at (1.5,1) {$\phi_{1_{1}}$};
\node[nodeunknown] (c12) at (1.5,2) {};
\node[font=\tiny] (c12label) at (1.5,2) {$\phi_{1_{2}}$};
\node[nodeunknown] (c1n) at (1.5,4) {};
\node[font=\tiny] (c1nlabel) at (1.5,4) {$\phi_{1_{n}}$};
\node[nodeknown] (g11) at (2.0,1.5) {};
\node[font=\tiny] (g11label) at (2.0,1.5) {$\gamma_{1_{1}}$};
\node[nodeknown] (g12) at (2.0,2.5) {};
\node[font=\tiny] (g12label) at (2.0,2.5) {$\gamma_{1_{2}}$};
\node[] (g1dots) at (2.0,3.375) {$\vdots$};
\node[nodeknown] (g1n) at (2.0,4.5) {};
\node[font=\tiny] (g1nlabel) at (2.0,4.5) {$\gamma_{1_{n}}$};
\node[factor] (f11) at (2.0,1) {};
\node[factor] (f12) at (2.0,2) {};
\node[factor] (f1n) at (2.0,4) {};
\node[textnode] (l2_1) at (4.0,-0.4) {\footnotesize{\textit{ball}}};
\node[textnode] (l2_2) at (4.0,-0.1) {\footnotesize{\textit{the}}};
\node[nodeknown] (p2) at (4.0,0.5) {};
\node[font=\tiny] (p2label) at (4.0,0.5) {$\lambda_{2}$};
\node[nodeunknown] (c21) at (3.5,1) {};
\node[font=\tiny] (c21label) at (3.5,1) {$\phi_{2_{1}}$};
\node[nodeunknown] (c22) at (3.5,2) {};
\node[font=\tiny] (c22label) at (3.5,2) {$\phi_{2_{2}}$};
\node[nodeunknown] (c2n) at (3.5,4) {};
\node[font=\tiny] (c2nlabel) at (3.5,4) {$\phi_{2_{n}}$};
\node[nodeknown] (g21) at (4.0,1.5) {};
\node[font=\tiny] (g21label) at (4.0,1.5) {$\gamma_{2_{1}}$};
\node[nodeknown] (g22) at (4.0,2.5) {};
\node[font=\tiny] (g22label) at (4.0,2.5) {$\gamma_{2_{2}}$};
\node[] (g2dots) at (4.0,3.375) {$\vdots$};
\node[nodeknown] (g2n) at (4.0,4.5) {};
\node[font=\tiny] (g2nlabel) at (4.0,4.5) {$\gamma_{2_{n}}$};
\node[factor] (f21) at (4.0,1) {};
\node[factor] (f22) at (4.0,2) {};
\node[factor] (f2n) at (4.0,4) {};
\node[textnode] (l3) at (6.0,-0.1) {\footnotesize{\textit{inside}}};
\node[nodeknown] (p3) at (6.0,0.5) {};
\node[font=\tiny] (p3label) at (6.0,0.5) {$\lambda_{3}$};
\node[nodeunknown] (c31) at (5.5,1) {};
\node[font=\tiny] (c31label) at (5.5,1) {$\phi_{3_{1}}$};
\node[nodeunknown] (c32) at (5.5,2) {};
\node[font=\tiny] (c32label) at (5.5,2) {$\phi_{3_{2}}$};
\node[nodeunknown] (c3n) at (5.5,4) {};
\node[font=\tiny] (c3nlabel) at (5.5,4) {$\phi_{3_{n}}$};
\node[nodeknown] (g31) at (6.0,1.5) {};
\node[font=\tiny] (g31label) at (6.0,1.5) {$\gamma_{3_{1}}$};
\node[nodeknown] (g32) at (6.0,2.5) {};
\node[font=\tiny] (g32label) at (6.0,2.5) {$\gamma_{3_{2}}$};
\node[] (g3dots) at (6.0,3.375) {$\vdots$};
\node[nodeknown] (g3n) at (6.0,4.5) {};
\node[font=\tiny] (g3nlabel) at (6.0,4.5) {$\gamma_{3_{n}}$};
\node[factor] (f31) at (6.0,1) {};
\node[factor] (f32) at (6.0,2) {};
\node[factor] (f3n) at (6.0,4) {};
\node[textnode] (l4_1) at (8.0,-0.4) {\footnotesize{\textit{box}}};
\node[textnode] (l4_2) at (8.0,-0.1) {\footnotesize{\textit{the}}};
\node[nodeknown] (p4) at (8.0,0.5) {};
\node[font=\tiny] (p4label) at (8.0,0.5) {$\lambda_{4}$};
\node[nodeunknown] (c41) at (7.5,1) {};
\node[font=\tiny] (c41label) at (7.5,1) {$\phi_{4_{1}}$};
\node[nodeunknown] (c42) at (7.5,2) {};
\node[font=\tiny] (c42label) at (7.5,2) {$\phi_{4_{2}}$};
\node[nodeunknown] (c4n) at (7.5,4) {};
\node[font=\tiny] (c4nlabel) at (7.5,4) {$\phi_{4_{n}}$};
\node[nodeknown] (g41) at (8.0,1.5) {};
\node[font=\tiny] (g41label) at (8.0,1.5) {$\gamma_{4_{1}}$};
\node[nodeknown] (g42) at (8.0,2.5) {};
\node[font=\tiny] (g42label) at (8.0,2.5) {$\gamma_{4_{2}}$};
\node[] (g4dots) at (8.0,3.375) {$\vdots$};
\node[nodeknown] (g4n) at (8.0,4.5) {};
\node[font=\tiny] (g4nlabel) at (8.0,4.5) {$\gamma_{4_{n}}$};
\node[factor] (f41) at (8.0,1) {};
\node[factor] (f42) at (8.0,2) {};
\node[factor] (f4n) at (8.0,4) {};
\node[textnode] (pt1) at (7.625,-1.25) {\footnotesize{DT}};
\node[textnode] (pt2) at (8.375,-1.25) {\footnotesize{NN}};
\node[textnode] (pt3) at (6.0,-1.25) {\footnotesize{IN}};
\node[textnode] (pt4) at (3.625,-1.25) {\footnotesize{DT}};
\node[textnode] (pt5) at (4.375,-1.25) {\footnotesize{NN}};
\node[textnode] (pt6) at (0,-1.25) {\footnotesize{VB}};
\node[textnode] (pt7) at (8.0,-2.0) {\footnotesize{NP ($\lambda_{4}$)}};
\draw[] (pt1) to (7.625,-1.625) to (8.0,-1.625) to (pt7);
\draw[] (pt2) to (8.375,-1.625) to (8.0,-1.625) to (pt7);
\node[textnode] (pt8) at (4.0,-2.0) {\footnotesize{NP ($\lambda_{2}$)}};
\draw[] (pt4) to (3.625,-1.625) to (4.0,-1.625) to (pt8);
\draw[] (pt5) to (4.375,-1.625) to (4.0,-1.625) to (pt8);
\node[textnode] (pt9) at (7.0,-2.75) {\footnotesize{PP ($\lambda_{3}$)}};
\draw[] (pt3) to (6.0,-2.375) to (7.0,-2.375) to (pt9);
\draw[] (pt7) to (8.0,-2.375) to (7.0,-2.375) to (pt9);
\node[textnode] (pt10) at (5.5,-3.5) {\footnotesize{NP ($\lambda_{1}$)}};
\draw[] (pt8) to (4.0,-3.125) to (5.5,-3.125) to (pt10);
\draw[] (pt9) to (7.0,-3.125) to (5.5,-3.125) to (pt10);
\node[textnode] (pt11) at (2.75,-4.25) {\footnotesize{VP ($\lambda_{0}$)}};
\draw[] (pt6) to (0,-3.875) to (2.75,-3.875) to (pt11);
\draw[] (pt10) to (5.5,-3.875) to (2.75,-3.875) to (pt11);
\end{tikzpicture}
\end{document}