Basically gravitational force exists between any two objects possessing mass
It is given by
Fg= GmM/r^2
Where m and M are the masses of the objects and r is the distance between them and G is a constant
So clearly, the planet with tha largest mass should have highest gravitational pull by the sun, I.e, Jupiter
Now if they have the same mass, the gravitational pull should be same according to the formula