gpt-4-0314· OpenAI
Arena Human Preference 55K
Create a wikidata query which returns names which start with 'r', are a single word, and…
- User
Create a wikidata query which returns names which start with 'r', are a single word, and are an instance of bird (Q5113)
- Assistant
To create a query to find bird names starting with "r" and are single-word in Wikidata, you can use the following SPARQL query:
codeSELECT ?bird ?birdLabel WHERE { ?bird wdt:P31 wd:Q5113. ?bird rdfs:label ?birdLabel. FILTER(LANG(?birdLabel) = "en"). FILTER(STRSTARTS(UCASE(?birdLabel), "R")). FILTER(!CONTAINS(?birdLabel, " ")). } ORDER BY ?birdLabelThis query selects birds that are an instance of Q5113 (bird) and filters the results to include only English labels (bird names) starting with "R" and not containing any spaces, thus ensuring they are single-word names. The results are then sorted alphabetically by the bird label.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.