EntityGroup[{entity1,entity2,…}]
represents a group of entities.
EntityGroup
EntityGroup[{entity1,entity2,…}]
represents a group of entities.
Details
- EntityGroup allows operations on groups of entities, for example finding the total population of a set of different countries.
- An entity is generally specified as Entity[type,canonicalname]. A list of currently available entity types is given by EntityValue[].
- Entity expressions can be created by using the
interface.
Examples
open all close allBasic Examples (3)
Give the total population of a group of countries:
EntityValue[EntityGroup[{Entity["Country", "China"], Entity["Country", "India"]}], "Population"]Give the total populations for entities of mixed types:
EntityValue[EntityGroup[{Entity["Country", "China"], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}], "Population"]Give the total mass of all planets:
EntityGroup[EntityClass["Planet", All]]["Mass"]Applications (2)
Provide the total mass of a combination of chemicals specified using different physical quantities:
EntityValue[EntityGroup[{EntityInstance[Entity["Chemical", "CarbonDioxide"], Quantity[3, "Moles"]], EntityInstance[Entity["Chemical", "MolecularOxygen"], Quantity[800, "Liters"]]}], "AbsoluteMass"]EntityValue[EntityGroup[{
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 2, "Euros", "coin"}], 2],
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 1, "Euros", "coin"}], 3],
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 5, "EuroCents", "coin"}], 4]
}], "Value"]//NAdd currency denominations from different monetary systems:
EntityValue[EntityGroup[{
Entity["CurrencyDenomination", {"UnitedStates", 10, "USDollars", "banknote"}],
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 2, "Euros", "coin"}], 2],
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 1, "Euros", "coin"}], 3],
EntityCopies[Entity["CurrencyDenomination", {"EconomicAndMonetaryUnion", 5, "EuroCents", "coin"}], 4]
}], "Value"]Properties & Relations (2)
An EntityGroup of n copies of an entity is equivalent to EntityCopies[entity, n]:
EntityValue[EntityGroup[Table[Entity["Building", "EiffelTower::5h9w8"], {2}]], "Height"]EntityValue[EntityCopies[Entity["Building", "EiffelTower::5h9w8"], 2], "Height"]The entities can be given as an entity class:
EntityGroup[EntityClass["Country", "Europe"]]["Area"]The result is the same when an explicit list of entities is provided:
EntityGroup[EntityList[EntityClass["Country", "Europe"]]]["Area"]Possible Issues (2)
Defining a group containing entities of different types does not take into account possible inclusion of one domain in another:
EntityValue[{Entity["Country", "UnitedStates"], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}, "Population"]EntityValue[EntityGroup[{Entity["Country", "UnitedStates"], Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}], "Population"]Properties whose associated physical quantity is not extensive give Missing[…]:
EntityGroup[{Entity["Element", "Hydrogen"], Entity["Element", "Hydrogen"]}]["AtomicMass"]See Also
Related Guides
History
Text
Wolfram Research (2015), EntityGroup, Wolfram Language function, https://reference.wolfram.com/language/ref/EntityGroup.html.
CMS
Wolfram Language. 2015. "EntityGroup." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EntityGroup.html.
APA
Wolfram Language. (2015). EntityGroup. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EntityGroup.html
BibTeX
@misc{reference.wolfram_2026_entitygroup, author="Wolfram Research", title="{EntityGroup}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/EntityGroup.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_entitygroup, organization={Wolfram Research}, title={EntityGroup}, year={2015}, url={https://reference.wolfram.com/language/ref/EntityGroup.html}, note=[Accessed: 13-June-2026]}