.ql (pronounced "dot-cue-el") is an object-oriented query language used to retrieve data from relational database management systems. it is reminiscent of the standard query language sql and the object-oriented programming language java. .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.