How to create custom Page List queries using the QueryBuilder object?

Permalink
In the PageList object documentation, there is a mention of creating custom queries using the QueryBuilder object.
http://www.concrete5.org/documentation/developers/5.7/working-with-...
http://doctrine-dbal.readthedocs.org/en/latest/reference/query-buil...

Would anyone be able to create a few examples of how this might be done?

I know that myself and others would find this very useful.


Thank you

MrKDilkington