clarify :ready_to_run SQL logic

The AND/OR clauses in this query were ambiguous. I believe this is the intended interpretation, but would appreciate a sanity check.