It‘s fascinating how well the SPINACH tool works in many cases. It generates #SPARQL queries for #Wikidata from questions in natural language using an #LLM.
Try it for instance with a question like “Give me all current members of the Bundestag”. https://spinach.genie.stanford.edu/
Here’s the paper on the technology behind it: https://arxiv.org/abs/2407.11417
One of the more convincing use cases for an LLM, if you ask me.
Two other questions I tried successfully are “Give me the names of the current members of the EU that don't use the Euro as their currency at all.” and “Give me the names of the ten largest cities in the world with a female mayor, sorted by population size.”
@johl I had luck with SQLite queries and subqueries as well!
@johl I've been waiting for a thing like this, very cool!