Select where duration not nil

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>