def simple_chatbot(user_query): if user_query == "What is the total revenue for MSFT 2023?": return "The total revenue is $ 2,11,915 Millions" elif user_query == "What is the total revenue for AAPL 2023?": return "The total revenue is $ 3,83,285 Millions" elif user_query == "What is the total revenue for TSLA 2023?": return "The total revenue is $ 96,773 Millions" elif user_query == "What is the total revenue for AAPL 2022?": return "The total revenue is $ 3,94,328 Millions" elif user_query == "What is the total revenue for TSLA 2022?": return "The total revenue is $ 81,462 Millions" else: return "Sorry, I can only provide information on predefined queries."