Table: boney_m_ma_baker
Columns: year
single
chart
position
weeks_on_chart

Question: What is the average weeks of a song with a larger than 3 position after 1977?
SQL: SELECT AVG("weeks_on_chart") FROM boney_m_ma_baker WHERE "position" > 3 AND "year" > 1977

Question: What is the sum of the weeks on a chart a song with a position less than 1 haas?
SQL: SELECT SUM("weeks_on_chart") FROM boney_m_ma_baker WHERE "position" < 1

Question: What is the earliest year a song with a position less than 1 has?
SQL: SELECT MIN("year") FROM boney_m_ma_baker WHERE "position" < 1