HQLs and MQLs