Fix SQL query for #ASN > 2