Is there a way to search for papers such that the data used are also published on google scholar?
Not through Google Scholar. Instead, see repositories of open data, including Google Dataset Search, Open Science Framework, and others specific to your discipline.