Toddler boy in a red hat holding on to some railings.
The child is adjacent to a wall or some other surface.
The toddler is a child too.  The railing is on the wall.
exists e1 s1 x1 x2 x3 x4 x5.(a_topic(x1) & in(x1,x3) & r_on(e1) & to(e1,x5) & n_railing(x5) & Actor(e1,x4) & v_hold(e1) & (x3 = x4) & n_hat(x3) & a_red(s1) & Theme(s1,x3) & n_boy(x1) & (x1 = x2) & ne_nam_toddler(x2))
exists s1 x1 x4.(n_surface(x4) & n_child(x1) & (exists x2.(to(s1,x2) & n_wall(x2)) | exists x3.(to(s1,x3) & -(x3 = x4) & n_surface(x3))) & Theme(s1,x1) & a_adjacent(s1))