Search for objects using the same syntax as Rules.
data.name = "bob" AND data.age < 60 AND data.emails != "firstname.lastname@example.org" AND createdAt > 3 HOURS_AGO
Objects will be returned in an array which may contain anywhere from 0 to 25 results.
There is currently no way to sort the results or retrieve subsequent pages from within workflows. You should instead limit your query to match on fewer objects.