Table: tricity_population
Columns: city
area_1996_km
area_2006_km
pop_1999
pop_2003
pop_2006

Question: Which area 2006 km² has an area 1996 km² smaller than 17.31?
SQL: SELECT MAX("area_2006_km") FROM tricity_population WHERE "area_1996_km" < 17.31

Question: Which area 2006 km² has a city of sopot, and an area 1996 km² smaller than 17.31?
SQL: SELECT MAX("area_2006_km") FROM tricity_population WHERE "city" = 'sopot' AND "area_1996_km" < 17.31

Question: Which area 1996 km² has a pop 1999 of 17,510, and an area 2006 km² larger than 30?
SQL: SELECT MAX("area_1996_km") FROM tricity_population WHERE "pop_1999" = '17,510' AND "area_2006_km" > 30