The lines of treatment, metastases, and PD-L1 expression levels were independent risk factors for the mPFS and mOS of patients with advanced NSCLC. The gene discussed is CD274; the disease is non-small cell lung carcinoma.