Hi Miguel,

> SERVICE blocks and sub-queries have different semantics relating to the 
> variable scope.

— snip —

At first I thought your answer made sense but further reflection (and Gregory 
Williams) answer brings me back to my initial impression.

Indeed, even in a query like:

select * {
  # A
  {
   values ?x { 1 2 3 }
  }
 # B
  {
    values ?y { 1 2 3 }
      filter( ?y > ?x)
  }
}

A and B should be evaluated independently and ?x is not bound in the scope of B 
so the query should return no results.

--
Gary Warren King, metabang.com <http://metabang.com/> 
Cell: (413) 559 8738
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM * gwking on twitter

Reply via email to