Adds distinct queries option for terms_stats charts