add query with search control.