add query message sample