Spanning Tree-based Query Plan Enumeration