I have data structure Below
I need results with group by country and group by count results like below
I have tried below code it is
$sql = &q