Cardlytics interview question

Given triangle sides state it's type? GroupBy and self join queries.