The Liberal party has retained Ryde, the last seat to be decided at the New South Wales election, the ABC's election analyst, Antony Green, has confirmed.
The final result leaves Labor holding 45 seats, the Coalition with 36, the Greens on three, while independent candidates hold nine seats.