Test datalog queries lint correctly