Given a signature $\Sigma$ consisting of an empty set of functions and a set of predicates $P=\{human,\ shelter,\ need\},$ where $need$ is of arity two and $human$ and $shelter$ have arity one, I want to express the sentence "Every human needs a shelter" over a set of variables $X.$
The answer that first came to my mind is: $$\forall x,y\: \Big(\text{human}(x)\rightarrow \big(\text{shelter}(y)\rightarrow \text{need}(x,y)\big)\Big).\tag1$$ The problem with this is that it expresses, that every variable that qualifies as a shelter is needed by all humans, which is not quite, what the sentence is saying.
An alternative is to use an existential quantifier instead of the universal quantifier for $y$, which yields $$\forall x\:\Big(\text{human}(x)\rightarrow \exists y\:\big(\text{shelter}(y)\rightarrow \text{need}(x,y)\big)\Big).\tag2$$ The problem with this is that it entails that the existence of humans implies the existence of shelters, i.e. for every interpretation, where shelter is empty and human is not empty, the formula is falsified.
How to solve the given problem?
The example is a bit difficult because "need" is a so-called intensional predicate: It combines with an object that, even when truthfully existentially quantified, may not actually exist in the universe of discourse; from the existential quantification "a shelter" we would actually not want to infer that there exist any shelters, even when it is true that all humans need one. This kind of situation can not be accurately represented with plain first-order logic, so the truth conditions will not exactly match the intended ones. But let's assume here that there exist indeed shelters.
Yes, that's incorrect. This statement reads "Every human needs every shelter".
No, that's not the case. If there are no shelters at all, then every object will falsify $shelter(y)$ and thereby satisfy $shelter(y) \to need(x,y)$ by the truth conditions of $\to$. Even worse, as soon as there is anything at all in the universe that is not a shelter, the inner implication and thereby the existential statement becomes true. This is not what we want.
The correct answer is
This means that for every individual that is human, there is something which is a shelter and needed by them.
"Some P Q" means $\exists (P(x) \land Q(x))$: An existential quantifier typically goes with a conjunction to get the desired truth conditions, whereas the univesrsal quantifier normally goes with implication. So a statement of the form $$\text{Every subject verbs an object}$$ translates $$\forall x (Subject(x) \to \exists y (Object(y) \land Verb(x,y)))$$