properly add query to sms list query