Motive interview question

Related to reporting and sql