Every condition in the English query must appear in the predicate.
The relation connections are essential:
$s.\mathrm{sid}=b.\mathrm{sid}$
connects a store to its branch.
$s.\mathrm{sid}=h.\mathrm{sid}$
and
$b.\mathrm{city}=h.\mathrm{city}$
connect the correct branch to its fruit inventory.
$h.\mathrm{fid}=f.\mathrm{fruit\_id}$
identifies which fruit the inventory record represents.
Then apply the required restrictions:
$b.\mathrm{city}=\mathrm{'Berkeley'}$
$b.\mathrm{open24}$
$f.\mathrm{name}=\mathrm{'pineapple'}$
$h.\mathrm{quantity}\geq 5$
$h.\mathrm{price}<3$
$s.\mathrm{parent\_company}=\mathrm{'WFM'}$.
Finally,
$x.\mathrm{store\_name}=s.\mathrm{store\_name}$
constructs the desired output.
Therefore A is correct.