To see a visual mapping of how widgets are related to datasets and their associated queries, click on More Settings -> Data Diagram on the widget settings.
You can preview visualizations, edit the query directly from the diagram as well as zoom into any derived datasets.
The diagrams are also accessible the query listing page.