Adaptive Query Optimization in Point to Point Networks