Database: bike_share_1
Question: What is the average duration of trips that ended on a foggy day?
SQL: SELECT AVG(T1.duration) FROM trip AS T1 INNER JOIN weather AS T2 ON T2.zip_code = T1.zip_code WHERE T2.events = 'Fog'