The query() function is executed on a view that resides in one of the projects.
query()
Here is the syntax:
project_name.query('SELECT * FROM my_project.my_view LIMIT 100')