Thomson Reuters Interview Question

Complex SQL Query