premise: A young boy enjoys several children books scattered on the floor, next to a shelf of toys. hypothesis: A small child looks at children's books near some toys.
entailment: Sentence 2 follows sentence one because it is a less specific phrasing of sentence one. A young boy is a kind of small child. In both sentences, the subject is looking at books near toys. First sentence you know it's a shelf. You assume it's the same subject and action and/or event.