The study will first determine the optimal dose of inupadenant to be given in combination with carboplatin and pemetrexed to patients that progressed after receiving first line anti-PD(L)1 treatment for locally advanced or metastatic non-small cell lung cancer. The efficacy and safety of the combination is then compared to standard of care carboplatin and pemetrexed in the same populations.