ldl++(6)> query rgc(I,X,Y,C)
Querying : rgc(I,X,Y,C) ...
(0, a, d, 5)
(0, b, d, 1)
(0, c, d, 2)
(1, a, d, 10)
(1, b, d, 6)
(2, a, d, 12)
The number of records is 6.
ldl++(7)> query final_count(X,Y,C)
Querying : final_count(X,Y,C) ...
(c, d, 2)
(b, d, 7)
(a, d, 27)
The number of records is 3.