Low Rank Learning for Offline Query Optimization