23andMe interview question

Q: How to write a certain code to query and organize a data set?