Skip to content
The Chat Archive
Human-written demonstration (OpenAssistant volunteers)· OpenAssistant (human-written) OpenAssistant Conversations (oasst2)

Write a SPARQL query to fetch (up to) 50 Wikidata items representing people who identify…

In OpenAssistant data, “assistant” turns were written by human volunteers as demonstrations. They are not model outputs.
  1. User

    Write a SPARQL query to fetch (up to) 50 Wikidata items representing people who identify as non-binary

  2. Assistant

    Here is a SPARQL query to fetch (up to) 50 Wikidata items representing people who identify as non-binary:

    SELECT DISTINCT ?item ?itemLabel ?genderIdentityLabel WHERE { ?item wdt:P31 wd:Q5; # items that are instances of human wdt:P21 wd:Q48270; # items with gender identity of non-binary rdfs:label ?itemLabel. FILTER(LANG(?itemLabel) = "en") OPTIONAL { ?item wdt:P21 ?genderIdentity. } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 50

  3. User

    now check your previous answer to make sure that the code you have just written is correct

  4. Assistant

    The given query is written in SPARQL, a query language for querying RDF data. It retrieves distinct items (?item) along with their labels (?itemLabel) and gender identity labels (?genderIdentityLabel) for human instances with a non-binary gender identity.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.