translate the following question to a SPARQL query over the dbpedia: which european…
- User
translate the following question to a SPARQL query over the dbpedia: which european country first adopted euro?
Assistant
SELECT DISTINCT ?country WHERE { ?country a dbo:Country ; dbo:currencySchema ?currencySchema ; dbo:adoptionDate ?adoptionDate . FILTER(?currencySchema = dbo:Euro && ?adoptionDate = (MIN(?adoptionDate) as xsd:date) WHERE { ?country dbo:currencySchema dbo:Euro ; dbo:adoptionDate ?adoptionDate . FILTER(?adoptionDate = MIN(?adoptionDate) as xsd:date) } ) FILTER(?country/dbo:iso3166 REGEXP "^[EFR][A-Z]" ) }
Explanation:
The query selects all European countries (filtered by ISO 3166 code) that use the euro currency and have the earliest adoption date. The MIN() function is used to find the earliest adoption date.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.