MIN and MAX in face of errors

I am wondering what is the right answer to the following query

SELECT 
  (MIN(?x) as ?a)
  (MAX(?x) as ?b)
   (MIN(?x+0) ?c)
   (MAX(?x+0) AS ?d)
{
  { BIND(1 as ?x)}
  UNION
  { BIND(1 +"x" as ?x)}
  UNION
  { BIND("y" as ?x)}
}

Note that the middle BIND creates an unbound ?x, (which is lower than 1 or "y"), whereas the last BIND creates an error inside the 2nd MIN and MAXes … (when ?x="y")

I am not at all the sure that the spec is clear about these cases

Jeremy


Principal Architect
Syapse, Inc.

Received on Thursday, 10 October 2013 17:22:04 UTC