"Which is watercourse ends in of Gulf of Maine, whose tributary is Rio Miriri ?"
SELECT ?answer WHERE { wd:Q876470 wdt:P403 ?answer . ?answer wdt:P974 wd:Q3432544}
gulf of maine: Q876470 rio miriri: Q3432544