1. isClothes(a) <- tShirts(a), jeans(a), NOT toys(a), a>= 300. 2. Pairs(a,b) <-. Pairs(b,c) <-. Pairs(a,c) <-. 3. R(x,y) <- Results(x,y), y>3
2. Smaller(x, y) <- x < y. BIggerThanOne(1, x) <- x > 1. SmallerThanFive(y, 5) <- y < 5.Note: #2 is not a Datalog
3. Pair(x, y) <- Smaller(x, y), y > 3