Abstracting and sxc query api