
1. Is there a centrifugal juicer that costs greater than $600?
   Create an XPath expression to answer this question.

   some $i in //juicer[@type='centrifugal']/cost satisfies $i &gt; number(600)

   Or, equivalently,

   //juicer[@type='centrifugal']/cost &gt; number(600)


2. Do all the centrifugal juicers cost under $200?
   Create an XPath expression to answer this question.

   every $i in //juicer[@type='centrifugal']/cost satisfies $i &lt; number(200)

   Or, equivalently,

   not(//juicer[@type='centrifugal']/cost &gt; number(200))

   Note that this is *not* correct:

   //juicer[@type='centrifugal']/cost &lt; number(200)


3. Write an XPath expression that selects all the gear juicers and all the press juicers

   //juicer[@type='gear'] union //juicer[@type='press']

   Or, equivalently,

   //juicer[@type='gear'] | //juicer[@type='press']

   Or, equivalently,

   //juicer[@type='gear' or @type='press']


4. Select all juicers that are gear and electric.

   //juicer[@type='gear'] intersect //juicer[@electric='true']

   Or, equivalently,

   //juicer[@type='gear' and @electric='true']


5. Select all the gear juicers except Green Power Gold Juice Extractor

   //juicer[@type='gear'] except //juicer[@type='gear'][name='Green Power Gold Juice Extractor']

   Or, equivalently,

   //juicer[@type='gear' and name!='Green Power Gold Juice Extractor']