Prodinf Software Interview Question

Data structures and algorithms, SQL queries on multiple tables