I want to implement this query in xcode
Select * from people where age >40 and mariageState = false
I can retrive all records but could not narrow my search with the conditions of age and mariagestae
How can I use NSPredicate or NSFetchRequest to implement such query?