I'd like to use tables inside equations like this:

[![enter image description here](https://i.stack.imgur.com/XaKrM.png)](https://i.stack.imgur.com/XaKrM.png)

Is it even possible? The example is just a picture with the tables manually added in.

The tables:

```
\begin{table}[H]
\centering
\begin{tabular}{|l|l|}
\hline
\multicolumn{1}{|c|}{\textbf{name}}
& \multicolumn{1}{c|}{\textbf{movie}}\\
\hline
  Jack Nicholson    & Wolf \\
  Dennis Quaid        & Frequency \\ 
  Jack  Black        & The School of Rock \\ 
  Jack Nicholson & The Shining \\
  Morgan Freeman      & Se7en \\
\hline
\end{tabular}
\end{table}

\begin{table}[H]
\centering
\begin{tabular}{|l|}
\hline
\multicolumn{1}{|c|}{\textbf{name}} \\
\hline
  Jack Nicholson \\
  Dennis Quaid \\
  Jack  Black \\
  Morgan Freeman \\
\hline
\end{tabular}
\end{table}

```