This queries an Sqlite3 database.
Within the Add-ons installer, click on "Add more..." and type in Orange3-Sqlite3
You can set the target using the Select Columns widget and make a Categorical variable using Edit Domain.
Simple widget to load a table from an SQL query against an SQLite3 database