FactSet interview question

Python and data science sql