\documentclass[varwidth=598pt]{standalone}

\usepackage{booktabs} % professional-quality tables
\usepackage{multirow} % multi-row cells in tables
\usepackage{colortbl} % color for tables (\cellcolor, \rowcolor)
\usepackage[table]{xcolor} % enhanced colors for tables
\usepackage{array} % more flexible column formats (often used)
\usepackage{tabularx} % for tables with auto-stretch columns (if used)
\usepackage{graphicx} % for images in tables or figure/table floats
\usepackage{amssymb} % math symbols
\usepackage{amsmath} % math environments
\usepackage{soul} % highlighting (used for colored text/cells)
\usepackage[normalem]{ulem} % underlining, strikethroughs
\usepackage[T1]{fontenc} % font encoding
\usepackage[utf8]{inputenc}% input encoding (legacy, fine for pdflatex)
\usepackage{microtype} % better text appearance
\usepackage{hyperref} % hyperlinks
\usepackage{textcomp} % for extra symbols
\usepackage{enumitem} % for compact lists (if used in table notes)
\usepackage{adjustbox}
\usepackage{tabu}
\usepackage{pifont} % http://ctan.org/pkg/pifont
\usepackage{bbding} % \XSolidBrush
\usepackage{makecell}

\begingroup
\makeatletter
\renewcommand{\fnum@table}{}%
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\centering #2\par
\vskip\belowcaptionskip
}
\makeatother

\begin{document}
\begin{table}
\centering
\begin{adjustbox}{max width=\textwidth}
\begin{tabular}{ccccccccccccccccc}
\toprule
\multirow{2}{*}{\textbf{Single-Step}} & \multirow{2}{*}{\textbf{Train}} & \multicolumn{3}{c}{\textbf{YAGO}} & \multicolumn{3}{c}{\textbf{WIKI}} & \multicolumn{3}{c}{\textbf{ICEWS14}} & \multicolumn{3}{c}{\textbf{ICEWS18}} & \multicolumn{3}{c}{\textbf{ACLED-CD22}}\\
\cmidrule(lr){3-5} \cmidrule(lr){6-8} \cmidrule(lr){9-11} \cmidrule(lr){12-14} \cmidrule(lr){15-17} & & H@1 & H@3 & H@10 & H@1 & H@3 & H@10 & H@1 & H@3 & H@10 & H@1 & H@3 & H@10 & H@1 & H@3 & H@10 \\
\midrule
\texttt{RE-GCN} & \cmark & 0.787 & 0.842 & \underline{0.884} & 0.747 & 0.817 & \underline{0.846} & 0.313 & \underline{0.473} & \bf 0.626 & \bf 0.223 & \bf 0.367 & \bf 0.525 & \bf 0.446 & \bf 0.545 & \bf 0.608 \\
\texttt{xERTE} & \cmark & \underline{0.842} & \underline{0.902} & \bf 0.912 & 0.703 & 0.785 & 0.801 & \underline{0.330} & 0.454 & 0.570 & 0.209 & 0.335 & 0.462 & 0.320 & 0.445 & 0.497 \\
\texttt{TLogic} & \cmark & 0.740 & 0.789 & 0.791 & \bf 0.786 & \bf 0.860 & \bf 0.870 & \bf 0.332 & \bf 0.476 & \underline{0.602} & 0.204 & \underline{0.336} & \underline{0.480} & 0.009 & 0.045 & 0.094 \\
\texttt{TANGO} & \cmark & 0.590 & 0.646 & 0.677 & 0.483 & 0.514 & 0.527 & 0.272 & 0.408 & 0.550 & 0.191 & 0.318 & 0.462 & \underline{0.327} & \underline{0.482} & \underline{0.599} \\
\texttt{Timetraveler} & \cmark & \bf 0.845 & \bf 0.908 & \bf 0.912 & \underline{0.751} & \underline{0.820} & 0.830 & 0.319 & 0.454 & 0.575 & \underline{0.212} & 0.325 & 0.439 & 0.240 & 0.315 & 0.457 \\
\midrule
\texttt{GPT-NeoX} (Entity) & \xmark & 0.784 & 0.891 & \bf 0.927 & 0.694 & 0.804 & 0.844 & \bf 0.324 & \bf 0.460 & \bf 0.565 & 0.192 & \bf 0.313 & \bf 0.414 & \bf 0.324 & \bf 0.492 & \bf 0.604 \\
\texttt{GPT-NeoX} (Pair) & \xmark & \bf 0.787 & \bf 0.892 & 0.926 & \bf 0.721 & \bf 0.812 & \bf 0.847 & 0.297 & 0.408 & 0.482 & \bf 0.196 & 0.307 & 0.402 & 0.317 & 0.440 & 0.566 \\
\bottomrule
\end{tabular}
\end{adjustbox}
\caption{Table 5: \textbf{Performance (Hits@K)} comparison between supervised models and ICL for single-step (top) and multi-step (bottom) prediction.
The first group in each table consists of supervised models, whereas the second group consists of ICL models, \textit{i.e.,} \texttt{GPT-NeoX} with a history length of 100.
The best model for each dataset in the first group is shown in \textbf{bold}, and the second best is \underline{underlined}.}
\end{table}
\end{document}