select ?x1 ?x2 where { ?x1 ?x2. ?x2 ?x3. }