code: function(json, queryStr, unique) {	
  	var pick = new RegExp(/select|pivot/)
  	, trim = /^\s+|\s+$/g
  	, _query = {};
  
  	queryStr = queryStr && _.isString(queryStr) && queryStr.replace(/["]/g, '');
  	if (pick.test(queryStr)) {
  		_query = _.reduce(queryStr.split(/,/), function(res, str) {
  			if (str.replace(trim, '').split(/ /)) {
  				res[_.first(str.replace(trim, '').split(/ /))] = _.last( str.split(pick) ).replace(trim, '');
  			}
  			return res;
  		}, {'select': ''});
  	} else {
  		_query = {'select': ''};
  	}
  	
  	return _query.hasOwnProperty('pivot') 
  		? pivot( select(json, _query.select, unique) )
  		: select(json, _query.select, unique);
  }
docs: grammar: <keyword> <argument>, <keyword> <argument1>, ... keywords: select, pivot arguments: string with embedded spaces.