Replace all HasQualifyingTable with HasQualTable
Work in progress