Suppose you’re given the below tables, containing animal weights, as well as a directory of zoos:Table name…