Change the following sentences into a question form.
(a) They were going to the library just now.
(i) Where did they go?
(ii) Where were they going to/ ...going?
(b) There are many ants on the table eating candies.
(i) Why were there many ants on the table?