Querying the group mind: Applying query theory to decisions made by groups