\documentclass[11pt]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{caption}
\usepackage{float}
\usepackage{pdflscape}
\usepackage{ifthen}
\pagestyle{empty}

\newcommand{\comparepair}[4]{
  \begin{figure}[H]
    \centering
    \begin{minipage}[t]{0.48\textwidth}
      \centering
      \includegraphics[width=\linewidth,height=0.38\textheight,keepaspectratio]{#1}
      \caption*{Old paper}
    \end{minipage}\hfill
    \begin{minipage}[t]{0.48\textwidth}
      \centering
      \includegraphics[width=\linewidth,height=0.38\textheight,keepaspectratio]{#2}
      \caption*{Updated}
    \end{minipage}
    \caption*{\large #3}
    \vspace{0.5em}
  \end{figure}
  \ifthenelse{\equal{#4}{yes}}{\clearpage}{}
}

\begin{document}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/subgroup_breakdown/subgroup_tradeoff_scatter_main.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/subgroup_tradeoff_scatter_main__v2.png}
{Subgroup tradeoff scatter}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/subgroup_breakdown/subgroup_branch_dumbbell_main.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/subgroup_branch_dumbbell_main__v2.png}
{Subgroup branch dumbbell}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/subgroup_breakdown/subgroup_dataset_model_heatmap_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/subgroup_dataset_model_heatmap_appendix__v2.pdf}
{Subgroup dataset-model heatmap}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/subgroup_breakdown/subgroup_prefix_bars_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/subgroup_prefix_bars_appendix__v2.pdf}
{Subgroup prefix bars}
{yes}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/conditional_breakdown/conditional_subgroup_tradeoff_scatter_main.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/conditional_subgroup_tradeoff_scatter_main__v2.png}
{Conditional subgroup tradeoff scatter}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/conditional_breakdown/conditional_strength_vs_subgroup_bridge.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/conditional_strength_vs_subgroup_bridge__v2.png}
{Conditional strength vs subgroup bridge}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/conditional_breakdown/conditional_branch_dumbbell_main.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/conditional_branch_dumbbell_main__v2.png}
{Conditional branch dumbbell}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/conditional_breakdown/conditional_dataset_model_heatmap_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/conditional_dataset_model_heatmap_appendix__v2.pdf}
{Conditional dataset-model heatmap}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/conditional_breakdown/conditional_prefix_bars_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/conditional_prefix_bars_appendix__v2.pdf}
{Conditional prefix bars}
{yes}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/query_fivepart_breakdown/missingness/missingness_family_subitem_bars_appendix.pdf}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/missingness_family_subitem_bars_appendix__v2.pdf}
{Missingness family subitem bars}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/query_fivepart_breakdown/missingness/missingness_dataset_model_heatmap_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/missingness_dataset_model_heatmap_appendix__v2.pdf}
{Missingness dataset-model heatmap}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/query_fivepart_breakdown/missingness/missingness_prefix_bars_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/missingness_prefix_bars_appendix__v2.pdf}
{Missingness prefix bars}
{yes}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/tail_threshold/tail_stress_main_figure.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/tail_stress_main_figure.png}
{Tail stress main figure}
{no}

\comparepair
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/Paper/69b27219c555c38a69bb2156/figures/tail_support_direction/tail_support_direction_model_bars_appendix.png}
{/Users/jialinzhang/Documents/HKUNAISS/SyntheticNips/SQLagent/tmp/paper_compare_core/tail_tradeoff_scatter_main__v2.png}
{Tail paper appendix vs updated tail breakdown main}
{yes}

\end{document}
