PyQPL (Python Query Processing Language) is a scripting language which allows you to easily construct very complex queries.
The key features are:
Support for custom operators: Creation of custom operators, by using the Operator class, or just declaring it's type directly in the query. And custom operator translation via lambda function injection into the translator.
This functionality is only available in manual query Building