Answering the two questions in reverse order:
-- No. I don't need to know how the speed of the person changed before I can answer the question. I can answer it now.
-- The NET work done by the gravitational force is<em> zero</em>.
-- As the person and his girl-friend go up the first half of the wheel, the motor does positive work and gravity does negative work.
-- After they pass the peak at the top and come down the second half of the wheel, the motor does negative work and gravity does positive work, even though the couple may be interested in other things during that time.
-- The total work done by gravity in one complete revolution is zero.
-- The total work done by the motor in one complete revolution is only what it takes to pay back the energy robbed by friction and air resistance.