Meta interview question

simple pandas task to mimic sql filtered query