WMI and SQL

WMI queries use WMI Query Language (WQL), a subset of SQL. For more information about WMI queries, see Querying with WQL.

WMI Reference

Querying with WQL