In 2019 and 2020, we provided listing service and analytics services to Fang and other companies controlled by Mr. Vincent Tianquan Mo. The total revenues in connection with the listing services provide by us to Fang were approximately RMB26.4 million, nil and nil, respectively, in 2019, 2020 and 2021. We also provided analytics services to Beihai Long Island Hotel Co., Ltd., Guangxi Pukai Xingye Hotel Investment Co., Ltd. and Beijing CheTianXia Information Co. Ltd., all of which are controlled by Mr. Vincent Tianquan Mo, and generated revenues of RMB4.7 million, RMB4.7 million and RMB7.8 million from these three entities in 2019, respectively. We generated revenues of RMB4.7 million, RMB2.4 million and RMB3.9 million from these three entities in 2020, respectively. We generated nil analytics services revenue from these three entities in 2021. As of December 31, 2019, the amounts due from Beihai Long Island Hotel Co., Ltd. and Beijing CheTianXia Information Co. Ltd were RMB1.5 million and RMB3.3 million, respectively. As of December 31, 2020 and 2021, the amounts due from Beihai Long Island Hotel Co., Ltd. and Beijing CheTianXia Information Co. Ltd were nil.
In 2019, Fang performed centralized functions on our behalf prior to our separation from Fang. Accordingly, certain amount of Fang’s costs was allocated to us and reflected as expenses in the combined and consolidated financial statements. Costs and expenses allocated from Fang in 2019 were RMB4.4 million. In addition, certain of our employees participated in Fang’s share-based compensation plans, and accordingly, the share-based compensation expenses related to Fang’s share-based awards were RMB3.9 million in 2019.
We have leased office space from Fang in 2019, 2020 and 2021 for which the rental expenses were RMB7.6 million, RMB7.6 million and RMB7.6 million (US$1.2 million), respectively. We entered into a lease framework agreement with Fang in 2018, with an initial term of ten years, pursuant to which Fang leases offices to us at annual rental fee of RMB7.6 million.
We used certain of Fang’s software in 2019, 2020 and 2021 pursuant to the software license agreement entered into between Fang and us in relation to our separation from Fang, and incurred software license expenses in the amount of RMB0.3 million, RMB0.5 million and RMB0.5 million (US$78,000), respectively. We also utilized the server and other IT services of Fang in 2019, 2020 and 2021 and incurred network related expenses in the amount of RMB5.2 million, RMB7.5 million and RMB7.5 million (US$1.2 million), respectively.
During the period from the completion of our separation from Fang to December 31, 2021, we made certain cash collections and cash payments on behalf of Fang and vice versa. In November 2019, we entered into an agreement with Fang, according to which, net balances between Fang, its subsidiaries and consolidated affiliated entities, on the one hand, and our company, our subsidiaries and VIEs, on the other hand, are to be settled on a quarterly basis. Accordingly, the amounts due to Fang were RMB156 thousand and RMB12.3 million (US$1.9 million) as of December 31, 2020 and 2021, respectively, after offsetting amounts due from and prepayments to Fang of RMB84.8 million and RMB83.8 million (US$13.2 million) as of December 31, 2020 and 2021, respectively.
In April 2020, we disposed of two of our subsidiaries, namely Shouxiruizhi Commercial Service (Chengdu) Co., Ltd. and Shuntaiduoli Network Technology (Chengdu) Co., Ltd. to Fang for a consideration of RMB4.3 million, which was the carrying amount of the net assets of the two subsidiaries as of the date of disposal. We collected the consideration in cash in October 2020.
We provided a cash advance of RMB3.1 million to one of the non-controlling interest holders of Shouzheng in 2020. As of December 31, 2020, the amount due was RMB3.1 million and we collected the balance in cash in March 2021.
On May 31, 2021, we entered into a contract with one of the non-controlling interest holders of Shouzheng, pursuant to which we were engaged to provide data services from July 1, 2021 to June 30, 2022 for a total consideration of RMB500 thousand. We recognized data services revenue of RMB238 thousand (US$37.3 thousand) from this related party for the year ended December 31, 2021.