The agricultural revolution came first, and it helped in making the industrial revolution possible by making more people work(plant trees) so they feed more people so more people lived so they went to work(factories, inventing etc.) so in my opinion and according to books in school the agricultural revolution was first.