MariApps interview question

query optimization