Use string range for wakeup query