LinkedIn interview question

SQL on determining user's social graph metrics.