Extension:DataTable2/Lua

mw.ext.datatable2.select
Selects data from a logical table. The arguments work the same way as the arguments  in the   tag.

The result is returned as a (potentially empty) numerically-indexed array (with indexes starting at 1) of associative arrays, each of which represents a record. If no records are found, false is returned.