結果 : how to query a database in python