SELECT
trips AS trip_id,
trips AS dropoff_location_id COUNT(trips.end_ts) AS trips_amount
FROM trips
INNER JOIN neighborhoods ON trips.dropoff_location_id = neighborhoods.neighborhood_id
WHERE
end_ts BETWEEN '2017-11-16' AND '2017-11-17'
GROUP BY
dropoff_location_id
ORDER BY
trips_amount DESC;