Writing operations in Qrimp is similar to writing stored procedures. You can use existing operations as templates to build your new operations. To view existing operations go to Admin > Operations.
You can use wildcards with % around a word that you want to restrict your query on. ie: like '%overdue%'.