QQL allows users to define custom social media metrics by writing SQL queries. Users can create new custom metrics by clicking "Custom Metrics" and entering SQL code, or modify existing metrics by accessing the QQL Console through the question mark next to each metric. The Quintly help site provides examples of custom metrics and tutorials for writing QQL queries to track metrics like interaction rates, comments, hashtag activity, and own tweets over time.