Lalamove interview question

how you use SQL/Python to slove a problem? what's the result?