Basic Query Element interface for database query