top k query (python ver.) This code is implemented for the assignment of database class This code implemented Fagin method, TA method, NRA method