How is the noun clause used in the sentence?


What the man had ordered from the menu looked quite tasty.


A.

indirect object


B.

subject


C.

object of a preposition


D.

direct object