SPARQL: fix BNodeGenerator (syntax error)
SPARQL:
- fix results of illegal types
- avoid unnecessary joins with nodes table
SPARQL:
- fix results with invalid types
- avoid unnecessary joins with nodes table