Get query interface working