1
$\begingroup$

I have a list of entities from Wikipedia. I'd like to get the "entity" e.g. when I do something like:

= Elon Musk

I get:

enter image description here

But now I want to iterate through a list of entities, e.g. {Elon Musk, Bill Gates, ...} and get their net worth like so:

enter image description here

But in order to do that I need the light orange 'entity' I think?

Because if you look at the input form, there seems to be some ID following the name:

enter image description here

$\endgroup$
  • $\begingroup$ ReverseSortBy[{#, DecimalForm[ QuantityMagnitude[SemanticInterpretation[#]["NetWorth"]], DigitBlock -> 3, NumberSeparator -> "\[ThinSpace]"]} & /@ {"Elon Musk", "Bill Gates", "Jeff Bezos"}, Last] $\endgroup$ – Bob Hanlon Apr 28 at 5:48
  • $\begingroup$ Thank you so much Bob! Works beautifully $\endgroup$ – Youssef A Apr 28 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.