For the first time, defendants convicted in special security courts have been granted a right of appeal.
But the first court referred the case to the special security court in May.
In a separate case, the special security court sentenced a protester to death for killing a policeman.
Earlier, the security court had sentenced two other protesters to death for killing a police officer.
About 200 people packed the courtroom of Kabul's primary security court.
Belmarsh is a maximum security court next to a prison where cases of suspected international terrorists are generally heard.
The security court was abolished, and measures were introduced to control police harassment.
The courtroom in Trafalgar chosen for the preliminary hearing was maximum security court three.
It was a maximum security court after all.
AP reports that the sentences had been given by a special security court set up under a period of emergency law last year.