\newtheorem{definition}{Definition}[chapter]

% #1: Name of query problem
% #2: The structure to preprocess
% #3: Queries to handle
\newcommand{\queryproblem}[3]{
    \textsc{#1}

    \textbf{Given:} #2

    \textbf{Queries:} #3
}
