Metalsa interview question

Library database in sql question