X by 2 interview question

How would you implement sql?