PREFIX rdfs: PREFIX rdf: PREFIX : PREFIX apf: SELECT ?x ?m { ?x ?p ?bag . ?bag a rdf:Seq . # ?bag rdfs:member ?m ?bag apf:seq ?m }