How can run sql query CoreData similar this:

```
SELECT COUNT(*) FROM headphones WHERE id IN (SELECT id FROM old_headphones);

```

I read NSPredicate guide and NSExpression, but don't understand how to do this.