Extract pushup tree query