Amino interview question

How can we query data efficiently from large data set?