JQL: Create custom queries using Javascript code - Mixpanel Docs
Read more about Mixpanel documentation