SELECT  Calll.x , Calll.c*COUNT(*)
FROM sparqltable( SELECT ?nu ?str ?d ?x ?c
		  WHERE{ 	?x rdf:type 'SMS'.
		       	?x :data ?d.
			?x :Caller ?z.
			?z rdf:type 'User'.
			?z :numberPhone ?nu.
			?x :SP ?w.
			?w rdf:type 'Word'.
			?w :content ?str.
			(?z :Contract ?p) :cost ?c.
			?p rdf:type 'Operator'.
		}
	   )Calll
WHERE Calll.nu = 5556 AND Calll.d BETWEEN '2004-01-01' AND '2004-12-31'
GROUP BY Calll.x
