We have the table person (pid,pname) We want to find the names of the persons. What is difference between a and d? I know that d is the correct answer but I don't understand why.
$$a)\, \{\langle X\rangle \mid \forall Y\, (\textrm{person}(Y,X))\}.$$ $$d)\, \{\langle X\rangle\mid \exists Y\, (\textrm{person}(Y,X))\}.$$
a) says that for every id $Y$, the name matches $X$, i.e. this set contain $X$ only if all names were equal to $X$.