virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

Translation of {a SPARQL SELECT query involving BIND, conditional-or, and multiple EXISTS} produces a SQL syntax error

Open edom opened this issue 3 years ago • 1 comments

Version

Virtuoso version 08.03.3323 on Linux (x86_64-generic-linux-glibc25) Single Server Edition (62 GB total memory, 44 GB memory in use)

How to reproduce

  1. Open https://dbpedia.org/sparql/ in a browser.
  2. Replace the content of the "Query Text" text area with this:
    SELECT * WHERE { BIND ((EXISTS {} || EXISTS {}) AS ?a) }
    
  3. Click "Execute Query".

Actual result

Virtuoso 37000 Error SQ074: Line 8: syntax error at 'EXISTS' before '('

Expected result

1

edom avatar Jun 04 '22 21:06 edom

We have been able to recreate this issue and are looking into it ...

HughWilliams avatar Jun 04 '22 22:06 HughWilliams