Assuming F(x,y,D) is a function, and we can evaluate it in polynomial time with input x, y and D.
Consider the problem P1: With D as input, computes $(x^*,y^*)=argmax_{(x,y)}F(x,y|D)$ where x and y are two sets of variables.
Another problem P2: With y and D as input, computes $x^*=argmax_xF(x|y,D)$.
If we know P2 is NP-hard, can we infer the hardness of P1? Is P1 also NP-hard?