Arbitrary SQL Queries for Database Mashables
You can configure custom database mashables to handle arbitrary queries using finders that are built into Presto. You can also define custom finders to support specific, custom queries. This topic discusses the pros and cons of each approach.