Practice examples on logic and resolution