querying using cli