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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.