changed nomenclature: sql->query