Did you know ... Search Documentation:
Predicate table_previous_record/3