queries written in .ql are optimised, compiled into sql and can then be executed on any major relational database management system. .ql query language is being used in semmlecode to query a relational representation of java programs.