SELECT DISTINCT Q.ma, Q.se
FROM sparqltable( SELECT ?ma ?se ?cou
		  WHERE{ 	?x rdf:type 'Project'.
			?x :Do ?y.
			?y rdf:type 'Student'.
			?y :matriculation ?ma.
			?y :sex ?se.
			?x :Scope ?z.
			?z rdf:type 'Course'.
			?z :courseName ?cou.			
         		                 }
	   )Q
WHERE Q.cou = 'BD'
