typeside t schema s1 : t schema s2 : t mapping m : s1 -> s2 ---------------------------------- query (toQuery m ) : s2 -> s1