James, Prince of Wales, 1688-1766