 .QL is an object-oriented variant of a logical query language called Datalog.Hierarchical data can therefore be naturally queried in .QL in a recursive manner.Queries written in .QL are optimised, compiled into SQL and can then be executed on any major relational database management system.