who holds stock in the railway lines ending in são joaquim ?
SELECT DISTINCT var_uri where brack_open var_x dbo_routeEnd dbr_São_Joaquim_ attr_open São_Paulo_Metro attr_close sep_dot var_x dbp_owner var_uri sep_dot var_x a dbo_RailwayLine brack_close