Consolidated generation of game log SQL clauses