create table "8a" as select extract(month from datum) as mon, sum(bevetel) from eloadas join film on filmid=film.id where cim='Annamária' group by mon;