Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combination of RAND and [] yields error "The target variable of a BIND must not be used before the BIND clause" #1561

Open
hannahbast opened this issue Oct 17, 2024 · 0 comments

Comments

@hannahbast
Copy link
Member

The following query works if the [] is replaced by a variable, but produces the error from the title otherwise:

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT * WHERE {
  SELECT ?subject {
    ?subject wdt:P31 []
  }
  ORDER BY RAND()
  LIMIT 1
}

https://qlever.cs.uni-freiburg.de/wikidata/DTNSyc

@hannahbast hannahbast changed the title The target variable of a BIND must not be used before the BIND clause (for combination of RAND and []`) Error "The target variable of a BIND must not be used before the BIND clause" for combination of RAND and [] Oct 17, 2024
@hannahbast hannahbast changed the title Error "The target variable of a BIND must not be used before the BIND clause" for combination of RAND and [] Combination of RAND and [] yields error "The target variable of a BIND must not be used before the BIND clause" Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant