human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Game, Date, Team, Score, High points, High rebounds, High assists, Location Attendance, Record
###Question: How many games had been played when the Mavericks had a 46-22 record?
gpt
SELECT MAX Game FROM table WHERE Record = 46-22