factor together big sql lookup