Ivalua interview question

Write a class structure and some basic SQL queries with joins etc.