Pregunta de entrevista de Bristol Myers Squibb

Write SQL query given 2 tables. Asked to write few standard pandas function.