(01)  PREFIX rdf: <http:// …/02/22-rdf-syntax-ns#>
(02) SELECT DISTINCT ? EID__ClassificationId
(03) WHERE  {
(04)  ?EID__EID  eid:EID_eimId ?EID__ EID_eimID.
(05)  ?EID__EID  eid:EID_hasClassification ?EID_Classification.
(06)  ?EID__Classificationeid:Classification_id ?EID__ClassificationId.
(07)  ?EID__Classification eid:Classification_hasGeography ?EID__Geography.
(08)  ?EID__Geography eid:Geography_towns?EID__GeographyTown.
(09)  ?EID__Classification eid:Classification_hasLayer ?EID__Layer.
(10)   ?EID__Layer eid:Layer_hasVariable ?EID__Variable.
(11)    ?EID__Variable eid:Variable_name ?EID__VariableName.
(12)   ?EID__Variable eid:Variable_id ?EID__VariableId.
(13)   FILTER (regex(?EID__GeographyTown, Granada and Almeria”)).
(14)   FILTER (regex(?EID__VariableName, C”)   regex(?EID__VariableName, E”)).
(15)  }
(16) ORDER BY ASC(?EID__ClassificationId)
Algorithm 7