<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def where_entry_deleted(query):
 """ Generate a where clause for entries that have been deleted """

    return orm.select(
        e for e in query
        if e.status == model.PublishStatus.GONE.value)