This is a sample product query management code, which is created as an assignment solution.