Five girls on a carnival ride.
A carnival ride has five girls on it.
Ride has five girls on it is rephrasing of five girls on a carnival ride.
exists s1 x1 x2.(a_topic(x1) & on(x1,x2) & n_ride(x2) & a_carnival(s1) & Theme(s1,x2) & n_girl(x1) & card_eq_5(x1))
exists e1 s1 x1 x2.(on(e1,x1) & n_thing(x1) & Theme(e1,x2) & Actor(e1,x1) & v_have(e1) & n_girl(x2) & card_eq_5(x2) & n_ride(x1) & a_carnival(s1) & Theme(s1,x1))