。
I like playing basketball.
Literal
I [topic-は] basketball [object-を] do [nominalizer-こと] [subject-が] liked.
バスケットボールをすること ('the act of playing basketball') — the nominalized clause serves as the subject of 好き. An alternative phrasing to the more common バスケットボールが好き — the こと version emphasizes the activity of playing rather than the sport itself.