Meta data scientists track user engagement through social interactions. You need to determine the overall acceptance rate of friend requests.
The acceptance rate is calculated as the number of unique accepted requests divided by the total number of unique friend requests sent.
Rules:
- A unique request is defined by the sender_id and send_to_id pair.
- A unique acceptance is defined by the requester_id and accepter_id pair.
- The result should be rounded to 2 decimal places.
- If there are no requests at all, the acceptance rate should be 0.00.
- Output column: accept_rate.
Example logic:
If user 1 sends a request to user 2, and user 1 sends another request to user 2 (duplicate), it only counts as one unique request. The same applies to acceptances.