Four girls are jumping up and down on the sand near the ocean.
A group of girls are by the ocean
"by the ocean"is a rephrasing of  " near the ocean".
exists e1 e2 s1 s2 x1 x2 x3 x4 x5 x6.(n_ocean(x6) & n_sand(x5) & n_ocean(x3) & n_sand(x2) & near(e2,x6) & on(e2,x5) & a_down(s2) & Manner(e2,s2) & Actor(e2,x4) & v_jump(e2) & n_girl(x4) & card_eq_4(x4) & near(e1,x3) & on(e1,x2) & a_up(s1) & Manner(e1,s1) & Actor(e1,x1) & v_jump(e1) & n_girl(x1) & card_eq_4(x1))
exists p1 x1 x2 x3.(n_ocean(x3) & by(x1,x3) & of(x1,x2) & n_girl(x2) & n_group(x1))