Total Traveled Distance
[]
['Create table if not exists Users(user_id int, name varchar(30))', 'Create table if not exists Rides(ride_id int,user_id int, distance int)', 'Truncate table Users', "insert into Users (user_id, name) values ('17', 'Addison')", "insert into Users (user_id, name) values ('14', 'Ethan')", "insert into Users (user_id, name) values ('4', 'Michael')", "insert into Users (user_id, name) values ('2', 'Avery')", "insert into Users (user_id, name) values ('10', 'Eleanor')", 'Truncate table Rides', "insert into Rides (ride_id, user_id, distance) values ('72', '17', '160')", "insert into Rides (ride_id, user_id, distance) values ('42', '14', '161')", "insert into Rides (ride_id, user_id, distance) values ('45', '4', '59')", "insert into Rides (ride_id, user_id, distance) values ('32', '2', '197')", "insert into Rides (ride_id, user_id, distance) values ('15', '4', '357')", "insert into Rides (ride_id, user_id, distance) values ('56', '2', '196')", "insert into Rides (ride_id, user_id, distance) values ('10', '14', '25')"]
{"mysql": ["Create table if not exists Users(user_id int, name varchar(30))", "Create table if not exists Rides(ride_id int,user_id int, distance int)"], "mssql": ["Create table Users(user_id int, name varchar(30))", "Create table Rides(ride_id int,user_id int, distance int)"], "oraclesql": ["Create table Users(user_id int, name varchar(30))", "Create table Rides(ride_id int,user_id int, distance int)"], "database": true, "name": "get_total_distance", "pythondata": ["Users = pd.DataFrame([], columns=['user_id', 'name']).astype({'user_id':'Int64', 'name':'object'})", "Rides = pd.DataFrame([], columns=['ride_id', 'user_id', 'distance']).astype({'ride_id':'Int64', 'user_id':'Int64', 'distance':'Int64'})"], "postgresql": ["Create table if not exists Users(user_id int, name varchar(30))", "Create table if not exists Rides(ride_id int,user_id int, distance int)"], "database_schema": {"Users": {"user_id": "INT", "name": "VARCHAR(30)"}, "Rides": {"ride_id": "INT", "user_id": "INT", "distance": "INT"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']