I bought a Premium Economy (class N) return ticket from Sydney to Frankfurt on the Lufthansa site. The last leg is a Lufthansa flight (LH9780) but the flight was operated by Singapore Airlines.
This last leg of the flight is not eligible for Miles & More points, even though the ticket is from Lufthansa and bought on the Lufthansa website.