The query() function is executed on a data source connected to MindsDB and saved into a variable. It performs a join operation between tables.
query()
Here is the syntax:
my_data_source.query('SELECT * FROM my_table t JOIN another_table a ON t…=a… LIMIT 100')