A girl on a beach with rainbow flags.
A girl is holding gay pride flags at an event at the beach.
rainbow flags do not infer that they are necessarily gay pride
exists x1 x2 x3 x4.(a_topic(x1) & on(x1,x2) & with(x2,x3) & n_flag(x3) & of(x3,x4) & n_rainbow(x4) & n_beach(x2) & n_girl(x1))
exists e1 s1 x1 x2 x3 x4 x5.(n_beach(x5) & at(e1,x5) & at(e1,x4) & n_event(x4) & Theme(e1,x2) & Actor(e1,x1) & v_hold(e1) & n_flag(x2) & of(x2,x3) & n_pride(x3) & a_gay(s1) & Theme(s1,x2) & n_girl(x1))