[Tex/LaTex] Write above the symbol math “subset”

math-modestacking-symbols

Like the symbols "bigcup or bigcap" in LateX, I'd like to write above the symbol subset.

I have try to use the displaystyle command, but it doesn't work !

Here is a snippet of my try :

$\boldsymbol{NP} \displaystyle\subset^{?} \boldsymbol{P}$

Best Answer

Usually \overset is used for that purpose.

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$A\overset{?}{\subset}B$

$A\subset B$
\end{document}

The second formula is just for showing that the spacing for a relation symbol is preserved.

enter image description here