Add Custom Queries to histogram, terms, and table modules.