Question: What is the first-level, administrative-country subdivision which is established not in 1823 and is located in Spain?
Choices:
England
Aargau
Upper Austria
Minas Gerais
Rio Grande do Sul
Rio de Janeiro
Tasmania
KwaZulu-Natal
Podlaskie Voivodeship
Catalonia
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1823
!=
function: FilterConcept
dependencies: 1
inputs: first-level administrative country subdivision
function: Find
inputs: Spain
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: first-level administrative country subdivision
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1823 ) . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Spain" .  }
Answer: Catalonia