Creating a dynamic fusion table with SQL