avg_avg_pop_query = """
SELECT AVG(population_density)
-FROM sf1_blocks
+FROM blocks
WHERE population_density > 0.005;
"""
stddev_avg_pop_query = """
SELECT stddev_samp(population_density)
-FROM sf1_blocks
+FROM blocks
WHERE population_density > 0.005;
"""
query = """
-SELECT tiger_blocks.blkidfp00, population_density, AsKML(the_geom) as geom
- FROM (sf1_blocks INNER JOIN tiger_blocks
- ON sf1_blocks.blkidfp00 = tiger_blocks.blkidfp00);
+SELECT blkidfp00, population_density, AsKML(the_geom) as geom
+ FROM blocks;
"""
cursor.execute(query)