The goal? What you want to end up with?
One of these helps you reach the goal, and one of them IS the goal. Which is which?
whatever that doesnt help goodbye
If you are unwilling to take a question apart, make sure you are confident of every single word in it, and read and understand it all, then you will have a tough time in your schooling.
This is a very simple question -- basically, which comes first? You have to have data (facts, details, information) before you can plan and write a research paper based on that data. Therefore, the data comes first, and the research article (paper) comes next.
Think, read, understand, think some more.