The US president's question came as he was given a tour of the historic gardens of the Chinese leadership's high-security Beijing compound.