I came across similar questions but none of them had a complete example of how to accomplish it.
The SQL query I am trying to translate is this:
SELE
The code above needs
[ex setName:@"somename"];
before executing the fetchRequest.