Use Symbol#to_proc with query method to simplify #completed_tasks and
example