Which of the following is an example of inductive reasoning?

A. Researching what type of smart phone to buy before making a decision

B. A chemist noticing a consistent pattern in two elements' interactions with each other and then developing a hypothesis

C. Getting the votes of a town's citizens before installing a governmental official

D. Stating that something is true in all cases and then providing examples