Estimating Robust Query Models with Convex Optimization