Plugin Job SQL Questions

I am writing a plugin to filter out users who meet certain criteria. The issue I am running into is that I have to load all users and filter them manually as you cannot query the Users with a LIKE selector. Is there a way to easily query the database using SQL other then querying the database direclty? I could write a much more efficient SQL query to get the users I am looking for.