Generate a query and a countquery from all of the information supplied to the object.
$get_count: Provide a countquery if this is true, otherwise provide a normal query.
Overrides PluginBase::query
public function query($get_count = FALSE) { }