Bristol Myers Squibb Interview Question

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