I don't understand what seems to be the problem of this query.
it says
Cannot execute IN subquery with uncomparable types STRING and INT64 at [7:3]
tried this query but it just didn't work.
SELECT
station_id,
name
FROM
bigquery-public-data.new_york_citibike.citibike_stations
WHERE
station_id IN
(
SELECT
start_station_id
FROM
bigquery-public-data.new_york_citibike.citibike_trips
WHERE
usertype = 'Subscriber'
)
I assume station_id and start_station_id are not of similar data types. In this case we can cast one of the columns to make both are of same type.
If station_id is string and start_station_id is integer type. I would write the query as below. Hope this helps
SELECT station_id, name FROM bigquery-public-data.new_york_citibike.citibike_stations WHERE station_id IN
( SELECT cast(start_station_id as string) FROM bigquery-public-data.new_york_citibike.citibike_trips WHERE usertype = 'Subscriber' )