The word under is a preposition, because it indicates where the children were / sat.
9.4m questions
12.2m answers