QueryBuilderController = function(
    $scope, $http, dbService, resultsService) {
  this.scope_ = $scope;
  this.http_ = $http;
  this.dbService_ = dbService;
  this.resultsService_ = resultsService;

  this.fromYears = [];
  this.toYears = [];
  this.cities = [];
  this.disciplines = [];
  this.events = [];
  this.countries = [];
  this.genders = [];
  this.colors = [];
  this.sqlQuery = '';
  this.unboundValue = undefined;

  this.populateUi_();
  this.addGlobalMethod_();
}
@param {!angular.Scope} $scope
@param {!angular.$http} $http
@param {!DbService} dbService
@param {!ResultsService} resultsService
@constructor