presto-resource-group-managers/src/main/java/io/prestosql/plugin/resourcegroups/db/ResourceGroupsDao.java/ResourceGroupsDao/getExactMatchResourceGroup
class ResourceGroupsDao:    @SqlQuery("SELECT resource_group_id\n" +
            "FROM exact_match_source_selectors\n" +
            "WHERE source = :source\n" +
            "  AND (environment = :environment OR environment IS NULL)\n" +
            "  AND (query_type = :query_type OR query_type IS NULL)\n" +
            "ORDER BY environment IS NULL, query_type IS NULL\n" +
            "LIMIT 1")
    String getExactMatchResourceGroup(
            @Bind("environment") String environment,
            @Bind("source") String source,
            @Bind("query_type") String queryType);