Is it not possible to just do this all in one query (and just leave on the value list)? E.g.

```python
duplicates = orm.HeadTeacher.objects.filter(emis__emis=emis).order_by("-id")[1:]
```