The Spaniards defeated Fuchse Berlin in the final; Montpellier beat Al Sadd to finish third.
The German side will take on reigning champions Barca Lassa in the final on Friday.
The Qataris to take on German side Füchse Berlin; Barcelona play Montpellier in the other semis
Reigning champions Barcelona take on Al Najma and Montpellier play Sportive de Hammamet
Hassan Mohamed top-scored for Qatar with six goals
Qatar had beaten Bahrain 33-31 (16-17) at the 2018 Asian Championship final in Suwon, South Korea, management.
Qatar are defending champions at the multi-discipline continental competition, which begins in Indonesia from August 18.
Wakrah defeated Qatar Sports Club in the final
Hungary won the girls crown after they defeated Germany 30-17.
The World Schools Handball Championships is organised by Qatar School Sports Association.
The hosts need to beat Denmark in their final group match to have any chance of progressing to the knockout round
The hosts had defeated Morocco in their opening match
The Qatari boys will open their campaign against Morocco on Thursday
Qatar has been hosting the prestigious tournament for the last eight years
Valero Rivero’s men defeated Bahrain for the third consecutive time in the final