D. le is used to ask or answer questions about where someone went/has gone.
    1. Zuótiān xiàwǔ nǐ qù nǎr le?
      昨天下午你去哪儿了?
      Where did you go yesterday afternoon?

    2. Wǒ qù túshūguǎn le.
      我去图书馆了。
      I went to the library.

    Note that the following sentence answers the question,“what did you do?” So it is not exactly the answer for the question above,“where did you go?”

    1. Wǒ qù-le yí tàng túshūguǎn.
      我去了一趟图书馆。
      I went to the library. (Lit. I took a trip to the library.)

    1. Shàng gè zhōumò tāmén dào nǎr qù le?
      上个周末他们到哪儿去了?
      Where did they go last weekend?

    2. Tāmén dào Shànghǎi qù le.
      他们到上海去了。
      They went to Shanghai.