Map/Reduce Built-in functions and query

Can someone show an example of how to use the UML built-in functions for map and reduce in a query?