Use the IN operator in the query.

Religion in ('Hindu', 'Muslim') AND/OR Caste in ('Kayastha','Kshtriya')