First a couple of questions to determine if it is worth filing a claim.
- Was the booking all ticketed on one ticket? If it is on separate tickets then no compensation would be due. If on one through ticket as other posters have suggested I'd go with TAP first.
- Do you know the reason for either of the delays? If for instance the flight was late for weather then compensation would not be due