query intersection rule