SELECT  Q.ma, AVG(Q.v)
FROM	sparqltable( SELECT ?ma ?v
		  WHERE{ 	?x rdf:type 'SpecialProject'.
			?x :Do ?y.
			?y rdf:type 'Student'.
		       	?y :matriculation ?ma.
			?x :vote ?v.
			
		}
	   )Q
	
GROUP BY(Q.ma)
