

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CSA PROBLEM SET Due in class Wednesday May
p oints Consider the conjunctive queries
Q pAB qAC rCB Q pAB qBD rDA
Do es the symb ol mapping B A D C and A B demonstrate that Q Q Why or why not
p oints Find all equivalences and containments among the four conjunctive queries b elow Note that c is a constant in Q Q pXY arcXA arcAB arcBY Q pXY arcXA arcAB arcBC arcCY Q pXY arcXA arcBC arcDY arcXB arcAC arcCY Q pXY arcXA arcAc arccB arcBY
p oints Consider the innite union of conjunctive queries Q Q where Qk is
pX arcXZ arcZ Z arcZk Zk arcZk X
Note that Qk represents not necessarily simple cycles of length k in a directed graph Find all containments among the Qs
p oints Determine whether each of the conjunctive queries
pXY arcXA arcAY arcXB arcBY XA BY pXY arcXZ arcZY XZ ZY
is contained in the other If not give a counterexample Hint The Gupta test is messy here since there are a lot of containment mappings after we replace duplicate o ccurrences of variables However in general and here in particular when there is implication of the OR over all containment mappings we can usually identify one or a few of the containment mappings that are really involved in the implication Try rst to understand what the CQs are saying and then fo cus on the containment mappings you really need
p oints Consider the logic program P consisting of the rules
pXYZ qXYZ pXYZ pAAA pAXY sX sY sZ sA
and the conjunctive query
Q pXYZ qBBB qBAA qAXY sX sY sZ sA sB
Show that Q P