merge query builders