add query optimizer explanation